summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-09-14 20:33:59 +0000
committerAlin Năstac <mrness@gentoo.org>2007-09-14 20:33:59 +0000
commit11f3b3f2005cb6bff80cfd27cea17b5157097d63 (patch)
tree25817e98d08ef4a6b0f71f3953d64375b3f96ff7 /net-dialup/mgetty
parentPut correct license in place (bug #192534) (diff)
downloadhistorical-11f3b3f2005cb6bff80cfd27cea17b5157097d63.tar.gz
historical-11f3b3f2005cb6bff80cfd27cea17b5157097d63.tar.bz2
historical-11f3b3f2005cb6bff80cfd27cea17b5157097d63.zip
Use ghostscript instead acroread and add netpbm and ghostscript to run-time dependencies (#191441).
Package-Manager: portage-2.1.2.12
Diffstat (limited to 'net-dialup/mgetty')
-rw-r--r--net-dialup/mgetty/ChangeLog10
-rw-r--r--net-dialup/mgetty/Manifest38
-rw-r--r--net-dialup/mgetty/files/digest-mgetty-1.1.363
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.36-callback.patch26
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.36-gentoo.patch170
-rw-r--r--net-dialup/mgetty/files/mgetty-1.1.36-qa-fixes.patch92
-rw-r--r--net-dialup/mgetty/mgetty-1.1.36.ebuild147
7 files changed, 481 insertions, 5 deletions
diff --git a/net-dialup/mgetty/ChangeLog b/net-dialup/mgetty/ChangeLog
index 495a2dc94da6..856172668b21 100644
--- a/net-dialup/mgetty/ChangeLog
+++ b/net-dialup/mgetty/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-dialup/mgetty
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.73 2007/05/06 07:57:44 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.74 2007/09/14 20:33:55 mrness Exp $
+
+*mgetty-1.1.36 (14 Sep 2007)
+
+ 14 Sep 2007; Alin Năstac <mrness@gentoo.org>
+ +files/mgetty-1.1.36-callback.patch, +files/mgetty-1.1.36-gentoo.patch,
+ +files/mgetty-1.1.36-qa-fixes.patch, +mgetty-1.1.36.ebuild:
+ Use ghostscript instead acroread and add netpbm and ghostscript to run-time
+ dependencies (#191441).
06 May 2007; Marius Mauch <genone@gentoo.org> mgetty-1.1.35-r2.ebuild:
Replacing einfo with elog
diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest
index 64de8f8f139f..6e75b8e7ec9b 100644
--- a/net-dialup/mgetty/Manifest
+++ b/net-dialup/mgetty/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX Lucent.c.patch 814 RMD160 686381b3ff22415c3d6a158501ffd1001fd87173 SHA1 c8b62a51af629ad0128a886ae3a78915618113ac SHA256 67770841c024a135efe7fffe24028829366b6da74195ccf43c71d7162738b2e2
MD5 503ed4bbf18bb0b46850cb173873e16a files/Lucent.c.patch 814
RMD160 686381b3ff22415c3d6a158501ffd1001fd87173 files/Lucent.c.patch 814
@@ -26,15 +29,32 @@ AUX mgetty-1.1.35-strerror.patch 1573 RMD160 b3b973247539545f90adee99efb50cc53ab
MD5 27565fcde66bcc4c9741fd88dea30d04 files/mgetty-1.1.35-strerror.patch 1573
RMD160 b3b973247539545f90adee99efb50cc53ab0828a files/mgetty-1.1.35-strerror.patch 1573
SHA256 fa3d890c6aee0291db1faf4f1622919b099f42d697a8fcd5079b96eb3c057a40 files/mgetty-1.1.35-strerror.patch 1573
+AUX mgetty-1.1.36-callback.patch 991 RMD160 fd6b6198865a7cdafe66031014b55a07d217e011 SHA1 28f50f9ad16f5fc928be180ec77db913283b59be SHA256 881df3df8299deea291b1d823ccb0c61430c2f1a2b8f0af4b8ae334d9f6ffb44
+MD5 b1b4dae5db1ba5bc570d298b9106a3e7 files/mgetty-1.1.36-callback.patch 991
+RMD160 fd6b6198865a7cdafe66031014b55a07d217e011 files/mgetty-1.1.36-callback.patch 991
+SHA256 881df3df8299deea291b1d823ccb0c61430c2f1a2b8f0af4b8ae334d9f6ffb44 files/mgetty-1.1.36-callback.patch 991
+AUX mgetty-1.1.36-gentoo.patch 5746 RMD160 59810be601f24213aa4cfcd7f73e0efafa8b33c9 SHA1 959bcd2da70cf8ed6d04573acdc86eee80292573 SHA256 f8124ea78ef813233aa050d25deb45c3c2c667bb8ab8a1f0ce35ef3ed74ef952
+MD5 ea2d814f816dd0c17e470f3bc2b7be27 files/mgetty-1.1.36-gentoo.patch 5746
+RMD160 59810be601f24213aa4cfcd7f73e0efafa8b33c9 files/mgetty-1.1.36-gentoo.patch 5746
+SHA256 f8124ea78ef813233aa050d25deb45c3c2c667bb8ab8a1f0ce35ef3ed74ef952 files/mgetty-1.1.36-gentoo.patch 5746
+AUX mgetty-1.1.36-qa-fixes.patch 3369 RMD160 0394431b71f5fbe68a7614decabf7e002dda0d00 SHA1 7c54a40b7f9cebc88d20e30d13d2ac2b37393ce9 SHA256 53a0c38440b7f0e15ca032672a3f26913f7736d9d0ddcac7919771cf816a7570
+MD5 2eba5374603a7f5d35e22d2e3da2005f files/mgetty-1.1.36-qa-fixes.patch 3369
+RMD160 0394431b71f5fbe68a7614decabf7e002dda0d00 files/mgetty-1.1.36-qa-fixes.patch 3369
+SHA256 53a0c38440b7f0e15ca032672a3f26913f7736d9d0ddcac7919771cf816a7570 files/mgetty-1.1.36-qa-fixes.patch 3369
DIST mgetty1.1.35-Feb22.tar.gz 1023412 RMD160 835fc090835e3838e7d4c77a7f06a4c59869b3ab SHA1 27f46d22cbcfeac8c434d1784462a05f7425a57e SHA256 0846bfdc49f535842be033a3080b2b08499fabeec8de644c34470243d799f928
+DIST mgetty1.1.36-Jun15.tar.gz 1046324 RMD160 421c72b8534c6665c46033d5fe1018ba1300fd50 SHA1 a9627e241502c505465a9c8ffadc09dd7d90fc02 SHA256 8b8642aa318604ad057ed161cacff5c600296cbfbc9b4d562134ee5c130c80ce
EBUILD mgetty-1.1.35-r2.ebuild 4978 RMD160 a066cbf99c4abdb73f935c6263fbf998e4cc7ecc SHA1 d22c43198a783297b9cb25c4100ab2eda369603c SHA256 05ea76c0d1c9d902e5a1836cde50907128dce574402e7384eda6e7aa7f3381e0
MD5 c37de847fbb35c3f6c416e758ac620e5 mgetty-1.1.35-r2.ebuild 4978
RMD160 a066cbf99c4abdb73f935c6263fbf998e4cc7ecc mgetty-1.1.35-r2.ebuild 4978
SHA256 05ea76c0d1c9d902e5a1836cde50907128dce574402e7384eda6e7aa7f3381e0 mgetty-1.1.35-r2.ebuild 4978
-MISC ChangeLog 11277 RMD160 c9f5935806d394411adffd00d73a5d14851445d8 SHA1 9608e6998e00f6045d7c697d969b2aa38efa1a78 SHA256 298e9a2fc0a4131f136a3f203905093efa6f213b74e8dbef700953fa7321ca21
-MD5 7485509b149832d1c26778aec27a8529 ChangeLog 11277
-RMD160 c9f5935806d394411adffd00d73a5d14851445d8 ChangeLog 11277
-SHA256 298e9a2fc0a4131f136a3f203905093efa6f213b74e8dbef700953fa7321ca21 ChangeLog 11277
+EBUILD mgetty-1.1.36.ebuild 4348 RMD160 68b0130313dc28e1340850272d5c105804f7db1d SHA1 8cac29703279ebef24e3c2f116148f3bdb0452e8 SHA256 d59fc9e361e1b1178dac0d18863d4584bbc1fbcc89a56f5f764f7bdeed806856
+MD5 89e2e1c979ef9fbf1f13e53404d049c9 mgetty-1.1.36.ebuild 4348
+RMD160 68b0130313dc28e1340850272d5c105804f7db1d mgetty-1.1.36.ebuild 4348
+SHA256 d59fc9e361e1b1178dac0d18863d4584bbc1fbcc89a56f5f764f7bdeed806856 mgetty-1.1.36.ebuild 4348
+MISC ChangeLog 11596 RMD160 b4494b09250c7749c5e39961ee272cad7a3f419f SHA1 598c6d6d8409cf5d6e314090bcd11061f3498a04 SHA256 c47915ca9dd03cd6b4a2338443721858f4f640ef8c10bad7395b3375416112de
+MD5 365bfa357eb98d27de8aa3df818221bd ChangeLog 11596
+RMD160 b4494b09250c7749c5e39961ee272cad7a3f419f ChangeLog 11596
+SHA256 c47915ca9dd03cd6b4a2338443721858f4f640ef8c10bad7395b3375416112de ChangeLog 11596
MISC metadata.xml 377 RMD160 1f17a6dbb9efe9992b812c253e63d02e93e37223 SHA1 0bde55896c3d1b16d71d1b33fc4b267b35817d5d SHA256 b6756d3fd813f8ff00f96cb472d15c9402e18001d9308dfdef1201369a4f6a6e
MD5 1bb6061bf8000d07f70ffdd74f5659f4 metadata.xml 377
RMD160 1f17a6dbb9efe9992b812c253e63d02e93e37223 metadata.xml 377
@@ -42,3 +62,13 @@ SHA256 b6756d3fd813f8ff00f96cb472d15c9402e18001d9308dfdef1201369a4f6a6e metadata
MD5 f2918bd35421e6d03f6fbde02874a7bd files/digest-mgetty-1.1.35-r2 259
RMD160 faffd810fc4a7846ea21a5fcf97c9ee0cd185ff3 files/digest-mgetty-1.1.35-r2 259
SHA256 9f5c26b6296f9ea4f57a6d08d7bd44d8437108ecdf1032a4e209456db3196f8c files/digest-mgetty-1.1.35-r2 259
+MD5 2709b3129958c2fc786427bfdd8dfad0 files/digest-mgetty-1.1.36 259
+RMD160 e41a47622b26c650ab434cae7dd4005f994b6bc8 files/digest-mgetty-1.1.36 259
+SHA256 5c95a8e18abd6c2492e5147988850f914873157ceb79f4ab5e2711da4ab1ec5a files/digest-mgetty-1.1.36 259
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.6 (GNU/Linux)
+
+iD8DBQFG6vA9VSA5X31g7/gRAt/9AKCO276U9GtqUMzk0L8vTzXjdrdoNwCeNhk+
+CbHGLcV20sNjbyBc8YUznYM=
+=F3PC
+-----END PGP SIGNATURE-----
diff --git a/net-dialup/mgetty/files/digest-mgetty-1.1.36 b/net-dialup/mgetty/files/digest-mgetty-1.1.36
new file mode 100644
index 000000000000..30482dab86c8
--- /dev/null
+++ b/net-dialup/mgetty/files/digest-mgetty-1.1.36
@@ -0,0 +1,3 @@
+MD5 0320e98c6b86bcca48fc5f355b94ead4 mgetty1.1.36-Jun15.tar.gz 1046324
+RMD160 421c72b8534c6665c46033d5fe1018ba1300fd50 mgetty1.1.36-Jun15.tar.gz 1046324
+SHA256 8b8642aa318604ad057ed161cacff5c600296cbfbc9b4d562134ee5c130c80ce mgetty1.1.36-Jun15.tar.gz 1046324
diff --git a/net-dialup/mgetty/files/mgetty-1.1.36-callback.patch b/net-dialup/mgetty/files/mgetty-1.1.36-callback.patch
new file mode 100644
index 000000000000..fcd4e0e2cd48
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.36-callback.patch
@@ -0,0 +1,26 @@
+diff -Nru mgetty-1.1.36.orig/Makefile mgetty-1.1.36/Makefile
+--- mgetty-1.1.36.orig/Makefile 2007-09-14 22:15:02.000000000 +0300
++++ mgetty-1.1.36/Makefile 2007-09-14 22:15:37.000000000 +0300
+@@ -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
+@@ -693,6 +693,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.36-gentoo.patch b/net-dialup/mgetty/files/mgetty-1.1.36-gentoo.patch
new file mode 100644
index 000000000000..12de205d76c7
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.36-gentoo.patch
@@ -0,0 +1,170 @@
+diff -Nru mgetty-1.1.36.orig/callback/Makefile mgetty-1.1.36/callback/Makefile
+--- mgetty-1.1.36.orig/callback/Makefile 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/callback/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -37,7 +37,7 @@
+ # install programs
+ #
+ install: all
+- $(INSTALL) -s -m 700 -o root callback $(SBINDIR)
+- $(INSTALL) -s -m 4711 -o root ct $(BINDIR)
++ $(INSTALL) -m 700 -o root callback $(SBINDIR)
++ $(INSTALL) -m 4711 -o root ct $(BINDIR)
+
+ # source modules
+diff -Nru mgetty-1.1.36.orig/doc/mgetty.texi-in mgetty-1.1.36/doc/mgetty.texi-in
+--- mgetty-1.1.36.orig/doc/mgetty.texi-in 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/doc/mgetty.texi-in 2007-09-14 23:02:58.000000000 +0300
+@@ -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.36.orig/fax/faxspool.in mgetty-1.1.36/fax/faxspool.in
+--- mgetty-1.1.36.orig/fax/faxspool.in 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/fax/faxspool.in 2007-09-14 23:02:58.000000000 +0300
+@@ -380,7 +380,7 @@
+
+ #
+ # convert pdf data
+-# needs GNU GhostScript and Adobe acroread installed.
++# needs GNU GhostScript installed.
+ # For driver selection, see definition of GS_DRIVER_{HI,LO} above.
+ #
+ # contributed by mfvm@gmx.de (Michael Fischer v. Mollard)
+@@ -391,7 +391,7 @@
+ test X$3 = X-n && driver="$GS_DRIVER_LO"
+
+ cat $1 |
+- acroread -toPostScript |
++ pdf2ps -sOutputFile=- - |
+ gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
+ }
+
+diff -Nru mgetty-1.1.36.orig/frontends/X11/viewfax/Makefile mgetty-1.1.36/frontends/X11/viewfax/Makefile
+--- mgetty-1.1.36.orig/frontends/X11/viewfax/Makefile 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/frontends/X11/viewfax/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -61,7 +61,7 @@
+ g3hack: g3hack.c
+
+ install: viewfax
+- $(INSTALL) -s -m 755 viewfax $(BINDIR)
++ $(INSTALL) -m 755 viewfax $(BINDIR)
+ $(INSTALL) -m 644 viewfax.man $(MANDIR)/viewfax.1
+ $(INSTALL) -m 644 viewfax.tif $(LIBDIR)
+
+diff -Nru mgetty-1.1.36.orig/g3/Makefile mgetty-1.1.36/g3/Makefile
+--- mgetty-1.1.36.orig/g3/Makefile 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/g3/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -37,13 +37,13 @@
+ # install programs
+ #
+ for f in $(G3_PROGRAMS) ; do \
+- $(INSTALL) -s -m 755 $$f $(BINDIR) ; \
++ $(INSTALL) -m 755 $$f $(BINDIR) ; \
+ done
+ #
+ # make symlink for "g3topbm" (so third-party fax viewers won't fail)
+-#
+- -cd $(BINDIR) ; \
+- test -x g3topbm || ln -s g32pbm g3topbm
++# Note for Gentoo: following lines will create collision with netpbm if netpbm is installed after
++# -cd $(BINDIR) ; \
++# test -x g3topbm || ln -s g32pbm g3topbm
+
+
+ # test suite
+diff -Nru mgetty-1.1.36.orig/Makefile mgetty-1.1.36/Makefile
+--- mgetty-1.1.36.orig/Makefile 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -275,7 +275,7 @@
+ # please use the "mg.echo" program provided in the compat/ subdirectory.
+ # Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo
+ #
+-ECHO="echo"
++ECHO="echo -e"
+ #
+ # INSTALL_MECHO=mg.echo
+
+@@ -584,10 +584,8 @@
+ $(INSTALL) -m 755 newslock $(BINDIR)
+
+ -test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
+- -mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
+- -mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old
+- $(INSTALL) -s -m 700 mgetty $(SBINDIR)
+- $(INSTALL) -s -m 755 sendfax $(SBINDIR)
++ $(INSTALL) -m 700 mgetty $(SBINDIR)
++ $(INSTALL) -m 755 sendfax $(SBINDIR)
+ #
+ # data files + directories
+ #
+@@ -649,7 +647,7 @@
+ if [ ! -z "$(INSTALL_MECHO)" ] ; then \
+ cd compat ; \
+ $(CC) $(CFLAGS) -o mg.echo mg.echo.c && \
+- $(INSTALL) -s -m 755 mg.echo $(BINDIR) ; \
++ $(INSTALL) -m 755 mg.echo $(BINDIR) ; \
+ fi
+
+ #
+diff -Nru mgetty-1.1.36.orig/mgetty.cfg.in mgetty-1.1.36/mgetty.cfg.in
+--- mgetty-1.1.36.orig/mgetty.cfg.in 2003-11-17 21:09:41.000000000 +0200
++++ mgetty-1.1.36/mgetty.cfg.in 2007-09-14 23:02:58.000000000 +0300
+@@ -20,16 +20,16 @@
+ # access the modem(s) with @SPEED@ bps
+ speed @SPEED@
+
+-# use these options to make the /dev/tty-device owned by "uucp.uucp"
++# use these options to make the /dev/tty-device owned by "fax.fax"
+ # and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
+-#port-owner uucp
+-#port-group uucp
++#port-owner fax
++#port-group fax
+ #port-mode 0664
+
+-# use these options to make incoming faxes owned by "root.uucp"
++# use these options to make incoming faxes owned by "root.fax"
+ # and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
+ #fax-owner root
+-#fax-group uucp
++#fax-group fax
+ #fax-mode 0640
+
+
+diff -Nru mgetty-1.1.36.orig/voice/Makefile mgetty-1.1.36/voice/Makefile
+--- mgetty-1.1.36.orig/voice/Makefile 2007-09-14 23:03:32.000000000 +0300
++++ mgetty-1.1.36/voice/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -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 -Nru mgetty-1.1.36.orig/voice/voice.conf-dist mgetty-1.1.36/voice/voice.conf-dist
+--- mgetty-1.1.36.orig/voice/voice.conf-dist 2005-03-19 18:10:20.000000000 +0200
++++ mgetty-1.1.36/voice/voice.conf-dist 2007-09-14 23:02:58.000000000 +0300
+@@ -47,11 +47,11 @@
+ voice_dir /var/spool/voice
+
+ #
+-# incoming messages are owned by "root.phone" and mode "rw-rw----" (0660)
++# incoming messages are owned by "fax:fax" and mode "rw-rw----" (0660)
+ #
+
+-phone_owner root
+-phone_group phone
++phone_owner fax
++phone_group fax
+ phone_mode 0660
+
+ #
diff --git a/net-dialup/mgetty/files/mgetty-1.1.36-qa-fixes.patch b/net-dialup/mgetty/files/mgetty-1.1.36-qa-fixes.patch
new file mode 100644
index 000000000000..43a7ca5bd8dc
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.1.36-qa-fixes.patch
@@ -0,0 +1,92 @@
+diff -Nru mgetty-1.1.36.orig/fax/Makefile mgetty-1.1.36/fax/Makefile
+--- mgetty-1.1.36.orig/fax/Makefile 2006-02-22 19:25:30.000000000 +0200
++++ mgetty-1.1.36/fax/Makefile 2007-09-14 23:02:58.000000000 +0300
+@@ -36,7 +36,7 @@
+ @cd .. ; $(MAKE) sedscript
+
+ faxq-helper: faxq-helper.o
+- $(CC) $(CFLAGS) -o faxq-helper faxq-helper.o
++ $(CC) $(LDLAGS) -o faxq-helper faxq-helper.o
+
+ faxq-helper.o: faxq-helper.c ../sedscript
+ $(CC) $(CFLAGS) -DFAX_SPOOL_OUT=\"$(FAX_SPOOL_OUT)\" \
+diff -Nru mgetty-1.1.36.orig/fax_lib.h mgetty-1.1.36/fax_lib.h
+--- mgetty-1.1.36.orig/fax_lib.h 2007-06-15 09:44:36.000000000 +0300
++++ mgetty-1.1.36/fax_lib.h 2007-09-14 22:29:47.000000000 +0300
+@@ -41,6 +41,7 @@
+ int fax_set_fdcc _PROTO(( int fd, int fine, int maxsp, int minsp ));
+ int fax_set_bor _PROTO(( int fd, int bit_order ));
+ int fax_set_flowcontrol _PROTO(( int fd, int hw_flow ));
++void fax_init_swaptable _PROTO(( int direct, unsigned char byte_tab[] ));
+ int mdm_identify _PROTO(( int fd ));
+ void fax2_incoming_nsf _PROTO(( char * nsf_hex ));
+ void fax1_incoming_nsf _PROTO(( uch * nsf_bin, int len ));
+diff -Nru mgetty-1.1.36.orig/logfile.c mgetty-1.1.36/logfile.c
+--- mgetty-1.1.36.orig/logfile.c 2005-11-26 15:48:16.000000000 +0200
++++ mgetty-1.1.36/logfile.c 2007-09-14 22:25:13.000000000 +0300
+@@ -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 -Nru mgetty-1.1.36.orig/t/t_g3f_c.c mgetty-1.1.36/t/t_g3f_c.c
+--- mgetty-1.1.36.orig/t/t_g3f_c.c 2007-05-05 15:03:03.000000000 +0300
++++ mgetty-1.1.36/t/t_g3f_c.c 2007-09-14 22:26:36.000000000 +0300
+@@ -19,6 +19,7 @@
+ #include "fax_lib.h"
+
+ #include <stdio.h>
++#include <unistd.h>
+ #include <signal.h>
+ #include <errno.h>
+ #include <stdlib.h>
+diff -Nru mgetty-1.1.36.orig/t/t_ring.c mgetty-1.1.36/t/t_ring.c
+--- mgetty-1.1.36.orig/t/t_ring.c 2005-03-23 11:56:21.000000000 +0200
++++ mgetty-1.1.36/t/t_ring.c 2007-09-14 22:25:07.000000000 +0300
+@@ -24,6 +24,7 @@
+
+ #include "mgetty.h"
+ #include <stdio.h>
++#include <string.h>
+ #include <signal.h>
+ #include <errno.h>
+ #ifdef T_LOG_VERBOSE
diff --git a/net-dialup/mgetty/mgetty-1.1.36.ebuild b/net-dialup/mgetty/mgetty-1.1.36.ebuild
new file mode 100644
index 000000000000..6413dcbc888e
--- /dev/null
+++ b/net-dialup/mgetty/mgetty-1.1.36.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.36.ebuild,v 1.1 2007/09/14 20:33:55 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}-Jun15.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"
+RDEPEND="${DEPEND}
+ media-libs/netpbm
+ virtual/ghostscript"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE="doc fidonet"
+
+pkg_setup() {
+ enewgroup fax
+ enewuser fax -1 -1 /dev/null fax
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ epatch "${FILESDIR}/${P}-qa-fixes.patch"
+ epatch "${FILESDIR}/${P}-callback.patch" # add callback install to Makefile
+ epatch "${FILESDIR}/Lucent.c.patch" # Lucent modem CallerID patch - bug #80366
+
+ 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:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config
+ sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules
+
+ 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() {
+ #Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
+ append-ldflags $(bindnow-flags)
+
+ use fidonet && append-flags "-DFIDO"
+ 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
+ keepdir /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."
+
+ #Install mgetty into /sbin (#119078)
+ dodir /sbin && \
+ mv "${D}"/usr/sbin/mgetty "${D}"/sbin && \
+ dosym /sbin/mgetty /usr/sbin/mgetty || die "failed to install /sbin/mgetty"
+ #Don't install ct (#106337)
+ rm "${D}"/usr/bin/ct || die "failed to remove useless ct program"
+
+ 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() {
+ elog "Users who wish to use the fax or voicemail capabilities must be members"
+ elog "of the group fax in order to access files"
+ elog
+ elog "If you want to grab voice messages from a remote location, you must save"
+ elog "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!"
+}