summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2003-04-28 09:29:35 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2003-04-28 09:29:35 +0000
commit6899e397f9e4a9fd4dc2d4ae6e74343caf2ebb46 (patch)
tree15b0fa56a636380f6cfe64f227fc258f01547d0d /net-dialup
parentVersion bump (~x86 masked) (diff)
downloadgentoo-2-6899e397f9e4a9fd4dc2d4ae6e74343caf2ebb46.tar.gz
gentoo-2-6899e397f9e4a9fd4dc2d4ae6e74343caf2ebb46.tar.bz2
gentoo-2-6899e397f9e4a9fd4dc2d4ae6e74343caf2ebb46.zip
Security update
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/mgetty/ChangeLog7
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.301
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.26-gentoo.diff14
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.30-gentoo.diff75
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30.ebuild110
5 files changed, 192 insertions, 15 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index 25ebb493657f..461dae0568ba 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dialup/mgetty
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.10 2003/04/06 22:49:42 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.11 2003/04/28 09:29:35 aliz Exp $
+
+*mgetty-1.1.30 (28 Apr 2003)
+
+ 28 Apr 2003; Daniel Ahlberg <aliz@gentoo.org> mgetty-1.1.30.ebuild :
+ Security update.
*mgetty-1.1.28 (10 Jul 2002)
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.30 b/net-dialup/mgetty/files/digest-mgetty-1.1.30
new file mode 100644
index 000000000000..de8ce3a6b404
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.30
@@ -0,0 +1 @@
+MD5 4b80c418bc58add3e40de3be0ac6c02a mgetty1.1.30-Dec16.tar.gz 969967
diff --git a/net-dialup/mgetty/files/mgetty-1.1.26-gentoo.diff b/net-dialup/mgetty/files/mgetty-1.1.26-gentoo.diff
deleted file mode 100644
index 44b27cb44556..000000000000
--- a/net-dialup/mgetty/files/mgetty-1.1.26-gentoo.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- mgetty.texi-in Sat Jan 6 12:46:36 2001
-+++ mgetty.texi-in.fixed Mon Oct 15 11:22:49 2001
-@@ -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}
diff --git a/net-dialup/mgetty/files/mgetty-1.1.30-gentoo.diff b/net-dialup/mgetty/files/mgetty-1.1.30-gentoo.diff
new file mode 100644
index 000000000000..f16253da0bf5
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.30-gentoo.diff
@@ -0,0 +1,75 @@
+diff -u -r /tmp/mgetty-1.1.30/Makefile ./Makefile
+--- mgetty-1.1.30/Makefile 2002-12-16 13:08:23.000000000 +0000
++++ mgetty-1.1.30/Makefile 2003-04-28 08:04:29.000000000 +0000
+@@ -107,7 +107,7 @@
+ # prompt first. Don't forget to activate the /AutoPPP/ line in login.config!
+ #
+ #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
+-CFLAGS=-O2 -Wall -pipe
++#CFLAGS=-O2 -Wall -pipe
+ #CFLAGS=-O -DSVR4
+ #CFLAGS=-O -DSVR4 -DSVR42
+ #CFLAGS=-O -DUSE_POLL
+diff -u -r /tmp/mgetty-1.1.30/doc/mgetty.texi-in ./doc/mgetty.texi-in
+--- mgetty-1.1.30/doc/mgetty.texi-in 2002-11-17 21:19:45.000000000 +0000
++++ mgetty-1.1.30/doc/mgetty.texi-in 2003-04-28 08:05:13.000000000 +0000
+@@ -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}
+diff -u -r /tmp/mgetty-1.1.30/voice/Makefile ./voice/Makefile
+--- mgetty-1.1.30/voice/Makefile 2001-12-23 15:08:13.000000000 +0000
++++ mgetty-1.1.30/voice/Makefile 2003-04-28 08:04:53.000000000 +0000
+@@ -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.30.ebuild b/net-dialup/mgetty/mgetty-1.1.30.ebuild
new file mode 100644
index 000000000000..1c4bb9050f1c
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.30.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2003 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.ebuild,v 1.1 2003/04/28 09:29:35 aliz Exp $
+
+inherit flag-o-matic
+
+S=${WORKDIR}/${P}
+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
+ app-text/tetex
+ sys-apps/gawk
+ dev-lang/perl"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+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
+}
+
+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
+
+ cd voice
+ emake CONFDIR=/etc/mgetty+sendfax \
+ || 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
+
+ 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
+}
+