summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-07-10 18:01:00 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-07-10 18:01:00 +0000
commit3e70859cc81186559a9203805743768a3ebdbef4 (patch)
tree42320076d143362111e25a140831a210752b6f82 /net-dialup
parentSRC_URI stupidity (diff)
downloadhistorical-3e70859cc81186559a9203805743768a3ebdbef4.tar.gz
historical-3e70859cc81186559a9203805743768a3ebdbef4.tar.bz2
historical-3e70859cc81186559a9203805743768a3ebdbef4.zip
New version. Fixes #4781
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/mgetty/ChangeLog9
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.281
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.28-gentoo.diff64
-rw-r--r--net-dialup/mgetty/mgetty-1.1.28.ebuild104
4 files changed, 177 insertions, 1 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index e2cc295ffff4..fffaf37e286d 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.5 2002/05/01 13:47:51 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.6 2002/07/10 18:01:00 rphillips Exp $
+
+*mgetty-1.1.28 (10 Jul 2002)
+
+ 10 Jun 2002; Ryan Phillips <rphillips@gentoo.org> mgetty-1.1.28.ebuild :
+
+ New version and adds /var/spool/voice
+ Submitted by Rusty Phillips
*mgetty-1.1.26-r4 (1 May 2002)
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.28 b/net-dialup/mgetty/files/digest-mgetty-1.1.28
new file mode 100644
index 000000000000..fb26853e5a50
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.28
@@ -0,0 +1 @@
+MD5 dc5de3eb1cf75f37e60fb94e321cdcd7 mgetty1.1.28-Jan10.tar.gz 964610
diff --git a/net-dialup/mgetty/files/mgetty-1.1.28-gentoo.diff b/net-dialup/mgetty/files/mgetty-1.1.28-gentoo.diff
new file mode 100644
index 000000000000..9bee6da52588
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.28-gentoo.diff
@@ -0,0 +1,64 @@
+diff -r -U 3 mgetty-1.1.28/doc/mgetty.texi-in doc/mgetty.texi-in
+--- mgetty-1.1.28/doc/mgetty.texi-in 2002-01-06 12:40:55.000000000 -0500
++++ doc/mgetty.texi-in 2002-07-09 07:17:37.000000000 -0400
+@@ -13,6 +13,11 @@
+ Copyright @copyright{} 1993-2000 Gert Doering
+ @end ifinfo
+
++@dircategory User
++@direntry
++* MGETTY: (mgetty). Modem+Voice+Fax utilities
++@end direntry
++
+ @titlepage
+ @sp 6
+ @center @titlefont{mgetty+sendfax}
+Only in .: test.patch
+diff -r -U 3 mgetty-1.1.28/voice/Makefile voice/Makefile
+--- mgetty-1.1.28/voice/Makefile 2001-12-23 10:08:13.000000000 -0500
++++ voice/Makefile 2002-07-09 15:01:30.000000000 -0400
+@@ -85,6 +85,7 @@
+ @echo ""
+ $(INSTALL) -m 700 vgetty/vgetty $(SBINDIR)
+ $(INSTALL) -m 755 vm/vm $(BINDIR)
++ $(INSTALL) -m 755 voice.conf-dist $(CONFDIR)/voice.conf
+ for i in $(PVFTOOLS); \
+ do \
+ $(INSTALL) -m 755 pvftools/$$i $(BINDIR); \
+@@ -97,21 +98,21 @@
+ do \
+ $(RM) -f $$i.1; $(LN) -s pvf.1 $$i.1; \
+ done
+-# [ -d $(VOICE_DIR) ] || mkdir $(VOICE_DIR)
+-# [ -d $(VOICE_DIR)/incoming ] || mkdir $(VOICE_DIR)/incoming
+-# chown 0 $(VOICE_DIR)/incoming
+-# chgrp $(PHONE_GROUP) $(VOICE_DIR)/incoming
+-# chmod $(PHONE_PERMS) $(VOICE_DIR)/incoming
+-# [ -d $(VOICE_DIR)/messages ] || mkdir $(VOICE_DIR)/messages
+-# for i in $(SHELLSCRIPTS); do \
+-# $(INSTALL) -m 755 $$i $(VOICE_DIR) ;\
+-# done
+-# [ -f $(VOICE_DIR)/.code ] || echo '12345' >$(VOICE_DIR)/.code
+-# chgrp $(PHONE_GROUP) $(VOICE_DIR)/.code
+-# chmod $(PHONE_PERMS) $(VOICE_DIR)/.code
+-# chmod 660 $(VOICE_DIR)/.code
+-# [ -f $(VOICE_DIR)/messages/Index ] || \
+-# echo 'put_filename_here' >$(VOICE_DIR)/messages/Index
++ [ -d $(VOICE_DIR) ] || mkdir $(VOICE_DIR)
++ [ -d $(VOICE_DIR)/incoming ] || mkdir $(VOICE_DIR)/incoming
++ chown 0 $(VOICE_DIR)/incoming
++ chgrp $(PHONE_GROUP) $(VOICE_DIR)/incoming
++ chmod $(PHONE_PERMS) $(VOICE_DIR)/incoming
++ [ -d $(VOICE_DIR)/messages ] || mkdir $(VOICE_DIR)/messages
++ for i in $(SHELLSCRIPTS); do \
++ $(INSTALL) -m 755 $$i $(VOICE_DIR) ;\
++ done
++ [ -f $(VOICE_DIR)/.code ] || echo '12345' >$(VOICE_DIR)/.code
++ chgrp $(PHONE_GROUP) $(VOICE_DIR)/.code
++ chmod $(PHONE_PERMS) $(VOICE_DIR)/.code
++ chmod 660 $(VOICE_DIR)/.code
++ [ -f $(VOICE_DIR)/messages/Index ] || \
++ echo 'put_filename_here' >$(VOICE_DIR)/messages/Index
+
+ clean:
+ @echo "Cleaning..."
diff --git a/net-dialup/mgetty/mgetty-1.1.28.ebuild b/net-dialup/mgetty/mgetty-1.1.28.ebuild
new file mode 100644
index 000000000000..49087490efe8
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.28.ebuild
@@ -0,0 +1,104 @@
+# 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}-Jan10.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}
+
+ patch -p0 < ${FILESDIR}/mgetty-${PV}-gentoo.diff || die
+
+ cd ${S}/doc
+ 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 \
+ 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 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
+}
+