diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-04-14 21:45:23 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-04-14 21:45:23 +0000 |
commit | f5f0ca0b2847f2e27f4cbc403a0e304a12e9e0e6 (patch) | |
tree | f42c8df46217d113895ad9a2e005e2520d35945b | |
parent | forgot to add the diff (diff) | |
download | gentoo-2-f5f0ca0b2847f2e27f4cbc403a0e304a12e9e0e6.tar.gz gentoo-2-f5f0ca0b2847f2e27f4cbc403a0e304a12e9e0e6.tar.bz2 gentoo-2-f5f0ca0b2847f2e27f4cbc403a0e304a12e9e0e6.zip |
sandbox errors
-rw-r--r-- | net-dialup/mgetty/ChangeLog | 9 | ||||
-rw-r--r-- | net-dialup/mgetty/files/digest-mgetty-1.1.26-r2 | 1 | ||||
-rw-r--r-- | net-dialup/mgetty/mgetty-1.1.26-r2.ebuild | 84 |
3 files changed, 93 insertions, 1 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog index b349e5a2dd06..794c7922c1f2 100644 --- a/net-dialup/mgetty/ChangeLog +++ b/net-dialup/mgetty/ChangeLog @@ -1,6 +1,13 @@ # 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.1 2002/02/01 21:53:32 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.2 2002/04/14 21:45:23 azarah Exp $ + +*mgetty-1.1.26-r2 (14 Apr 2002) + + 14 Apr 2002; M.Schlemmer <azarah@gentoo.org> mgetty-1.1.26-r2.ebuild : + + Fix sandbox errors related to fonts being installed during .ps generation. + Add support to generate the missing fonts in pkg_postinst(). *mgetty-1.1.26-r1 (1 Feb 2002) diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.26-r2 b/net-dialup/mgetty/files/digest-mgetty-1.1.26-r2 new file mode 100644 index 000000000000..b869bfcfff40 --- /dev/null +++ b/net-dialup/mgetty/files/digest-mgetty-1.1.26-r2 @@ -0,0 +1 @@ +MD5 02d60e05acdd406b1e86222e8a373a7e mgetty1.1.26-Apr16.tar.gz 948245 diff --git a/net-dialup/mgetty/mgetty-1.1.26-r2.ebuild b/net-dialup/mgetty/mgetty-1.1.26-r2.ebuild new file mode 100644 index 000000000000..82f828a2b097 --- /dev/null +++ b/net-dialup/mgetty/mgetty-1.1.26-r2.ebuild @@ -0,0 +1,84 @@ +# 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> +# /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 .. + sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \ + policy.h-dist > policy.h +} + +src_compile() { + emake || die + cd voice + emake || die + cd .. +} + +src_install () { + dodir /var/spool + dodir /usr/share/info + make prefix=${D}/usr \ + INFODIR=${D}/usr/share \ + CONFDIR=${D}/etc/mgetty+sendfax \ + spool=${D}/var/spool \ + install || die + + cd voice + make prefix=${D}/usr \ + spool=${D}/var/spool \ + 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 +} + |