summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2004-05-07 06:37:55 +0000
committerSteve Arnold <nerdboy@gentoo.org>2004-05-07 06:37:55 +0000
commit62e31c6047da09710259d8ef5bfc378941a24a05 (patch)
treeba0b22271435ef9db5c991df6e6c4363882f7cd1 /net-dialup
parentadded fix for bug 41095 required for hylafax (diff)
downloadhistorical-62e31c6047da09710259d8ef5bfc378941a24a05.tar.gz
historical-62e31c6047da09710259d8ef5bfc378941a24a05.tar.bz2
historical-62e31c6047da09710259d8ef5bfc378941a24a05.zip
added fix for bug 44231 submitted by Frank Cringle
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/mgetty/ChangeLog7
-rw-r--r--net-dialup/mgetty/Manifest10
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.30-r11
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30-r1.ebuild142
4 files changed, 155 insertions, 5 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index a49667d6f81c..e1570f7ed398 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dialup/mgetty
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.28 2004/04/28 10:10:32 swtaylor Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.29 2004/05/07 06:37:55 nerdboy Exp $
+
+*mgetty-1.1.30-r1 (06 May 2004)
+
+ 06 May 2004; Steve Arnold <nerdboy@gentoo.org> mgetty-1.1.30-r1.ebuild:
+ added fix for bug 44231 submitted by Frank Cringle <fdc-glb@cliwe.ping.de>
28 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> mgetty-1.1.30.ebuild:
drop unneeded $S definition
diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest
index 320a5826ecff..c3f6117c22d7 100644
--- a/net-dialup/mgetty/Manifest
+++ b/net-dialup/mgetty/Manifest
@@ -1,8 +1,10 @@
-MD5 d2d34a88ae62e14d7d68caf96ea8d6a9 mgetty-1.1.30.ebuild 3357
+MD5 8b036616571ac79f46b3d49fe491d86e ChangeLog 4216
MD5 8ae3ec358fe5b7471a21d77a68934dae mgetty-1.1.28.ebuild 2608
-MD5 f71272f277368726ade0cc67259109ac ChangeLog 4032
+MD5 d2d34a88ae62e14d7d68caf96ea8d6a9 mgetty-1.1.30.ebuild 3357
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
-MD5 bc47f96a12b21b779d57c0c2ad4b6837 files/mgetty-1.1.30-gentoo.diff 2771
-MD5 a1e05459ce2d5ff673bad552f355be4f files/mgetty-1.1.28-gentoo.diff 2308
+MD5 ab90740d13b44f7174719ca8f7da7117 mgetty-1.1.30-r1.ebuild 3414
MD5 504eadb9fddc097570882ddc40a66997 files/digest-mgetty-1.1.28 283
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30 70
+MD5 a1e05459ce2d5ff673bad552f355be4f files/mgetty-1.1.28-gentoo.diff 2308
+MD5 bc47f96a12b21b779d57c0c2ad4b6837 files/mgetty-1.1.30-gentoo.diff 2771
+MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r1 70
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.30-r1 b/net-dialup/mgetty/files/digest-mgetty-1.1.30-r1
new file mode 100644
index 000000000000..de8ce3a6b404
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.30-r1
@@ -0,0 +1 @@
+MD5 4b80c418bc58add3e40de3be0ac6c02a mgetty1.1.30-Dec16.tar.gz 969967
diff --git a/net-dialup/mgetty/mgetty-1.1.30-r1.ebuild b/net-dialup/mgetty/mgetty-1.1.30-r1.ebuild
new file mode 100644
index 000000000000..15e125c0f012
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.30-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.30-r1.ebuild,v 1.1 2004/05/07 06:37:55 nerdboy 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? app-text/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
+ use doc && dodoc mgetty.ps
+
+ #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
+}
+