diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-05-01 13:47:51 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-05-01 13:47:51 +0000 |
commit | 64e3b67bf07d08e283dcfe664d66b05264ef3dae (patch) | |
tree | 590cabbb078d776c0fed665ed26b1e4944da440d /net-dialup/mgetty | |
parent | Added new orinoco driver. Cleaned horrid ChangeLog. (diff) | |
download | gentoo-2-64e3b67bf07d08e283dcfe664d66b05264ef3dae.tar.gz gentoo-2-64e3b67bf07d08e283dcfe664d66b05264ef3dae.tar.bz2 gentoo-2-64e3b67bf07d08e283dcfe664d66b05264ef3dae.zip |
small bugfix
Diffstat (limited to 'net-dialup/mgetty')
-rw-r--r-- | net-dialup/mgetty/ChangeLog | 13 | ||||
-rw-r--r-- | net-dialup/mgetty/files/digest-mgetty-1.1.26-r4 | 1 | ||||
-rw-r--r-- | net-dialup/mgetty/mgetty-1.1.26-r4.ebuild | 100 |
3 files changed, 113 insertions, 1 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog index 9996254ab2f5..e2cc295ffff4 100644 --- a/net-dialup/mgetty/ChangeLog +++ b/net-dialup/mgetty/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-dialup/mgetty # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.4 2002/04/30 11:18:03 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.5 2002/05/01 13:47:51 seemant Exp $ + +*mgetty-1.1.26-r4 (1 May 2002) + + 1 May 2002; Seemant Kulleen <seemant@gentoo.org> mgetty-1.1.26-r4.ebuild + files/digest-mgetty-1.1.26-r4 : + + Changed location defined for new_fax from /usr/local/lib/blah to + /etc/mgetty+sendfax. This should close out bug #2157 reported by + keith@kbird.net (Kbird) + +*mgetty-1.1.26-r3 (30 Apr 2002) 30 Apr 2002; Seemant Kulleen <seemant@gentoo.org> mgetty-1.1.26-r3.ebuild : diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.26-r4 b/net-dialup/mgetty/files/digest-mgetty-1.1.26-r4 new file mode 100644 index 000000000000..b869bfcfff40 --- /dev/null +++ b/net-dialup/mgetty/files/digest-mgetty-1.1.26-r4 @@ -0,0 +1 @@ +MD5 02d60e05acdd406b1e86222e8a373a7e mgetty1.1.26-Apr16.tar.gz 948245 diff --git a/net-dialup/mgetty/mgetty-1.1.26-r4.ebuild b/net-dialup/mgetty/mgetty-1.1.26-r4.ebuild new file mode 100644 index 000000000000..97852368a91f --- /dev/null +++ b/net-dialup/mgetty/mgetty-1.1.26-r4.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Grant Goodyear <g2boojum@gentoo.org> +# Updated by Todd Wright <wylie@geekasylum.org> -r3 +# /home/cvsroot/gentoo-x86/skel.build,v 1.7 2001/08/25 21:15:08 chadh Exp + +S=${WORKDIR}/${P} +DESCRIPTION="Fax and Voice modem programs." + +SRC_URI="ftp://alpha.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Apr16.tar.gz" +HOMEPAGE="http://alpha.greenie.net/mgetty" + +DEPEND="sys-libs/glibc + app-text/tetex + sys-apps/gawk + sys-devel/perl" + +src_unpack() { + unpack ${A} + + cd ${S}/doc + patch -p0 < ${FILESDIR}/mgetty-${PV}-gentoo.diff || die + + cp Makefile Makefile.orig + sed -e "s:dvips -o mgetty.ps:dvips -M -o mgetty.ps:" \ + Makefile.orig >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" \*\/:\#define CNDFILE "dialin.config":' \ + -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \ + policy.h-dist > policy.h +} + +src_compile() { + mycflags="${CFLAGS}" + unset CFLAGS + emake prefix=/usr \ + CONFDIR=/etc/mgetty+sendfax \ + CFLAGS="${mycflags}" \ + || die + cd voice + emake CONFDIR=/etc/mgetty+sendfax \ + CFLAGS="${mycflags}" \ + || 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 + + cd voice + make prefix=${D}/usr \ + CONFDIR=${D}/etc/mgetty+sendfax \ + MAN1DIR=${D}/usr/share/man/man1 \ + install || die + + cd ${S} + dodoc BUGS ChangeLog FTP README.1st Recommend THANKS TODO + cd doc + dodoc *.txt modems.db 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 +} + |