summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2009-09-28 03:52:16 +0000
committerSteve Arnold <nerdboy@gentoo.org>2009-09-28 03:52:16 +0000
commitb910848472c5149e60cd1d2dedfd3b413582a6fe (patch)
tree0d24077e81d7957cb6c5a9870112b343b5ac63d4 /net-misc/hylafax
parentamd64 stable, bug #271865 (diff)
downloadhistorical-b910848472c5149e60cd1d2dedfd3b413582a6fe.tar.gz
historical-b910848472c5149e60cd1d2dedfd3b413582a6fe.tar.bz2
historical-b910848472c5149e60cd1d2dedfd3b413582a6fe.zip
Updated to newest upstream release (closes bug 267984).
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'net-misc/hylafax')
-rw-r--r--net-misc/hylafax/ChangeLog8
-rw-r--r--net-misc/hylafax/Manifest14
-rw-r--r--net-misc/hylafax/hylafax-6.0.3.ebuild191
3 files changed, 201 insertions, 12 deletions
diff --git a/net-misc/hylafax/ChangeLog b/net-misc/hylafax/ChangeLog
index 4465ee814bf7..3a59c95acd7e 100644
--- a/net-misc/hylafax/ChangeLog
+++ b/net-misc/hylafax/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/hylafax
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/ChangeLog,v 1.96 2009/08/29 18:22:54 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/ChangeLog,v 1.97 2009/09/28 03:52:16 nerdboy Exp $
+
+*hylafax-6.0.3 (28 Sep 2009)
+
+ 28 Sep 2009; Steve Arnold <nerdboy@gentoo.org> +hylafax-6.0.3.ebuild:
+ Updated to newest upstream release (closes bug 267984). The locale stuff
+ is new, so could use some testing...
29 Aug 2009; Petteri Räty <betelgeuse@gentoo.org>
hylafax-4.4.4-r2.ebuild:
diff --git a/net-misc/hylafax/Manifest b/net-misc/hylafax/Manifest
index 8eda6f1073ab..116c524a06a9 100644
--- a/net-misc/hylafax/Manifest
+++ b/net-misc/hylafax/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 99hylafax-4.2 75 RMD160 7556741a394736417cf3b9db352642b75996b54f SHA1 7544e149ac495b06be039869686c673d8ac8c0f1 SHA256 0cdc13f4db03ad4ca97be8d7671d49da947660ec071fc99786f68e440c3b0e84
AUX gentoo-gcc-version.patch 531 RMD160 26ba57b0df2e8bd9b5eaf77f7434da2563345c64 SHA1 0a9fd0254e3b0ed1c85deb2c7efb1ce06b040381 SHA256 7736dfc09d25b49530dac45a297fa7dcebdc445e95e5bcd24a2dd08816eaa79d
AUX hylafax-4.2 3759 RMD160 d8a10429e912eaace4af98ee306c14b3f59ca7b4 SHA1 b41d462b94851544ce2e52b751ab956003a4e06a SHA256 83f1ba9a169f24721a4115dda3f3924c14804a09be2ff284fa52caeee455d166
@@ -15,17 +12,12 @@ DIST hylafax-4.3.0.tar.gz 1468136 RMD160 29c62721e4895848b325f4f3a7b7e7782e275aa
DIST hylafax-4.3.1.tar.gz 1498444 RMD160 1a29d43a05793ec4185c96ca16698268ae3f7c9b SHA1 9b42872912f2b75949423b76ab5f1b5e2caef869 SHA256 b777c0d8f1f858f3c86f91f9ae4fde9246646ac9e753154b969cb7c3a49947ab
DIST hylafax-4.3.7.tar.gz 1469003 RMD160 ce86b6caf25c2d034bc9568f3350dfa34e737d7b SHA1 9a337b31f0aa12373e4150d601a8d6af7dd3bcc3 SHA256 4dd699aa90de45bdb2ac4e1c0b1666b9dc6bb8c234b1415a0c30e1beb52c82f9
DIST hylafax-4.4.4.tar.gz 1188551 RMD160 598258ad6cbca5344efb9f3fa0dcc29a43ae7c4b SHA1 6a866765e48c4c851b4fdc45c7145d0bf18b2143 SHA256 6c059a39efea9b5d8d24004dc4775ae114026813ea3b6ca4e377d4f29c8eb569
+DIST hylafax-6.0.3.tar.gz 1297582 RMD160 1b9efedf78f1eba6dd2baa8e596c94978e0c6841 SHA1 ae1e7bc1f687aa23f45bb987d34c8100e683b42e SHA256 ddfdefbdc41da9d5b36c909a59df73750a61fa7e8940746cf6a277d1318e1f12
EBUILD hylafax-4.2.5.ebuild 4361 RMD160 8c7816b0c36aa63782e1db7a1790c7c040fda07b SHA1 ff6acc70e5d9e70c8e61cc19b321713ddedf5fed SHA256 6f64604a12442b766e1857bbb53eb147e899c9a1ba761b50ac8015525ea9bc3b
EBUILD hylafax-4.3.0.ebuild 4573 RMD160 7300657d06a1b874860cae577062f164b9b0c8de SHA1 0f1faadcd3d8e32b4e023a7aeff3f4608e94cf79 SHA256 3e639746c5f298c58d916e5491e6f8b34aa53cba3fa5936aa54640495a9b1fe7
EBUILD hylafax-4.3.1.ebuild 5585 RMD160 a5d12196af350c6ced4bd8fd91c119510f7e38c9 SHA1 c5c6cfd068c546edcc5ac74deabf550d50fd993c SHA256 d0342510c0ab5099e958e2ea350cbbeaa02fbcd07028c13acf55df8e7ef66c23
EBUILD hylafax-4.3.7.ebuild 5575 RMD160 cca4bfb5ebcaf16f7cc0ecbaa8da0e08314a675d SHA1 ea0dec5c968b46e0cb04c40bd60040ebf87de110 SHA256 c592a0e84f66763ba59fd6ae39b531012fdc132a55b1cb93e6c73c8c8f0d9c8a
EBUILD hylafax-4.4.4-r2.ebuild 5168 RMD160 00197b1bd39ae5cdfa05dcfe12ffe39891a37109 SHA1 a3156d1e7a4bb2539f7c6c80b03d4fab7eee28ef SHA256 78f696145ebde22b200b43ddad31efcfe20204db1f582d84ef082afdfb3fd817
-MISC ChangeLog 19892 RMD160 9f6d734457888b03577f60e3c03304b962e494a5 SHA1 c45f1f7aaba8b30025221c11b211aabea6a6f332 SHA256 74658b4ded2b09aa38c7761d90ff31e6dcd9899cd37c529d3787507268f36ce9
+EBUILD hylafax-6.0.3.ebuild 5403 RMD160 ea1678667c55c6ae1455afc1f98c8b7f6b5ba285 SHA1 fcd41fef1545ad2646cea883b4c20804d4504c18 SHA256 de67c0dbf92f2720c9d96f3c5fb44b3996513e8fde7d399db79abdcaed3ed53d
+MISC ChangeLog 20107 RMD160 ae367d7e7ee33f863a6799a74e92b82d364f89e6 SHA1 9e4716a5a60d075a07bec76ee5f7ff1f7a562a07 SHA256 8d98caf6a28344686b4d29b8419465345b8991d403743b7477f9b8a7a8028a09
MISC metadata.xml 891 RMD160 41e3283571a1e5c8e5d1f1b70775112518e26919 SHA1 86f8807fce2cd0778417ee94f60d5cbae0b1d6b6 SHA256 31d4e6822bcf14a6664834df99d98a88f382b5fb3eddfd2995a2e06ba79f23a8
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
-
-iEYEARECAAYFAkqZccsACgkQcxLzpIGCsLTRaQCgmrhvzeKJANc2EjRuxJ1pZzgG
-orMAn0yjLb5uS4sFGWaMrOos1SoDZI5O
-=6IhH
------END PGP SIGNATURE-----
diff --git a/net-misc/hylafax/hylafax-6.0.3.ebuild b/net-misc/hylafax/hylafax-6.0.3.ebuild
new file mode 100644
index 000000000000..44ac788571b3
--- /dev/null
+++ b/net-misc/hylafax/hylafax-6.0.3.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/hylafax-6.0.3.ebuild,v 1.1 2009/09/28 03:52:16 nerdboy Exp $
+
+EAPI="2"
+
+inherit eutils multilib pam toolchain-funcs
+
+DESCRIPTION="Enterprise 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="~amd64 ~hppa ~ppc ~sparc ~x86"
+
+IUSE="jbig pam mgetty html"
+
+DEPEND=">=sys-libs/zlib-1.1.4
+ virtual/ghostscript
+ >=media-libs/tiff-3.9.1[jbig?]
+ media-libs/jpeg
+ jbig? ( media-libs/jbigkit )
+ sys-apps/gawk
+ pam? ( virtual/pam )
+ mgetty? ( net-dialup/mgetty[-fax] )"
+
+RDEPEND="${DEPEND}
+ net-mail/metamail
+ !net-dialup/sendpage"
+
+export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc /usr/lib/fax"
+
+src_prepare() {
+ # force it not to strip binaries
+ for dir in etc util faxalter faxcover faxd faxmail faxrm faxstat \
+ hfaxd sendfax sendpage ; do
+ sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \
+ "${dir}"/Makefile.in || die "sed failed"
+ done
+
+ sed -i -e "s|-fpic|-fPIC|g" \
+ configure || die
+
+ # new locale stuff lacks DESTDIR
+ sed -i -e "s|\${LOCALEDIR}|\${DESTDIR}\${LOCALEDIR}|g" \
+ po/nls.mk || die
+}
+
+src_configure() {
+ # update TIFF check to allow 3.9.x
+ sed -i \
+ -e "s|5678|56789|" \
+ -e "s|3.8.|3.9.|" \
+ configure || die
+
+ local my_conf="
+ --with-DIR_BIN=/usr/bin
+ --with-DIR_SBIN=/usr/sbin
+ --with-DIR_LIB=/usr/$(get_libdir)
+ --with-DIR_LIBEXEC=/usr/sbin
+ --with-DIR_LIBDATA=/usr/$(get_libdir)/fax
+ --with-DIR_LOCALE=/usr/share/locale
+ --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-PATH_DPSRIP=/var/spool/fax/bin/ps2fax
+ --with-PATH_IMPRIP=\"\"
+ --with-SYSVINIT=no
+ --with-REGEX=yes
+ --with-LIBTIFF=\"-ltiff -ljpeg -lz\"
+ --with-OPTIMIZER=\"${CFLAGS}\"
+ --with-DSO=auto"
+
+ if use html; then
+ my_conf="${my_conf} --with-HTML=yes"
+ else
+ my_conf="${my_conf} --with-HTML=no"
+ fi
+
+ if use mgetty; then
+ my_conf="${my_conf} \
+ --with-PATH_GETTY=/sbin/mgetty \
+ --with-PATH_EGETTY=/sbin/mgetty \
+ --with-PATH_VGETTY=/usr/sbin/vgetty"
+ else
+ # GETTY defaults to /sbin/agetty
+ 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
+
+ #--enable-pam isn't valid
+ use pam || my_conf="${my_conf} $(use_enable pam)"
+
+ myconf="CC=$(tc-getCC) CXX=$(tc-getCXX) ${my_conf}"
+
+ # eval required for quoting in ${my_conf} to work properly, better way?
+ eval ./configure --nointeractive ${my_conf} || die "./configure failed"
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/{bin,sbin} /usr/$(get_libdir)/fax /usr/share/man
+ dodir /var/spool /var/spool/recvq
+ fowners uucp:uucp /var/spool/fax
+ fperms 0600 /var/spool/fax
+ dodir /usr/share/doc/${P}/html
+
+ emake \
+ BIN=${D}/usr/bin \
+ SBIN=${D}/usr/sbin \
+ LIBDIR=${D}/usr/$(get_libdir) \
+ LIB=${D}/usr/$(get_libdir) \
+ LIBEXEC=${D}/usr/sbin \
+ LIBDATA=${D}/usr/$(get_libdir)/fax \
+ DIR_LOCALE=${D}/usr/share/locale \
+ MAN=${D}/usr/share/man \
+ SPOOL=${D}/var/spool/fax \
+ HTMLDIR=${D}/usr/share/doc/${P}/html \
+ install DESTDIR="${D}" || 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}
+
+ dosed "s:hostname:hostname -f:g" /var/spool/fax/bin/{faxrcvd,pollrcvd} \
+ || die "dosed hostname failed"
+
+ generate_files # in this case, it only generates the env.d entry
+
+ einfo "Adding env.d entry for Hylafax"
+ doenvd 99${P}
+
+ einfo "Adding init.d and conf.d entries for Hylafax"
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ use pam && pamd_mimic_system hylafax auth account session
+
+ dodoc CONTRIBUTORS README TODO
+}
+
+pkg_postinst() {
+ elog
+ elog "The faxonly USE flag has been removed; since Hylafax does not"
+ elog "require mgetty, and certain fax files conflict, you must build"
+ elog "mgetty without fax support if you wish to use them both. You"
+ elog "may want to add both to package.use so any future updates are"
+ elog "correctly built:"
+ elog
+ elog " net-dialup/mgetty -fax"
+ elog " net-misc/hylafax [-mgetty|mgetty]"
+ elog
+ elog "There are additional files included in the hylafax/files dir."
+ elog
+ elog "Note 1: hylafax.cron is provided for vixie-cron users and"
+ elog "should be placed in /etc/cron.d. Use as-is or adapt it to"
+ elog "your system config."
+ elog
+ elog "Note 2: if you need to use hylafax with iptables, then you"
+ elog "need to specify the port and use ip_conntrack_ftp as shown"
+ elog "in the included example modules file."
+ elog
+ elog "If you have clients that still use the old protocol (not the"
+ elog "common FTP style protocol), they will no longer work with the"
+ elog "new hfaxd daemon."
+ elog
+ elog "See the docs and man pages for detailed configuration info."
+ elog
+ elog "Now run faxsetup and (if necessary) faxaddmodem."
+ elog
+}
+
+generate_files() {
+ cat <<-EOF > 99${P}
+ PATH="/var/spool/fax/bin"
+ CONFIG_PROTECT="/var/spool/fax/etc /usr/$(get_libdir)/fax"
+ EOF
+}