summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-06-23 01:57:30 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-06-23 01:57:30 +0000
commitc751cd301bd31f4a8ca12be17256ff5b84385d5e (patch)
treebd53cb70d41d6b96542108e210ab0417cf77bdca /net-misc/hylafax
parentRESTRICT=maketest -> RESTRICT=test (diff)
downloadhistorical-c751cd301bd31f4a8ca12be17256ff5b84385d5e.tar.gz
historical-c751cd301bd31f4a8ca12be17256ff5b84385d5e.tar.bz2
historical-c751cd301bd31f4a8ca12be17256ff5b84385d5e.zip
Made hylafax multilib-strict safe. Added patch for OpenPAM compatibility (fixed upstream). See bug #95143.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'net-misc/hylafax')
-rw-r--r--net-misc/hylafax/ChangeLog7
-rw-r--r--net-misc/hylafax/Manifest23
-rw-r--r--net-misc/hylafax/files/hylafax-4.2.1-openpam.patch40
-rw-r--r--net-misc/hylafax/hylafax-4.2.1-r1.ebuild25
4 files changed, 75 insertions, 20 deletions
diff --git a/net-misc/hylafax/ChangeLog b/net-misc/hylafax/ChangeLog
index e64cdeee7b2a..1f611e02198d 100644
--- a/net-misc/hylafax/ChangeLog
+++ b/net-misc/hylafax/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/hylafax
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/ChangeLog,v 1.48 2005/02/18 06:50:22 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/ChangeLog,v 1.49 2005/06/23 01:57:30 flameeyes Exp $
+
+ 23 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/hylafax-4.2.1-openpam.patch, hylafax-4.2.1-r1.ebuild:
+ Made hylafax multilib-strict safe. Added patch for OpenPAM compatibility
+ (fixed upstream). See bug #95143.
*hylafax-4.2.1 (17 Feb 2005)
diff --git a/net-misc/hylafax/Manifest b/net-misc/hylafax/Manifest
index de6ee66745c8..f87c87db78d2 100644
--- a/net-misc/hylafax/Manifest
+++ b/net-misc/hylafax/Manifest
@@ -1,33 +1,34 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+MD5 ac117598575e8a882550d12e3eb4d1bb ChangeLog 9981
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 c966d0a7f1237dd9b507fc767238342d hylafax-4.2.1-r1.ebuild 3733
MD5 35a9dba0c9d5f833d141c673969093eb hylafax-4.2.1.ebuild 3151
-MD5 16593d16345ea9f3ab95aba8eaccedbe hylafax-4.2.1-r1.ebuild 3541
+MD5 d82acf1bcf0f7f9e181d6a2821292f2e metadata.xml 435
MD5 46bbae3c77d5651a20e606eb6228c159 files/99hylafax 62
MD5 fa83948864d83f34f54ce35f26b38ed6 files/99hylafax-4.2 75
MD5 eab749cee07de1984c9756e6eb886df0 files/configure-gcc-3.4.patch 696
MD5 5243f5e3321151d074643f652133fdfd files/digest-hylafax-4.1.8-r4 66
MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r1 66
+MD5 61b6d16148a84723c2996b519a57d498 files/digest-hylafax-4.2.0-r2 66
+MD5 e1c4b78af20d5e332db1aef29080caf7 files/digest-hylafax-4.2.1 66
+MD5 e1c4b78af20d5e332db1aef29080caf7 files/digest-hylafax-4.2.1-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 491e78765b433d7c11146120cf7e40f8 files/hylafax-4.2 3759
-MD5 363ea0f56887928eb876bbe25223de85 files/hylafax-hostvuln.patch 2098
+MD5 c4edcc178e6eeca8ec4680be0790e6da files/hylafax-4.2.0-fPIC.patch 1627
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-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
+MD5 363ea0f56887928eb876bbe25223de85 files/hylafax-hostvuln.patch 2098
+MD5 0bf655709c9fc6c62ffc7d2a63340c90 files/hylafax-4.2.1-openpam.patch 1571
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCfBHw0K3RJaeXx6cRAr7PAKDW/fjvkFYdZstTk+NWpyNPp2tWUQCfalaS
-ZC2O0Db5F3GwGt/HgrPHj5o=
-=7B73
+iD8DBQFCuhcij5H05b2HAEkRArEPAJ96u1DD9ZS/R72FjdbkTmfo+Y064wCfcRdM
+eRIclQjy9b3A6FyotkVpsuY=
+=M0QG
-----END PGP SIGNATURE-----
diff --git a/net-misc/hylafax/files/hylafax-4.2.1-openpam.patch b/net-misc/hylafax/files/hylafax-4.2.1-openpam.patch
new file mode 100644
index 000000000000..51f211d0d761
--- /dev/null
+++ b/net-misc/hylafax/files/hylafax-4.2.1-openpam.patch
@@ -0,0 +1,40 @@
+diff -ur hylafax-4.2.1/configure hylafax-4.2.1-fbsd/configure
+--- hylafax-4.2.1/configure 2004-12-28 04:45:03 +0000
++++ hylafax-4.2.1-fbsd/configure 2005-06-05 14:45:14 +0000
+@@ -1578,11 +1578,9 @@
+ if [ "$DISABLE_PAM" != "yes" ]; then
+ Note "Checking for PAM (Pluggable Authentication Module) support"
+ CheckForLibrary pam_authenticate -lpam &&
+- CheckForLibrary misc_conv -lpam_misc -lpam &&
+- CheckForIncludeFile security/pam_appl.h &&
+- CheckForIncludeFile security/pam_misc.h && {
++ CheckForIncludeFile security/pam_appl.h && {
+ HAVE_PAM="#define HAVE_PAM 1"
+- PAMLIBS="-lpam -lpam_misc"
++ PAMLIBS="-lpam"
+ }
+ if [ "x$PAMLIBS" = "x" ]; then
+ Note "... not found. Disabling PAM support"
+diff -ur hylafax-4.2.1/hfaxd/HylaFAXServer.h hylafax-4.2.1-fbsd/hfaxd/HylaFAXServer.h
+--- hylafax-4.2.1/hfaxd/HylaFAXServer.h 2004-11-23 18:05:02 +0000
++++ hylafax-4.2.1-fbsd/hfaxd/HylaFAXServer.h 2005-06-05 14:45:35 +0000
+@@ -43,7 +43,6 @@
+ #ifdef HAVE_PAM
+ extern "C" {
+ #include <security/pam_appl.h>
+-#include <security/pam_misc.h>
+ #include <grp.h>
+ }
+ #endif // HAVE_PAM
+diff -ur hylafax-4.2.1/hfaxd/Login.c++ hylafax-4.2.1-fbsd/hfaxd/Login.c++
+--- hylafax-4.2.1/hfaxd/Login.c++ 2004-04-27 20:16:15 +0000
++++ hylafax-4.2.1-fbsd/hfaxd/Login.c++ 2005-06-05 15:15:01 +0000
+@@ -109,7 +109,7 @@
+ for (i=0; i<num_msg; i++) {
+ switch(msg[i]->msg_style) {
+ case PAM_PROMPT_ECHO_OFF:
+- replies[i].resp = x_strdup(password);
++ replies[i].resp = password ? strdup(password) : NULL;
+ replies[i].resp_retcode = 0;
+ retval = PAM_SUCCESS;
+ break;
diff --git a/net-misc/hylafax/hylafax-4.2.1-r1.ebuild b/net-misc/hylafax/hylafax-4.2.1-r1.ebuild
index 9190cfe9fc7b..f61a4d972b15 100644
--- a/net-misc/hylafax/hylafax-4.2.1-r1.ebuild
+++ b/net-misc/hylafax/hylafax-4.2.1-r1.ebuild
@@ -1,8 +1,8 @@
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafax/hylafax-4.2.1-r1.ebuild,v 1.2 2005/06/23 01:57:30 flameeyes Exp $
-inherit eutils
+inherit eutils multilib pam
IUSE="faxonly jpeg pam mgetty"
@@ -20,7 +20,7 @@ DEPEND="!faxonly? ( net-dialup/mgetty )
>=media-libs/tiff-3.7.0
jpeg? ( media-libs/jpeg )
sys-apps/gawk
- pam? ( sys-libs/pam )
+ pam? ( virtual/pam )
mgetty? ( net-dialup/mgetty )"
RDEPEND="${DEPEND}
@@ -28,6 +28,13 @@ RDEPEND="${DEPEND}
export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-openpam.patch
+}
+
src_compile() {
if use faxonly; then
if use mgetty; then
@@ -37,7 +44,7 @@ src_compile() {
local my_conf="
--with-DIR_BIN=/usr/bin
--with-DIR_SBIN=/usr/sbin
- --with-DIR_LIB=/usr/lib
+ --with-DIR_LIB=/usr/$(get_libdir)
--with-DIR_LIBEXEC=/usr/sbin
--with-DIR_LIBDATA=/usr/lib/fax
--with-DIR_LOCKS=/var/lock
@@ -83,13 +90,13 @@ src_compile() {
src_install() {
dodir /usr/{bin,sbin} /usr/lib/fax /usr/share/man /var/spool /var/spool/recvq
- dodir /usr/share/doc/${P}/html
+ dodir /usr/share/doc/${P}/html /usr/$(get_libdir)
make \
BIN=${D}/usr/bin \
SBIN=${D}/usr/sbin \
- LIBDIR=${D}/usr/lib \
- LIB=${D}/usr/lib \
+ LIBDIR=${D}/usr/$(get_libdir) \
+ LIB=${D}/usr/$(get_libdir) \
LIBEXEC=${D}/usr/sbin \
LIBDATA=${D}/usr/lib/fax \
MAN=${D}/usr/share/man \
@@ -109,6 +116,8 @@ src_install() {
insopts -m 755
newins ${FILESDIR}/hylafax-4.2 hylafax
+ pamd_mimic_system hylafax auth account session
+
dodoc COPYRIGHT README TODO VERSION
}
@@ -122,4 +131,4 @@ pkg_postinst() {
echo
einfo "Now run faxsetup and (if necessary) faxaddmodem."
echo
-} \ No newline at end of file
+}