summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2004-09-15 14:34:53 +0000
committerHeinrich Wendel <lanius@gentoo.org>2004-09-15 14:34:53 +0000
commit5145b85c84abdbba566f0308ef8723a2df2d8a09 (patch)
tree4e4f453e2fd8fe399fd50392b1f48e66566b7000
parentClosing #63947 (diff)
downloadhistorical-5145b85c84abdbba566f0308ef8723a2df2d8a09.tar.gz
historical-5145b85c84abdbba566f0308ef8723a2df2d8a09.tar.bz2
historical-5145b85c84abdbba566f0308ef8723a2df2d8a09.zip
add additionally documentation, bug #46131; fix creation of fax group, bug #59461
-rw-r--r--net-dialup/mgetty/ChangeLog8
-rw-r--r--net-dialup/mgetty/Manifest4
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.30-r21
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30-r2.ebuild149
4 files changed, 160 insertions, 2 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index 23a2a8ce4aa6..8e4e7e5db643 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-dialup/mgetty
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.32 2004/08/03 07:38:13 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.33 2004/09/15 14:34:52 lanius Exp $
+
+*mgetty-1.1.30-r2 (15 Sep 2004)
+
+ 15 Sep 2004; Heinrich Wendel <lanius@gentoo.org> +mgetty-1.1.30-r2.ebuild:
+ add additionally documentation, bug #46131; fix creation of fax group, bug
+ #59461
03 Aug 2004; Heinrich Wendel <lanius@gentoo.org> mgetty-1.1.28.ebuild,
mgetty-1.1.30-r1.ebuild, mgetty-1.1.30.ebuild:
diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest
index 35064d4adee6..f152988d0f4a 100644
--- a/net-dialup/mgetty/Manifest
+++ b/net-dialup/mgetty/Manifest
@@ -1,7 +1,9 @@
MD5 b1a86bb00a4173f7df12c188993c3239 mgetty-1.1.30-r1.ebuild 3408
MD5 527ac0e55d3ecd1344f95522ab7a4448 mgetty-1.1.30.ebuild 3350
-MD5 98434c07d60f5dbb74b0341ab9eb01ad ChangeLog 4549
+MD5 b6ed771df121150a2cd48a4f031f040f mgetty-1.1.30-r2.ebuild 3509
+MD5 4d21fbfee916a8422bd26fd00d8d7e2f ChangeLog 4746
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
MD5 bc47f96a12b21b779d57c0c2ad4b6837 files/mgetty-1.1.30-gentoo.diff 2771
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r1 70
+MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r2 70
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30 70
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.30-r2 b/net-dialup/mgetty/files/digest-mgetty-1.1.30-r2
new file mode 100644
index 000000000000..de8ce3a6b404
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.30-r2
@@ -0,0 +1 @@
+MD5 4b80c418bc58add3e40de3be0ac6c02a mgetty1.1.30-Dec16.tar.gz 969967
diff --git a/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild b/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild
new file mode 100644
index 000000000000..3a594b40c059
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild,v 1.1 2004/09/15 14:34:53 lanius Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Fax and Voice modem programs."
+SRC_URI="ftp://alpha.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Dec16.tar.gz"
+HOMEPAGE="http://alpha.greenie.net/mgetty/"
+
+DEPEND=">=sys-apps/portage-2.0.47-r10
+ >=sys-apps/sed-4.0.5
+ doc? ( virtual/tetex )
+ sys-apps/gawk
+ dev-lang/perl"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~alpha ~ia64 ~hppa ~ppc ~amd64"
+IUSE="doc"
+
+pkg_setup() {
+ enewgroup fax
+ enewuser fax -1 /bin/false /dev/null fax
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch ${FILESDIR}/mgetty-${PV}-gentoo.diff
+ cd ${S}/doc
+ sed -i "s:dvips -o mgetty.ps:dvips -M -o mgetty.ps:" Makefile
+ cd ${S}
+ sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \
+ -e 's:var/log/sendfax:var/log/mgetty/sendfax:' \
+ -e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \
+ -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \
+ policy.h-dist > policy.h
+ sed -i -e "s:phone_group phone:phone_group fax:g" voice/voice.conf-dist
+ sed -i 's:ECHO="echo":ECHO="echo -e":' Makefile
+}
+
+src_compile() {
+ append-flags "-DAUTO_PPP"
+
+ emake prefix=/usr \
+ CONFDIR=/etc/mgetty+sendfax \
+ CFLAGS="${CFLAGS}" \
+ || make prefix=/usr \
+ CONFDIR=/etc/mgetty+sendfax \
+ CFLAGS="${CFLAGS}" \
+ || die
+
+ einfo "building voice"
+ cd voice
+ emake CONFDIR=/etc/mgetty+sendfax \
+ || make CONFDIR=/etc/mgetty+sendfax \
+ || die
+
+ cd ${S}
+
+ einfo "building callback"
+ cd callback
+ emake CONFDIR=/etc/mgetty+sendfax \
+ CFLAGS="${CFLAGS}" \
+ || make CONFDIR=/etc/mgetty+sendfax \
+ || die
+ cd ${S}
+}
+
+src_install () {
+ dodir /var/spool
+ dodir /usr/share/info
+ make prefix=${D}/usr \
+ INFODIR=${D}/usr/share/info \
+ CONFDIR=${D}/etc/mgetty+sendfax \
+ MAN1DIR=${D}/usr/share/man/man1 \
+ MAN4DIR=${D}/usr/share/man/man4 \
+ MAN5DIR=${D}/usr/share/man/man5 \
+ MAN8DIR=${D}/usr/share/man/man8 \
+ spool=${D}/var/spool \
+ install || die
+
+ einfo "Installing callback"
+ cd callback
+ make prefix=${D}/usr \
+ CONFDIR=${D}/etc/mgetty+sendfax \
+ MAN1DIR=${D}/usr/share/man/man1 \
+ MAN8DIR=${D}/usr/share/man/man8 \
+ VOICE_DIR=${D}/var/spool/voice \
+ SBINDIR=${D}/usr/sbin \
+ BINDIR=${D}/usr/bin \
+ INSTALL="install -c -o bin -g bin" \
+ PHONE_GROUP=root \
+ PHONE_PERMS=755 \
+ install || die
+ cd ${S}
+
+ einfo "installing voice"
+ cd voice
+ make prefix=${D}/usr \
+ CONFDIR=${D}/etc/mgetty+sendfax \
+ MAN1DIR=${D}/usr/share/man/man1 \
+ MAN8DIR=${D}/usr/share/man/man8 \
+ VOICE_DIR=${D}/var/spool/voice \
+ PHONE_GROUP=root \
+ PHONE_PERMS=755 \
+ install || die
+
+ cd ${S}
+ dodoc BUGS ChangeLog FTP README.1st Recommend THANKS TODO
+ cd doc
+ dodoc *.txt modems.db
+ cd ${S}/samples/
+ docinto samples
+ dodoc *
+ if use doc; then
+ dodoc mgetty.ps
+ cd ${S}/voice/doc/
+ docinto voice
+ dodoc *
+ fi
+
+ #generate missing fonts if any.
+ if [ -f ${S}/doc/missfont.log ]
+ then
+ echo '#!/bin/bash' >genfonts.sh
+ cat missfont.log >>genfonts.sh
+ chmod +x genfonts.sh
+ dodoc genfonts.sh
+ fi
+}
+
+pkg_postinst() {
+ #generate missing fonts if any.
+ if [ -x {$ROOT}/usr/share/doc/${PF}/genfonts.sh ]
+ then
+ {$ROOT}/usr/share/doc/${PF}/genfonts.sh
+ fi
+
+ if [ ! -d ${ROOT}/var/spool/fax/incoming ]
+ then
+ mkdir -p ${ROOT}/var/spool/fax/incoming
+ fi
+ if [ ! -d ${ROOT}/var/spool/fax/outgoing/locks ]
+ then
+ mkdir -p ${ROOT}/var/spool/fax/outgoing/locks
+ fi
+}