summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-03-12 17:38:07 +0000
committerAlin Năstac <mrness@gentoo.org>2006-03-12 17:38:07 +0000
commit5647c2f1a2a36e7dd19296d84a568c8129baeb04 (patch)
tree48049f4fa816010f2aa9d05b1e692195cd3eb6bb /net-dialup/mgetty
parentMarked 2.0.3 ppc stable for bug #125828. (diff)
downloadgentoo-2-5647c2f1a2a36e7dd19296d84a568c8129baeb04.tar.gz
gentoo-2-5647c2f1a2a36e7dd19296d84a568c8129baeb04.tar.bz2
gentoo-2-5647c2f1a2a36e7dd19296d84a568c8129baeb04.zip
Quote various env vars and mark 1.1.34 as stable on x86. Version bump.
(Portage version: 2.0.54)
Diffstat (limited to 'net-dialup/mgetty')
-rw-r--r--net-dialup/mgetty/ChangeLog10
-rw-r--r--net-dialup/mgetty/Manifest65
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.351
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.35-callback.patch26
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.35-gentoo.patch26
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.35-strerror.patch47
-rw-r--r--net-dialup/mgetty/mgetty-1.1.34.ebuild53
-rw-r--r--net-dialup/mgetty/mgetty-1.1.35.ebuild149
8 files changed, 291 insertions, 86 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index 7118e0ab15f4..098cb7bf1679 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-dialup/mgetty
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.56 2006/03/10 00:31:30 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.57 2006/03/12 17:38:07 mrness Exp $
+
+*mgetty-1.1.35 (12 Mar 2006)
+
+ 12 Mar 2006; Alin Nastac <mrness@gentoo.org>
+ +files/mgetty-1.1.35-callback.patch, +files/mgetty-1.1.35-gentoo.patch,
+ +files/mgetty-1.1.35-strerror.patch, mgetty-1.1.34.ebuild,
+ +mgetty-1.1.35.ebuild:
+ Quote various env vars and mark 1.1.34 as stable on x86. Version bump.
10 Mar 2006; Aron Griffis <agriffis@gentoo.org> mgetty-1.1.33.ebuild:
Mark 1.1.33 stable on ia64
diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest
index 5d4887583673..13f715b4dba4 100644
--- a/net-dialup/mgetty/Manifest
+++ b/net-dialup/mgetty/Manifest
@@ -1,82 +1,29 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 b2550ffb2afcf035099c7ae2775e8cf1 ChangeLog 8370
-RMD160 92d21f9d6607446627307f00edf3eb5c72fcfa1f ChangeLog 8370
-SHA256 e17fa2fc58273db1f97fc2b7853442f83a6f128171fcfb4b3f206345f2f97a60 ChangeLog 8370
MD5 503ed4bbf18bb0b46850cb173873e16a files/Lucent.c.patch 814
-RMD160 686381b3ff22415c3d6a158501ffd1001fd87173 files/Lucent.c.patch 814
-SHA256 67770841c024a135efe7fffe24028829366b6da74195ccf43c71d7162738b2e2 files/Lucent.c.patch 814
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r2 70
-RMD160 52fb7b8dc290eef3036afdf7021ef69eeda9a281 files/digest-mgetty-1.1.30-r2 70
-SHA256 79933177caf8945fedee14619d896634f5d69c05c063a0361586926800733678 files/digest-mgetty-1.1.30-r2 70
MD5 c9b070dfabf7bd139d53d263f869b4f0 files/digest-mgetty-1.1.30-r3 70
-RMD160 52fb7b8dc290eef3036afdf7021ef69eeda9a281 files/digest-mgetty-1.1.30-r3 70
-SHA256 79933177caf8945fedee14619d896634f5d69c05c063a0361586926800733678 files/digest-mgetty-1.1.30-r3 70
MD5 892ea03975cbf5145ed6ab5f42424461 files/digest-mgetty-1.1.31-r1 70
-RMD160 440e82e0e9b2435d73abc559274dd2ac91519cef files/digest-mgetty-1.1.31-r1 70
-SHA256 edf1699b6d8b17bce5ee9bf32f001419ada1e3d242ab5017ae5d5381d9d96fe5 files/digest-mgetty-1.1.31-r1 70
MD5 192de0178f8a1dc659e1a81c7ff002c2 files/digest-mgetty-1.1.33 71
-RMD160 afb2073ecfbd2def667cc2dd858ffadb9cce415e files/digest-mgetty-1.1.33 71
-SHA256 a591221620c8ddd46f689203b5f8168d23947d0ee02da797633041672fafd930 files/digest-mgetty-1.1.33 71
MD5 76ca07f8e36ebf8d72099ac559bc8a81 files/digest-mgetty-1.1.34 71
-RMD160 98ba2dd2dcf48d95568cf5eb9073ee085bb7a4d1 files/digest-mgetty-1.1.34 71
-SHA256 2f65bff72559ef5c14d0c5b8ca7e0169413aa3a702c833b1c0cdf4ae0772c4ae files/digest-mgetty-1.1.34 71
+MD5 7eccb08354c669e1e6f1c2222aaadd65 files/digest-mgetty-1.1.35 71
MD5 bc47f96a12b21b779d57c0c2ad4b6837 files/mgetty-1.1.30-gentoo.diff 2771
-RMD160 86f400f1e753dd16589eba5b38771a0054d93fea files/mgetty-1.1.30-gentoo.diff 2771
-SHA256 270035ee4d9014815c66399644978eff0bb59e44a73a050c0850f822db247a13 files/mgetty-1.1.30-gentoo.diff 2771
MD5 4e57a595747a3348f58b9e0acb19b5b7 files/mgetty-1.1.31-callback.diff 989
-RMD160 98d26564299b79f3d951ec9f98a323d99da95cf2 files/mgetty-1.1.31-callback.diff 989
-SHA256 9249e20b6b23c995cc420c3cc052ccd759edd9301a29be10e542aa6baa56d46d files/mgetty-1.1.31-callback.diff 989
MD5 9b39643283b470533c7e4832364aa168 files/mgetty-1.1.31-gentoo.diff 2782
-RMD160 efd2c079f57d661e9781f3c3c4f437507aed3b9b files/mgetty-1.1.31-gentoo.diff 2782
-SHA256 5a13ccd0dd9633b1b069b460a84a0af852060385e75167b4c695b07f1efb9c66 files/mgetty-1.1.31-gentoo.diff 2782
MD5 98aeee2f59082edadd2c9f85e0fe4fde files/mgetty-1.1.31-logfile.c.diff 1581
-RMD160 839b03bb897e9b3c00a90a22fe9a6b05e22bea72 files/mgetty-1.1.31-logfile.c.diff 1581
-SHA256 f502096b8dd458c008e4a628f60dbebe847474a4bfc4e0a0bbcd1e669b33cc07 files/mgetty-1.1.31-logfile.c.diff 1581
MD5 90e6cd2de64fc408ab4103ce1800133f files/mgetty-1.1.31-r1-gentoo.diff 931
-RMD160 b54601529bf6de33960d895a463df37b58b7f6ed files/mgetty-1.1.31-r1-gentoo.diff 931
-SHA256 9ae196280008bd6deb7fd75105dd1eec610ef89cddb47dca6d695b26de3a766f files/mgetty-1.1.31-r1-gentoo.diff 931
MD5 c1e91ed1386ed8e49d88ffca11b2c194 files/mgetty-1.1.33-callback.diff 991
-RMD160 bcdedd383e889be91a478463244a6242fd03b992 files/mgetty-1.1.33-callback.diff 991
-SHA256 a97062e4b4d296ab7744f5f121e8750dfb271298776c953d61efca11eb122f67 files/mgetty-1.1.33-callback.diff 991
MD5 d9069c6812a2e93b2c51d0f59a5bf3f3 files/mgetty-1.1.33-gentoo.diff 933
-RMD160 d598686254d8f9d99116a41c56e3a940d21efb79 files/mgetty-1.1.33-gentoo.diff 933
-SHA256 dad1661656385173cac1ad01f6334806e5fd197fff240e42eb96a51f1aed2f0f files/mgetty-1.1.33-gentoo.diff 933
MD5 3d8cb487c2713420c85ac4af2fe324ab files/mgetty-1.1.33-strerror.diff 1573
-RMD160 b86ff6fa5aebc42cb1468a89676b571dd20021b6 files/mgetty-1.1.33-strerror.diff 1573
-SHA256 24eda7d65693be74d3a9bb711c700985eaecb212be2f809dbbb6ee7a9b98af2a files/mgetty-1.1.33-strerror.diff 1573
MD5 3df5198ba43975d679dfd11a9c23dc5b files/mgetty-1.1.34-callback.patch 991
-RMD160 12088d463dbdd447d0a7e5926da373e1251ae21c files/mgetty-1.1.34-callback.patch 991
-SHA256 964e314960bfb7bee76d337d9e7e6e5f050d291304650187a029fbf8e123dfe3 files/mgetty-1.1.34-callback.patch 991
MD5 b245928263a2507460ff9e99d6cd7f06 files/mgetty-1.1.34-gentoo.patch 933
-RMD160 de31061420f822e8a2a230e78e24ed2dde6f9d9f files/mgetty-1.1.34-gentoo.patch 933
-SHA256 e04f9be03ea6655fdd69a2d6bf2018241c6ea13d7e641b1b005480677a8863a8 files/mgetty-1.1.34-gentoo.patch 933
MD5 32b5b7d9a230a6dd97a35312989562f3 files/mgetty-1.1.34-strerror.patch 1573
-RMD160 706d366075479aab2016b6b4dd94d83560a54e25 files/mgetty-1.1.34-strerror.patch 1573
-SHA256 e05ee73f31ec05835cdb54212cd81a81e995e97b98c5fa42e01c32fbbd570e26 files/mgetty-1.1.34-strerror.patch 1573
+MD5 40d2996019a7a40907948b2a8c67e525 files/mgetty-1.1.35-callback.patch 991
+MD5 b3c49e2689ed9e1f4abd8d9c0a160a4f files/mgetty-1.1.35-gentoo.patch 933
+MD5 27565fcde66bcc4c9741fd88dea30d04 files/mgetty-1.1.35-strerror.patch 1573
MD5 1bb6061bf8000d07f70ffdd74f5659f4 metadata.xml 377
-RMD160 1f17a6dbb9efe9992b812c253e63d02e93e37223 metadata.xml 377
-SHA256 b6756d3fd813f8ff00f96cb472d15c9402e18001d9308dfdef1201369a4f6a6e metadata.xml 377
MD5 5c1fecd73b6e0ccb0044b2997a067a8c mgetty-1.1.30-r2.ebuild 3541
-RMD160 0341ade6ec264143e2bfb9a1dc132cea7fa8969c mgetty-1.1.30-r2.ebuild 3541
-SHA256 d269fb3fbf7ebad1ca05e1faf78b28c71f68c7118265406a43ed23ee76854080 mgetty-1.1.30-r2.ebuild 3541
MD5 613c00d8bb964fcd6799ffb1bd97356a mgetty-1.1.30-r3.ebuild 3808
-RMD160 51fa677ad7ba9b940931be172d213bf48b2dfe11 mgetty-1.1.30-r3.ebuild 3808
-SHA256 99a02f4ca512cb118bc86a97aa61d4fbbb4cb87fa0b00f2295a61f8168a05a7b mgetty-1.1.30-r3.ebuild 3808
MD5 292c3f40fe41b373489b01659b894ce4 mgetty-1.1.31-r1.ebuild 3843
-RMD160 1ea648ca933bb4436a6406088cf0c3bca70a10cc mgetty-1.1.31-r1.ebuild 3843
-SHA256 07fb66993982efcf85573ab91351bf355586ff268013b4e05c42e0673666c0ba mgetty-1.1.31-r1.ebuild 3843
MD5 466a46acdacbc2fff44f054a06731961 mgetty-1.1.33.ebuild 4309
-RMD160 0dc85f08814cfa65f518ea3324997d96f5ca9988 mgetty-1.1.33.ebuild 4309
-SHA256 1e0b287970abe454665e1e05eeb35c7d5ab0c58f3b8eb5d69aa17736995c6a44 mgetty-1.1.33.ebuild 4309
-MD5 5051a985cf1e4c819f69daa2c4624fe8 mgetty-1.1.34.ebuild 4274
-RMD160 369a4131bf99fa24db0fe2c0f82edf8eb61615fc mgetty-1.1.34.ebuild 4274
-SHA256 484749d3c7677e1f196d9351191afe7afb10b04291fbe2176264ebe1534d055c mgetty-1.1.34.ebuild 4274
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFEEMjsJrHF4yAQTrARAulwAKCtAmpxWqZuZ/99YAAnzFeEWmh29QCff6s1
-vFu+c9BsD7H8aX+fBFaRUd0=
-=MKah
------END PGP SIGNATURE-----
+MD5 a1b5216f0ce01b9d5cd179b58ac3018b mgetty-1.1.34.ebuild 4324
+MD5 2c445942885fb31ae5e39b0cf245f100 mgetty-1.1.35.ebuild 4325
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.35 b/net-dialup/mgetty/files/digest-mgetty-1.1.35
new file mode 100644
index 000000000000..dffc225411d0
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.35
@@ -0,0 +1 @@
+MD5 6805f8e31423bb777be80e3a856001cb mgetty1.1.35-Feb22.tar.gz 1023412
diff --git a/net-dialup/mgetty/files/mgetty-1.1.35-callback.patch b/net-dialup/mgetty/files/mgetty-1.1.35-callback.patch
new file mode 100644
index 000000000000..c1d1f9d9b13a
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.35-callback.patch
@@ -0,0 +1,26 @@
+diff -Nru mgetty-1.1.35.orig/Makefile mgetty-1.1.35/Makefile
+--- mgetty-1.1.35.orig/Makefile 2006-02-22 15:58:33.000000000 +0200
++++ mgetty-1.1.35/Makefile 2006-03-12 19:29:07.362329250 +0200
+@@ -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
+@@ -698,6 +698,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 t ; do \
diff --git a/net-dialup/mgetty/files/mgetty-1.1.35-gentoo.patch b/net-dialup/mgetty/files/mgetty-1.1.35-gentoo.patch
new file mode 100644
index 000000000000..79897e8c7f41
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.35-gentoo.patch
@@ -0,0 +1,26 @@
+diff -Nru mgetty-1.1.35.orig/doc/mgetty.texi-in mgetty-1.1.35/doc/mgetty.texi-in
+--- mgetty-1.1.35.orig/doc/mgetty.texi-in 2005-12-30 23:43:49.000000000 +0200
++++ mgetty-1.1.35/doc/mgetty.texi-in 2006-03-12 19:32:41.331701500 +0200
+@@ -19,6 +19,11 @@
+ Copyright @copyright{} 1993-2005 Gert Doering
+ @end ifinfo
+
++@dircategory User
++@direntry
++* MGETTY: (mgetty). Modem+Voice+Fax utilities
++@end direntry
++
+ @titlepage
+ @sp 6
+ @center @titlefont{mgetty+sendfax}
+diff -Nru mgetty-1.1.35.orig/voice/Makefile mgetty-1.1.35/voice/Makefile
+--- mgetty-1.1.35.orig/voice/Makefile 2001-12-23 17:08:13.000000000 +0200
++++ mgetty-1.1.35/voice/Makefile 2006-03-12 19:32:41.339702000 +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); \
diff --git a/net-dialup/mgetty/files/mgetty-1.1.35-strerror.patch b/net-dialup/mgetty/files/mgetty-1.1.35-strerror.patch
new file mode 100644
index 000000000000..a2057d3f7b9b
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.35-strerror.patch
@@ -0,0 +1,47 @@
+diff -Nru mgetty-1.1.35.orig/logfile.c mgetty-1.1.35/logfile.c
+--- mgetty-1.1.35.orig/logfile.c 2005-11-26 15:48:16.000000000 +0200
++++ mgetty-1.1.35/logfile.c 2006-03-12 19:30:46.556528500 +0200
+@@ -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 */
+
+-#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__MACH__)
++/*#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__MACH__)
+ extern int sys_nerr;
+ extern char *sys_errlist[];
+-#endif
++#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/mgetty-1.1.34.ebuild b/net-dialup/mgetty/mgetty-1.1.34.ebuild
index 613334d1f9f8..8879a324229b 100644
--- a/net-dialup/mgetty/mgetty-1.1.34.ebuild
+++ b/net-dialup/mgetty/mgetty-1.1.34.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.34.ebuild,v 1.1 2006/01/09 09:08:41 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.34.ebuild,v 1.2 2006/03/12 17:38:07 mrness Exp $
inherit toolchain-funcs flag-o-matic eutils
@@ -17,7 +17,7 @@ DEPEND="doc? ( virtual/tetex )
SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc x86"
IUSE="doc"
pkg_setup() {
@@ -27,43 +27,44 @@ pkg_setup() {
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${P}-gentoo.patch
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
# fix deprecate warnings
- epatch ${FILESDIR}/${P}-strerror.patch
+ epatch "${FILESDIR}/${P}-strerror.patch"
# add callback install to Makefile
- epatch ${FILESDIR}/${P}-callback.patch
+ epatch "${FILESDIR}/${P}-callback.patch"
# Lucent modem CallerID patch - bug #80366
- epatch ${FILESDIR}/Lucent.c.patch
+ epatch "${FILESDIR}/Lucent.c.patch"
#Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
append-ldflags $(bindnow-flags)
- sed -i 's: \$(CFLAGS) -o faxq-helper faxq-helper.o: $(LDLAGS) '$(bindnow-flags)' -o faxq-helper faxq-helper.o:' ${S}/fax/Makefile
+ sed -i 's: \$(CFLAGS) -o faxq-helper faxq-helper.o: $(LDLAGS) '$(bindnow-flags)' -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
+ "${S}/policy.h-dist" > "${S}/policy.h"
#Set proper owner:group
- sed -i -e "s:uucp:fax:g" ${S}/mgetty.cfg.in
+ sed -i -e "s:uucp:fax:g" "${S}/mgetty.cfg.in"
sed -i -e "s:phone_group phone:phone_group fax:g" \
-e "s:phone_owner root:phone_owner fax:g" \
- -e "s/root.phone/fax:fax/g" ${S}/voice/voice.conf-dist
+ -e "s/root.phone/fax: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
+ -i "${S}/Makefile"
sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \
- -i ${S}/doc/Makefile
+ -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
+ -i "${S}/doc/Makefile"
fi
}
@@ -84,22 +85,22 @@ src_install () {
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 \
+ 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 \
+ spool="${D}/var/spool" \
install vgetty-install install-callback || die "make install failed."
- cd ${S}
+ 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."
diff --git a/net-dialup/mgetty/mgetty-1.1.35.ebuild b/net-dialup/mgetty/mgetty-1.1.35.ebuild
new file mode 100644
index 000000000000..5124f77ab6ee
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.35.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.35.ebuild,v 1.1 2006/03/12 17:38:07 mrness Exp $
+
+inherit toolchain-funcs flag-o-matic eutils
+
+DESCRIPTION="Fax and Voice modem programs."
+SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Feb22.tar.gz"
+HOMEPAGE="http://mgetty.greenie.net/"
+
+DEPEND="doc? ( virtual/tetex )
+ >=sys-apps/sed-4
+ sys-apps/gawk
+ sys-apps/groff
+ dev-lang/perl
+ sys-apps/texinfo"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE="doc"
+
+pkg_setup() {
+ enewgroup fax
+ enewuser fax -1 -1 /dev/null fax
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ # fix deprecate warnings
+ epatch "${FILESDIR}/${P}-strerror.patch"
+ # add callback install to Makefile
+ epatch "${FILESDIR}/${P}-callback.patch"
+ # Lucent modem CallerID patch - bug #80366
+ epatch "${FILESDIR}/Lucent.c.patch"
+
+ #Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
+ append-ldflags $(bindnow-flags)
+
+ sed -i 's: \$(CFLAGS) -o faxq-helper faxq-helper.o: $(LDLAGS) '$(bindnow-flags)' -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"
+
+ #Set proper owner:group
+ sed -i -e "s:uucp:fax:g" "${S}/mgetty.cfg.in"
+ sed -i -e "s:phone_group phone:phone_group fax:g" \
+ -e "s:phone_owner root:phone_owner fax:g" \
+ -e "s/root.phone/fax: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"
+
+ 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 "make install failed."
+
+ 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/*
+
+ insinto /usr/share/${PN}
+ doins -r patches frontends
+ insinto /usr/share/${PN}/voice
+ doins -r voice/{contrib,Perl,scripts}
+
+ diropts -m 0750 -o fax -g fax
+ dodir /var/spool/voice
+ keepdir /var/spool/voice/incoming
+ keepdir /var/spool/voice/messages
+ dodir /var/spool/fax
+ dodir /var/spool/fax/outgoing
+ keepdir /var/spool/fax/outgoing/locks
+ keepdir /var/spool/fax/incoming
+}
+
+pkg_postinst() {
+ einfo "Users who wish to use the fax or voicemail capabilities must be members"
+ einfo "of the group fax in order to access files"
+ echo
+ einfo "If you want to grab voice messages from a remote location, you must save"
+ einfo "the password in ${ROOT}var/spool/voice/.code file"
+ echo
+ ewarn "${ROOT}var/spool/voice/.code and ${ROOT}var/spool/voice/messages/Index"
+ ewarn "are not longer created by this automatically!"
+}