summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2005-02-10 13:14:36 +0000
committerTorsten Veller <tove@gentoo.org>2005-02-10 13:14:36 +0000
commitbc93c504b9d4a89faf480a9447d76162e3e28c5e (patch)
treead488ecbea315495cb93d6c8fcce07e8c1cf3adb /net-dialup
parentInitial commit of biabam. Closes #64400. Thanks to: Martin Ehmsen <martin@ehm... (diff)
downloadgentoo-2-bc93c504b9d4a89faf480a9447d76162e3e28c5e.tar.gz
gentoo-2-bc93c504b9d4a89faf480a9447d76162e3e28c5e.tar.bz2
gentoo-2-bc93c504b9d4a89faf480a9447d76162e3e28c5e.zip
addresses bugs #80739 and #80366, removes ugly deprecated warnings
(Portage version: 2.0.51.16)
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/mgetty/ChangeLog18
-rw-r--r--net-dialup/mgetty/Manifest30
-rw-r--r--net-dialup/mgetty/files/Lucent.c.patch17
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.31-r11
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.31-callback.diff26
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.31-logfile.c.diff48
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.31-r1-gentoo.diff63
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30-r2.ebuild4
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30-r3.ebuild4
-rw-r--r--net-dialup/mgetty/mgetty-1.1.30.ebuild4
-rw-r--r--net-dialup/mgetty/mgetty-1.1.31-r1.ebuild148
-rw-r--r--net-dialup/mgetty/mgetty-1.1.31.ebuild4
12 files changed, 345 insertions, 22 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index 9d8f1f1419bd..dba3025ee3e3 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,20 @@
# ChangeLog for net-dialup/mgetty
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.41 2004/11/19 23:09:17 mrness Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.42 2005/02/10 13:14:36 tove Exp $
+
+*mgetty-1.1.31-r1 (10 Feb 2005)
+
+ 10 Feb 2005; Torsten Veller <tove@gentoo.org> +files/Lucent.c.patch,
+ +files/mgetty-1.1.31-callback.diff, +files/mgetty-1.1.31-logfile.c.diff,
+ +files/mgetty-1.1.31-r1-gentoo.diff, +mgetty-1.1.31-r1.ebuild:
+ - bug #80366 - CallerID detection for Lucent chip modems - thanks Peter Hyman
+ - added a patch to remove deprecated warnings (mgetty-*-logfile.diff) -
+ taken from debian
+ - switched off parallel make - needs to be fixed - 'sedscript' doesn't
+ like it
+ - patched doc generation - should fix bug #80739
+ - voice.conf is installed as 644 instead of 755
+ - changed ownership from bin:bin to root:root
*mgetty-1.1.31 (20 Nov 2004)
diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest
index 107666769eba..623780f150f1 100644
--- a/net-dialup/mgetty/Manifest
+++ b/net-dialup/mgetty/Manifest
@@ -1,22 +1,28 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 e6ac0afd05eaf93d1dd3828bb89319b8 ChangeLog 5717
+MD5 39bbe2a76977fe18d57f84c783afc305 mgetty-1.1.30.ebuild 3350
+MD5 27a1a880551f06abf7e9695d77b1350f mgetty-1.1.30-r3.ebuild 3816
+MD5 3765f176889354f2fc07df839bea32cf mgetty-1.1.30-r2.ebuild 3551
+MD5 2a7decaa0b4f2242f9b65afa9ab95695 mgetty-1.1.31.ebuild 3778
+MD5 0d0abdaee071c323e7dc0c93290459be mgetty-1.1.31-r1.ebuild 4015
+MD5 0ec8b902e681cc36c9bbd3cfaf5ed3b6 ChangeLog 6372
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
-MD5 111042583a0f3f1f9b41e3713e064220 mgetty-1.1.30-r2.ebuild 3551
-MD5 527ac0e55d3ecd1344f95522ab7a4448 mgetty-1.1.30.ebuild 3350
-MD5 30792dd1f8db4dd7f5b65f64babb5151 mgetty-1.1.30-r3.ebuild 3816
-MD5 09d7c2b765ed4d647464031f8bfdd531 mgetty-1.1.31.ebuild 3778
-MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30 70
-MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r2 70
MD5 bc47f96a12b21b779d57c0c2ad4b6837 files/mgetty-1.1.30-gentoo.diff 2771
+MD5 98aeee2f59082edadd2c9f85e0fe4fde files/mgetty-1.1.31-logfile.c.diff 1581
+MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r2 70
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r3 70
-MD5 892ea03975cbf5145ed6ab5f42424461 files/digest-mgetty-1.1.31 70
+MD5 892ea03975cbf5145ed6ab5f42424461 files/digest-mgetty-1.1.31-r1 70
MD5 9b39643283b470533c7e4832364aa168 files/mgetty-1.1.31-gentoo.diff 2782
+MD5 2eaba23e070a3e2edd7b10fb2ae7441f files/mgetty-1.1.31-r1-gentoo.diff 2357
+MD5 4e57a595747a3348f58b9e0acb19b5b7 files/mgetty-1.1.31-callback.diff 989
+MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30 70
+MD5 892ea03975cbf5145ed6ab5f42424461 files/digest-mgetty-1.1.31 70
+MD5 503ed4bbf18bb0b46850cb173873e16a files/Lucent.c.patch 814
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.0 (GNU/Linux)
-iD8DBQFBnn0njtv59x0+BrURAjtQAKDBTEbMpZDWX9AfCjm2ktAJ1Lnu7QCfRLu1
-yzdNlLm7SQtjxwjcoatlBME=
-=zd7r
+iD8DBQFCC1y2V3J2n04EauwRAhpyAJwIISelRXCZOTfsaBK/u8N+Sl21RwCcDXQB
+LQ2WXOwPxM7/0tkYBLHd8+o=
+=047s
-----END PGP SIGNATURE-----
diff --git a/net-dialup/mgetty/files/Lucent.c.patch b/net-dialup/mgetty/files/Lucent.c.patch
new file mode 100644
index 000000000000..35b4b3e0b612
--- /dev/null
+++ b/net-dialup/mgetty/files/Lucent.c.patch
@@ -0,0 +1,17 @@
+diff -Nru mgetty-1.1.31.orig/voice/libvoice/Lucent.c mgetty-1.1.31/voice/libvoice/Lucent.c
+--- mgetty-1.1.31.orig/voice/libvoice/Lucent.c 2004-11-20 16:13:01.000000000 -0500
++++ mgetty-1.1.31/voice/libvoice/Lucent.c 2004-11-20 16:39:11.000000000 -0500
+@@ -96,6 +96,13 @@
+ if (voice_command("AT+VLS=0", "OK") != VMA_USER_1)
+ lprintf(L_WARN, "can't deselect all input/output devices");
+
++ /* the Lucent chips DO support Caller ID, this command is OK */
++ /* Just borrowed from the V253modem.c file */
++ /* enable callerid (if supported) and setformat */
++ if (voice_command("AT+VCID=1", "OK") != VMA_USER_1)
++ lprintf(L_WARN, "can't set caller ID output");
++ /* mgetty supports formated callerid output */
++
+ voice_modem_state = IDLE;
+ return(OK);
+ }
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.31-r1 b/net-dialup/mgetty/files/digest-mgetty-1.1.31-r1
new file mode 100644
index 000000000000..64a0dfb03159
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.31-r1
@@ -0,0 +1 @@
+MD5 3462a0acbdb2e7165540ef95097d49fb mgetty1.1.31-Jul24.tar.gz 998462
diff --git a/net-dialup/mgetty/files/mgetty-1.1.31-callback.diff b/net-dialup/mgetty/files/mgetty-1.1.31-callback.diff
new file mode 100644
index 000000000000..6b0efc94658e
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.31-callback.diff
@@ -0,0 +1,26 @@
+diff -Nur mgetty-1.1.31-orig/Makefile mgetty-1.1.31/Makefile
+--- mgetty-1.1.31-orig/Makefile 2004-07-24 20:53:47.000000000 +0200
++++ mgetty-1.1.31/Makefile 2005-02-10 09:55:43.220947304 +0100
+@@ -164,7 +164,7 @@
+ #
+ # if your systems doesn't have one, use the shell script that I provide
+ # in "inst.sh" (taken from X11R5). Needed on IRIX5.2
+-INSTALL=install -c -o bin -g bin
++INSTALL=install -c
+ #INSTALL=install -c -o root -g wheel # NeXT/BSD
+ #INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x
+ #INSTALL=installbsd -c -o bin -g bin # OSF/1, AIX 4.1, 4.2
+@@ -697,6 +697,13 @@
+
+ install-vgetty: vgetty-install
+
++install-callback:
++ cd callback; $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" LDFLAGS="$(LDFLAGS)" \
++ BINDIR="$(BINDIR)" SBINDIR="$(SBINDIR)" LIBDIR="$(LIBDIR)" \
++ CONFDIR="$(CONFDIR)" MAN1DIR="$(MAN1DIR)" MAN8DIR="$(MAN8DIR)" INSTALL="$(INSTALL)" \
++ LN="$(LN)" MV="$(MV)" RM="$(RM)" \
++ LIBS="$(LIBS)" install
++
+ ## test suite
+ test: bin-all
+ for D in g3 ; do \
diff --git a/net-dialup/mgetty/files/mgetty-1.1.31-logfile.c.diff b/net-dialup/mgetty/files/mgetty-1.1.31-logfile.c.diff
new file mode 100644
index 000000000000..3e28afab4d10
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.31-logfile.c.diff
@@ -0,0 +1,48 @@
+--- mgetty-1.1.31.orig/logfile.c 2005-02-05 22:52:34.595987224 +0100
++++ mgetty-1.1.31/logfile.c 2005-02-05 23:03:17.159302752 +0100
+@@ -58,10 +58,10 @@
+ /* Most systems have these variables but do not declare them. On many
+ of those systems that _do_ declare them, it won't hurt */
+
+-extern int sys_nerr;
+-#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__MACH__)
+-extern char *sys_errlist[];
+-#endif
++/* extern int sys_nerr; */
++/* #if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__MACH__) */
++/* extern char *sys_errlist[]; */
++/* #endif */
+
+ /* Interactive Unix is a little bit braindead - does not have atexit(),
+ */
+@@ -211,6 +211,7 @@
+ va_list pvar;
+ int errnr;
+ char * p;
++char *error_string;
+ static int first_open = TRUE;
+
+ if ( level > log_level ) /* log level high enough? */
+@@ -327,12 +328,20 @@
+ }
+ else /* ERROR or FATAL */
+ {
++ error_string = strerror (errnr);
++ if ( error_string == NULL )
++ {
++ if ( errno == EINVAL )
++ error_string = "<error not in list>";
++ else
++ error_string = "<error calling strerror()>";
++ }
++
+ fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: %s",
+ tm->tm_mon+1, tm->tm_mday,
+ tm->tm_hour, tm->tm_min, tm->tm_sec,
+ log_infix, ws,
+- ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
+- "<error not in list>" );
++ strerror (errnr));
+ #ifdef SYSLOG
+ syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws );
+ #endif
diff --git a/net-dialup/mgetty/files/mgetty-1.1.31-r1-gentoo.diff b/net-dialup/mgetty/files/mgetty-1.1.31-r1-gentoo.diff
new file mode 100644
index 000000000000..1da197b88bfd
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.31-r1-gentoo.diff
@@ -0,0 +1,63 @@
+diff -Naur mgetty-1.1.31-old/doc/mgetty.texi-in mgetty-1.1.31/doc/mgetty.texi-in
+--- mgetty-1.1.31-old/doc/mgetty.texi-in 2004-07-24 16:54:40.000000000 +0200
++++ mgetty-1.1.31/doc/mgetty.texi-in 2004-10-20 01:15:01.240303777 +0200
+@@ -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 -Naur mgetty-1.1.31-old/voice/Makefile mgetty-1.1.31/voice/Makefile
+--- mgetty-1.1.31-old/voice/Makefile 2001-12-23 16:08:13.000000000 +0100
++++ mgetty-1.1.31/voice/Makefile 2004-10-20 01:17:16.270550685 +0200
+@@ -85,6 +85,7 @@
+ @echo ""
+ $(INSTALL) -m 700 vgetty/vgetty $(SBINDIR)
+ $(INSTALL) -m 755 vm/vm $(BINDIR)
++ $(INSTALL) -m 644 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-r2.ebuild b/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild
index 9a6dc1317fc1..3f66c547fd5a 100644
--- a/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild
+++ b/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# 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-r2.ebuild,v 1.7 2004/11/11 19:28:19 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.30-r2.ebuild,v 1.8 2005/02/10 13:14:36 tove Exp $
inherit flag-o-matic eutils
diff --git a/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild b/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild
index d4adeda26bf7..dcdba2cc89d1 100644
--- a/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild
+++ b/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# 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.2 2004/11/13 22:13:22 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.30-r3.ebuild,v 1.3 2005/02/10 13:14:36 tove Exp $
inherit flag-o-matic eutils
diff --git a/net-dialup/mgetty/mgetty-1.1.30.ebuild b/net-dialup/mgetty/mgetty-1.1.30.ebuild
index abac8fb5e15a..e50379f85d53 100644
--- a/net-dialup/mgetty/mgetty-1.1.30.ebuild
+++ b/net-dialup/mgetty/mgetty-1.1.30.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# 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.ebuild,v 1.19 2004/08/03 07:38:13 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.30.ebuild,v 1.20 2005/02/10 13:14:36 tove Exp $
inherit flag-o-matic eutils
diff --git a/net-dialup/mgetty/mgetty-1.1.31-r1.ebuild b/net-dialup/mgetty/mgetty-1.1.31-r1.ebuild
new file mode 100644
index 000000000000..ef57ee2b6893
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.31-r1.ebuild
@@ -0,0 +1,148 @@
+# 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.31-r1.ebuild,v 1.1 2005/02/10 13:14:36 tove Exp $
+
+inherit toolchain-funcs flag-o-matic eutils
+
+DESCRIPTION="Fax and Voice modem programs."
+SRC_URI="ftp://alpha.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Jul24.tar.gz"
+HOMEPAGE="http://alpha.greenie.net/mgetty/"
+
+RDEPEND="virtual/libc"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4*
+ doc? ( virtual/tetex )
+ sys-apps/gawk
+ sys-apps/groff
+ dev-lang/perl
+ sys-apps/texinfo"
+
+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 /bin/false /dev/null fax
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/mgetty-${PV}-r1-gentoo.diff
+ # fix deprecate warnings
+ epatch ${FILESDIR}/mgetty-${PV}-logfile.c.diff
+ # add callback install to Makefile
+ epatch ${FILESDIR}/mgetty-${PV}-callback.diff
+ # Lucent modem CallerID patch - bug #80366
+ epatch ${FILESDIR}/Lucent.c.patch
+
+ #Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
+ append-ldflags "-Wl,-z,now"
+
+ sed -i 's: \$(CFLAGS) -o faxq-helper faxq-helper.o: $(LDLAGS) -Wl,-z,now -o faxq-helper faxq-helper.o:' ${S}/fax/Makefile
+
+ 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":' \
+ ${S}/policy.h-dist > ${S}/policy.h
+ sed -i -e "s:phone_group phone:phone_group fax:g" ${S}/voice/voice.conf-dist
+
+ # bug 44231 and remove move warning
+ sed -e 's:ECHO="echo":ECHO="echo -e":' \
+ -e "/mv -f \$(SBINDIR)/d" \
+ -i ${S}/Makefile
+
+ # update patch
+ sed -e 's/-f \$(VOICE_DIR)\//-f \/var\/spool\/voice\//' \
+ -i ${S}/voice/Makefile
+
+ sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \
+ -i ${S}/doc/Makefile
+ if use doc; then
+ sed -e "s:dvips -o mgetty.ps:dvips -M -o mgetty.ps:" \
+ -e "s/^doc-all:/doc-all: mgetty.ps/" \
+ -i ${S}/doc/Makefile
+ fi
+}
+
+src_compile() {
+ append-flags "-DAUTO_PPP"
+
+ # parallel make fix later - 'sedscript' issue
+ make prefix=/usr \
+ CC="$(tc-getCC)" \
+ CONFDIR=/etc/mgetty+sendfax \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ all vgetty || die "make failed."
+}
+
+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 \
+ SBINDIR=${D}/usr/sbin \
+ BINDIR=${D}/usr/bin \
+ VOICE_DIR=${D}/var/spool/voice \
+ PHONE_GROUP=fax \
+ PHONE_PERMS=755 \
+ spool=${D}/var/spool \
+ install vgetty-install install-callback || die
+
+ cd ${S}
+ dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \
+ doc/*.txt doc/modems.db || die "dodoc failed."
+ doinfo doc/mgetty.info || die "doinfo failed."
+
+ docinto vgetty
+ dodoc voice/{Readme,Announce,ChangeLog,Credits} || die "vgetty voice failed."
+
+ if use doc; then
+ dodoc doc/mgetty.ps || die "mgetty.ps failed"
+ fi
+
+ docinto vgetty/doc
+ dodoc voice/doc/*
+
+ mv samples/new_fax.all samples_new_fax.all || die "move failed."
+ docinto samples
+ dodoc samples/*
+
+ docinto samples/new_fax
+ dodoc samples_new_fax.all/*
+
+ #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
+}
diff --git a/net-dialup/mgetty/mgetty-1.1.31.ebuild b/net-dialup/mgetty/mgetty-1.1.31.ebuild
index 73cf3646dce0..22b63eda4a95 100644
--- a/net-dialup/mgetty/mgetty-1.1.31.ebuild
+++ b/net-dialup/mgetty/mgetty-1.1.31.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# 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.31.ebuild,v 1.1 2004/11/19 23:09:17 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.31.ebuild,v 1.2 2005/02/10 13:14:36 tove Exp $
inherit flag-o-matic eutils