summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/mgetty/mgetty-1.1.30-r3.ebuild')
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30-r3.ebuild156
1 files changed, 0 insertions, 156 deletions
diff --git a/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild b/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild
deleted file mode 100644
index 67ae779f0bd5..000000000000
--- a/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2005 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-r3.ebuild,v 1.4 2005/07/20 05:49:00 mrness 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 ~mips"
-IUSE="doc"
-
-pkg_setup() {
- enewgroup fax
- enewgroup modem
- enewuser fax -1 -1 /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"
-
- #Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
- append-ldflags "-Wl,-z,now"
- sed -i "s:^LDFLAGS=.*:#&:" Makefile
- sed -i 's: \$(CFLAGS) -o faxq-helper faxq-helper.o: $(LDLAGS) -Wl,-z,now -o faxq-helper faxq-helper.o:' fax/Makefile
-
- 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 /var/log/mgetty
- 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
-}