summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Doty <kingtaco@gentoo.org>2005-05-07 00:55:00 +0000
committerMike Doty <kingtaco@gentoo.org>2005-05-07 00:55:00 +0000
commit0ea39806b42948bdf7cc05bae5166bfee33b8ba6 (patch)
treeb35c51fee166af3b13533ac4acbec47922e55e20
parentuse.local.desc: net-misc/hylafax:mgetty (diff)
downloadhistorical-0ea39806b42948bdf7cc05bae5166bfee33b8ba6.tar.gz
historical-0ea39806b42948bdf7cc05bae5166bfee33b8ba6.tar.bz2
historical-0ea39806b42948bdf7cc05bae5166bfee33b8ba6.zip
added mgetty use flag for mgetty & vgetty support, bug 89047
Package-Manager: portage-2.0.51.21
-rw-r--r--net-misc/hylafax/Manifest32
-rw-r--r--net-misc/hylafax/files/digest-hylafax-4.2.1-r11
-rw-r--r--net-misc/hylafax/hylafax-4.2.1-r1.ebuild125
3 files changed, 148 insertions, 10 deletions
diff --git a/net-misc/hylafax/Manifest b/net-misc/hylafax/Manifest
index 4b82a0e4de87..de6ee66745c8 100644
--- a/net-misc/hylafax/Manifest
+++ b/net-misc/hylafax/Manifest
@@ -1,21 +1,33 @@
-MD5 402a480a9294e00f496354683c5f5e76 ChangeLog 9751
-MD5 0df327db19a01eb5f2dae907a5d24aac hylafax-4.2.0-r2.ebuild 3351
-MD5 35a9dba0c9d5f833d141c673969093eb hylafax-4.2.1.ebuild 3151
-MD5 d82acf1bcf0f7f9e181d6a2821292f2e metadata.xml 435
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
MD5 d83f32c1c30e2a8804a0f5524ed411d2 hylafax-4.1.8-r4.ebuild 3189
MD5 5f241443de8ec4140795d14470026faa hylafax-4.2.0-r1.ebuild 3355
+MD5 d82acf1bcf0f7f9e181d6a2821292f2e metadata.xml 435
+MD5 0df327db19a01eb5f2dae907a5d24aac hylafax-4.2.0-r2.ebuild 3351
+MD5 402a480a9294e00f496354683c5f5e76 ChangeLog 9751
+MD5 35a9dba0c9d5f833d141c673969093eb hylafax-4.2.1.ebuild 3151
+MD5 16593d16345ea9f3ab95aba8eaccedbe hylafax-4.2.1-r1.ebuild 3541
MD5 46bbae3c77d5651a20e606eb6228c159 files/99hylafax 62
+MD5 fa83948864d83f34f54ce35f26b38ed6 files/99hylafax-4.2 75
MD5 eab749cee07de1984c9756e6eb886df0 files/configure-gcc-3.4.patch 696
-MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r2 66
-MD5 c4edcc178e6eeca8ec4680be0790e6da files/hylafax-4.2.0-fPIC.patch 1627
+MD5 5243f5e3321151d074643f652133fdfd files/digest-hylafax-4.1.8-r4 66
+MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r1 66
MD5 bc084d075b601d42fbd417b97a45f1b2 files/hylafax 3757
MD5 5f2f2e3fe04414f953d4010d32261318 files/hylafax-4.1.8-fPIC.patch 2086
MD5 ad3b0e7082e6e71ee6ba940ce1b6b071 files/hylafax-4.1.8-gcc-version.patch 520
-MD5 5243f5e3321151d074643f652133fdfd files/digest-hylafax-4.1.8-r4 66
-MD5 fa83948864d83f34f54ce35f26b38ed6 files/99hylafax-4.2 75
MD5 491e78765b433d7c11146120cf7e40f8 files/hylafax-4.2 3759
MD5 363ea0f56887928eb876bbe25223de85 files/hylafax-hostvuln.patch 2098
-MD5 e1c4b78af20d5e332db1aef29080caf7 files/digest-hylafax-4.2.1 66
MD5 cfcafeadd916b8a9103b9b9110887916 files/hylafax-4.2.0-faxcron_uid.patch 527
MD5 6fd09a3cd0a1657591fc6c5c076cd462 files/hylafax-4.2.0-tiff_version.patch 1011
-MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r1 66
+MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r2 66
+MD5 c4edcc178e6eeca8ec4680be0790e6da files/hylafax-4.2.0-fPIC.patch 1627
+MD5 e1c4b78af20d5e332db1aef29080caf7 files/digest-hylafax-4.2.1 66
+MD5 e1c4b78af20d5e332db1aef29080caf7 files/digest-hylafax-4.2.1-r1 66
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFCfBHw0K3RJaeXx6cRAr7PAKDW/fjvkFYdZstTk+NWpyNPp2tWUQCfalaS
+ZC2O0Db5F3GwGt/HgrPHj5o=
+=7B73
+-----END PGP SIGNATURE-----
diff --git a/net-misc/hylafax/files/digest-hylafax-4.2.1-r1 b/net-misc/hylafax/files/digest-hylafax-4.2.1-r1
new file mode 100644
index 000000000000..9a80e8b49781
--- /dev/null
+++ b/net-misc/hylafax/files/digest-hylafax-4.2.1-r1
@@ -0,0 +1 @@
+MD5 05430e41a279d0fff6d6e4b444440829 hylafax-4.2.1.tar.gz 1412035
diff --git a/net-misc/hylafax/hylafax-4.2.1-r1.ebuild b/net-misc/hylafax/hylafax-4.2.1-r1.ebuild
new file mode 100644
index 000000000000..9190cfe9fc7b
--- /dev/null
+++ b/net-misc/hylafax/hylafax-4.2.1-r1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/hylafax-4.2.1-r1.ebuild,v 1.1 2005/05/07 00:55:00 kingtaco Exp $
+
+inherit eutils
+
+IUSE="faxonly jpeg pam mgetty"
+
+DESCRIPTION="Client-server fax package for class 1 and 2 fax modems."
+HOMEPAGE="http://www.hylafax.org"
+SRC_URI="ftp://ftp.hylafax.org/source/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="hylafax"
+KEYWORDS="~x86 ~sparc ~hppa ~alpha ~amd64 ~ppc"
+
+DEPEND="!faxonly? ( net-dialup/mgetty )
+ >=sys-libs/zlib-1.1.4
+ virtual/ghostscript
+ >=media-libs/tiff-3.7.0
+ jpeg? ( media-libs/jpeg )
+ sys-apps/gawk
+ pam? ( sys-libs/pam )
+ mgetty? ( net-dialup/mgetty )"
+
+RDEPEND="${DEPEND}
+ net-mail/metamail"
+
+export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc"
+
+src_compile() {
+ if use faxonly; then
+ if use mgetty; then
+ eerror "You cannot set both faxonly and mgetty, please remove one." && die "invalid use flags"
+ fi
+ fi
+ local my_conf="
+ --with-DIR_BIN=/usr/bin
+ --with-DIR_SBIN=/usr/sbin
+ --with-DIR_LIB=/usr/lib
+ --with-DIR_LIBEXEC=/usr/sbin
+ --with-DIR_LIBDATA=/usr/lib/fax
+ --with-DIR_LOCKS=/var/lock
+ --with-DIR_MAN=/usr/share/man
+ --with-DIR_SPOOL=/var/spool/fax
+ --with-DIR_HTML=/usr/share/doc/${P}/html
+ --with-DIR_CGI=${WORKDIR}
+ --with-HTML=yes
+ --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax
+ --with-PATH_IMPRIP=\"\"
+ --with-SYSVINIT=no
+ --with-LIBTIFF=\"-ltiff -ljpeg -lz\"
+ --with-OPTIMIZER=\"${CFLAGS}\"
+ --with-DSO=auto"
+
+ if use mgetty; then
+ my_conf="${my_conf} \
+ --with-PATH_EGETTY=/usr/sbin/mgetty \
+ --with-PATH_VGETTY=/usr/sbin/vgetty"
+ else
+ my_conf="${my_conf} \
+ --with-PATH_EGETTY=/bin/false \
+ --with-PATH_VGETTY=/bin/false"
+ fi
+
+ if [ -h /etc/localtime ]; then
+ local continent=$(readlink /etc/localtime | cut -d / -f 5)
+ if [ "${continent}" == "Europe" ]; then
+ my_conf="${my_conf} --with-PAGESIZE=A4"
+ fi
+ fi
+
+ use faxonly && my_conf="${my_conf} --with-PATH_GETTY=/bin/false
+ --with-PATH_VGETTY=/bin/false"
+ #--enable-pam isn't valid
+ use pam || my_conf="${my_conf} $(use_enable pam)"
+
+ # eval required for quoting in ${my_conf} to work properly, better way?
+ eval ./configure --nointeractive ${my_conf} || die "./configure failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/{bin,sbin} /usr/lib/fax /usr/share/man /var/spool /var/spool/recvq
+ dodir /usr/share/doc/${P}/html
+
+ make \
+ BIN=${D}/usr/bin \
+ SBIN=${D}/usr/sbin \
+ LIBDIR=${D}/usr/lib \
+ LIB=${D}/usr/lib \
+ LIBEXEC=${D}/usr/sbin \
+ LIBDATA=${D}/usr/lib/fax \
+ MAN=${D}/usr/share/man \
+ SPOOL=${D}/var/spool/fax \
+ HTMLDIR=${D}/usr/share/doc/${P}/html \
+ install || die "make install failed"
+
+ keepdir /var/spool/fax/{archive,client,etc,pollq,recvq,tmp}
+ keepdir /var/spool/fax/{status,sendq,log,info,doneq,docq,dev}
+
+ einfo "Adding env.d entry for Hylafax"
+ insinto /etc/env.d
+ newins ${FILESDIR}/99hylafax-4.2 99hylafax
+
+ einfo "Adding init.d entry for Hylafax"
+ insinto /etc/init.d
+ insopts -m 755
+ newins ${FILESDIR}/hylafax-4.2 hylafax
+
+ dodoc COPYRIGHT README TODO VERSION
+}
+
+pkg_postinst() {
+ ewarn "New Hylafax tiff support requires at least tiff-3.7.0 now,"
+ ewarn "but hopefully this libtiff silliness is now fixed."
+ ewarn "If you have trouble building this brittle C++ code,"
+ ewarn "try disabling distcc and setting MAKEOPTS to -j1."
+ echo
+ einfo "Hylafax is back to depending on metamail for mime handling."
+ echo
+ einfo "Now run faxsetup and (if necessary) faxaddmodem."
+ echo
+} \ No newline at end of file