diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-21 11:58:17 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-21 11:58:17 +0000 |
commit | 41e972092f9a838440842338ec5795e8d6b5c381 (patch) | |
tree | dbdaf234cb1e96aaf0e7702309e17407a56ce332 /sys-libs | |
parent | Update local useflags for dev-libs/pam_pkcs11 -> sys-auth/pam_pkcs11. (diff) | |
download | historical-41e972092f9a838440842338ec5795e8d6b5c381.tar.gz historical-41e972092f9a838440842338ec5795e8d6b5c381.tar.bz2 historical-41e972092f9a838440842338ec5795e8d6b5c381.zip |
Drop old versions.
Package-Manager: portage-2.1_pre7-r5
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/pam/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/pam/Manifest | 39 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.77-r6 | 3 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.77-r8 | 3 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.78-r2 | 4 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.78-r4 | 4 | ||||
-rw-r--r-- | sys-libs/pam/files/pam-0.77-console-reset.patch | 54 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.77-r6.ebuild | 306 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.77-r8.ebuild | 310 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.78-r2.ebuild | 387 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.78-r4.ebuild | 391 |
11 files changed, 12 insertions, 1496 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog index b3776fe758f5..509ce09a018b 100644 --- a/sys-libs/pam/ChangeLog +++ b/sys-libs/pam/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/pam # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.100 2006/04/21 11:31:11 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.101 2006/04/21 11:58:16 flameeyes Exp $ + + 21 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + -files/pam-0.77-console-reset.patch, -pam-0.77-r6.ebuild, + -pam-0.77-r8.ebuild, -pam-0.78-r2.ebuild, -pam-0.78-r4.ebuild: + Drop old versions. 21 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> pam-0.99.3.0.ebuild: Tweak dependencies a bit. diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest index a70ad84783c2..343b1d89f6ce 100644 --- a/sys-libs/pam/Manifest +++ b/sys-libs/pam/Manifest @@ -1,39 +1,24 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 2ee19fd3f56e25269180914ac356d349 ChangeLog 16261 -RMD160 a673dcc905f0a5877454e8bafcd5b5d7f709769e ChangeLog 16261 -SHA256 5aaf1fb186c8a7c9e7e7237d397135fb4c13119dfcf8502c4bcb04552b29b235 ChangeLog 16261 +MD5 c2edce38c3807c2f33d85c40632cb1bc ChangeLog 16461 +RMD160 07419381d7d988012ac65163b99b0b7492ca3875 ChangeLog 16461 +SHA256 8da14f4fb7d2cc27755ed2e0d096b858b835d192f6947c18a73ebb3bda914754 ChangeLog 16461 MD5 a5056601bdd10441f5690eb1754c68ec files/Linux-PAM-0.99.3.0-prelude.patch 760 RMD160 e2e1815f1d2d1cabbc75f4669e66e1ba6414cc10 files/Linux-PAM-0.99.3.0-prelude.patch 760 SHA256 161408eba223e4c675bf4599c931303541fc530f872f767bd9d134f3bace5b71 files/Linux-PAM-0.99.3.0-prelude.patch 760 MD5 73f196808b2658496c9a9bd525ca30da files/README.pam_console 2615 RMD160 cd7aa80df00d08ede7692ec2f04c7b4844080053 files/README.pam_console 2615 SHA256 a52823c008565e1c9c8bc6f3751182665dd240671ad194aa6e866d2c8d0af59c files/README.pam_console 2615 -MD5 b38aa656e6c205427dd4c4ba7d6d3f97 files/digest-pam-0.77-r6 201 -RMD160 d857665460cebd7469268b50884f4d09d86056b8 files/digest-pam-0.77-r6 201 -SHA256 3a007c94d71996a9efbc30afcc3f41fc5047ab833d79a0398293223a7c1227f9 files/digest-pam-0.77-r6 201 -MD5 693d0527279f95e01ad9a5ba6ef45389 files/digest-pam-0.77-r8 201 -RMD160 a87bc54c8e3964ccfe73bcf7bb74dbc1409bea75 files/digest-pam-0.77-r8 201 -SHA256 ccffc6066b90f1d747b02ad3d658809fbadb5f78eff3a43d0d138cd78ec79026 files/digest-pam-0.77-r8 201 -MD5 f6222db3bcd34dad4edfcdcd8e488920 files/digest-pam-0.78-r2 264 -RMD160 4aec33829bdfcf6e7709d596d72b420f42a51eaf files/digest-pam-0.78-r2 264 -SHA256 0439d1c06e73ec431ff5c3db5c4bc4b9d7ff3cdd0f8de34153b150752de15679 files/digest-pam-0.78-r2 264 MD5 9ac651407da8dec3264c075cc3bb6717 files/digest-pam-0.78-r3 264 RMD160 d7b94e4e305149efd0884a391f899245aab0e2fa files/digest-pam-0.78-r3 264 SHA256 518dc8f48f4411fdd1bfe37b7b75dcc8bbd3e34dcdb8f8866f6f8d0ee81a6c4e files/digest-pam-0.78-r3 264 -MD5 9ac651407da8dec3264c075cc3bb6717 files/digest-pam-0.78-r4 264 -RMD160 d7b94e4e305149efd0884a391f899245aab0e2fa files/digest-pam-0.78-r4 264 -SHA256 518dc8f48f4411fdd1bfe37b7b75dcc8bbd3e34dcdb8f8866f6f8d0ee81a6c4e files/digest-pam-0.78-r4 264 MD5 62a0abc2cadbed30c294d6138e9580d3 files/digest-pam-0.78-r5 976 RMD160 51b00ba98d54859cde7a1a37e4a786014c67e979 files/digest-pam-0.78-r5 976 SHA256 1afc2f64a13c8dd8aa8b23db87ed5441c6961b44e13e48d91be1468957baba5c files/digest-pam-0.78-r5 976 MD5 2ec8f1207e14c55949bf8e5a8b226b22 files/digest-pam-0.99.3.0 259 RMD160 850f52c6ebb0167642586a181070fcf1a78a315c files/digest-pam-0.99.3.0 259 SHA256 200428e4f49e48109a12b420b0f0a6eb6b3b50c014d85f96c9577f6dff4175d0 files/digest-pam-0.99.3.0 259 -MD5 69f8cfad7f241eb669085eaa753cd9dd files/pam-0.77-console-reset.patch 1826 -RMD160 60f727fda6e17ec1b0cfebf9759586605af4de28 files/pam-0.77-console-reset.patch 1826 -SHA256 d0afffc9af74838c86853c5f5f862a413c4be487cf090dad2c3f6b034a34b524 files/pam-0.77-console-reset.patch 1826 MD5 95b7f27f454b393fd12cdae6d9806866 files/pam-0.78-inttypes.patch 5644 RMD160 02135ec459b34f34a81545c1c841fe1841d8a2a8 files/pam-0.78-inttypes.patch 5644 SHA256 d5b44b15529de83e438833e9be474703392afca186f6054cb646579da1c296d6 files/pam-0.78-inttypes.patch 5644 @@ -52,21 +37,9 @@ SHA256 46bdb0964db187cafbb7e68bd006c5f81835a053539fd49e480918d570c362da files/pa MD5 393d06cf4b76671f8e6ce72ac71bdad8 metadata.xml 218 RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c metadata.xml 218 SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c metadata.xml 218 -MD5 45e4ffa616491f670f6b43f7482889e7 pam-0.77-r6.ebuild 8080 -RMD160 89e6d55e645df20ba96b8ef91a418435fbb4e053 pam-0.77-r6.ebuild 8080 -SHA256 6c235586f6cd7f1fae8f495819da47b69b8c81906b6d051e8e2067e9c00851fa pam-0.77-r6.ebuild 8080 -MD5 a12e7f860965fe8642486460693e8aa2 pam-0.77-r8.ebuild 8152 -RMD160 58c56d6e5f2e74cc6933548cd5c1758e5101097a pam-0.77-r8.ebuild 8152 -SHA256 84147e6ba3cdb6f795bffcf4517af72e7d6ec9ffbd60c019b28338d957347bf2 pam-0.77-r8.ebuild 8152 -MD5 71f87e5903b032bb13cdca94d73bc2ce pam-0.78-r2.ebuild 11223 -RMD160 69a9ce418f263112855a26dc938e8b8630a7c6c3 pam-0.78-r2.ebuild 11223 -SHA256 3f5667dd1fa933e632196e60be41bed6b1188cf4915e9bf0793d3b290f798f6c pam-0.78-r2.ebuild 11223 MD5 d64258776c7ee92d3501165d49682f97 pam-0.78-r3.ebuild 11332 RMD160 45368e12519671b491fff25f142e7e3b796bdd5d pam-0.78-r3.ebuild 11332 SHA256 f7dd0f0497ae6fc8736302645d5ff7d122b92e49cc706c49e376f527191d8a62 pam-0.78-r3.ebuild 11332 -MD5 d87b7eaff034d70c4e9870300d23beea pam-0.78-r4.ebuild 11389 -RMD160 7e50f7ef88f27c736458fc70b25afb553855366a pam-0.78-r4.ebuild 11389 -SHA256 cc6b2bb9c7fc6cf58e83ff7cce1d41cfe8333ccd8df27ab7d99c85392ff628be pam-0.78-r4.ebuild 11389 MD5 1fb6b2c2713d79064139e3fcd9434fb2 pam-0.78-r5.ebuild 11464 RMD160 47e23bc9fc5b0086264e3bb7fe999a0f1f9de0fc pam-0.78-r5.ebuild 11464 SHA256 82048e5858bcf2b6ed9d34906f1da619d41ead0c08a0bdb021805ad18601ec6a pam-0.78-r5.ebuild 11464 @@ -76,7 +49,7 @@ SHA256 d33b23ef5a5707cc73bf3d8da85869fc25bcef4dab774732d063fd17cf84406a pam-0.99 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFESMHNAiZjviIA2XgRAnJTAJ9ylCtbZeh1Mu2b0kArfqjIEx1g2ACfUebx -+Lf0aX2kIOkPTQuMM8RQJ2g= -=+XwE +iD8DBQFESMgmAiZjviIA2XgRAlLJAKCuC7DNXt9yoc5E/KYYWC1KHAihWACg9FK3 +SNrTyfZXal8G37lmRF9gHcw= +=Jt7S -----END PGP SIGNATURE----- diff --git a/sys-libs/pam/files/digest-pam-0.77-r6 b/sys-libs/pam/files/digest-pam-0.77-r6 deleted file mode 100644 index ad777f5643c8..000000000000 --- a/sys-libs/pam/files/digest-pam-0.77-r6 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 be5a470e553ba71c20e9bbc7665f3754 Linux-PAM-0.77.tar.gz 442569 -MD5 f626acfce1f602df0f592b716c0e12f9 pam-0.77-patches-1.7.tar.bz2 115022 -MD5 df71961002b552c0e72c6e4e358f27e1 db-4.1.25.tar.gz 3080234 diff --git a/sys-libs/pam/files/digest-pam-0.77-r8 b/sys-libs/pam/files/digest-pam-0.77-r8 deleted file mode 100644 index 222ac5b0c5c9..000000000000 --- a/sys-libs/pam/files/digest-pam-0.77-r8 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 be5a470e553ba71c20e9bbc7665f3754 Linux-PAM-0.77.tar.gz 442569 -MD5 5e9a2cb5730dfe5ded7fd20b49af2f07 pam-0.77-patches-1.9.tar.bz2 115014 -MD5 df71961002b552c0e72c6e4e358f27e1 db-4.1.25.tar.gz 3080234 diff --git a/sys-libs/pam/files/digest-pam-0.78-r2 b/sys-libs/pam/files/digest-pam-0.78-r2 deleted file mode 100644 index 04e882013f62..000000000000 --- a/sys-libs/pam/files/digest-pam-0.78-r2 +++ /dev/null @@ -1,4 +0,0 @@ -MD5 58cd055892e97648651d5a318888f3a0 Linux-PAM-0.78.tar.gz 488936 -MD5 ee1a1ab60f9868ea2e0bddf8492df009 pam-0.78-patches-1.2.tar.bz2 86593 -MD5 fcc481d52c3b80e20a328f8c0cb042bd db-4.3.27.tar.gz 5921872 -MD5 777d2e34a60edad28319207b576cda91 glib-2.6.5.tar.bz2 2357089 diff --git a/sys-libs/pam/files/digest-pam-0.78-r4 b/sys-libs/pam/files/digest-pam-0.78-r4 deleted file mode 100644 index be3a66827628..000000000000 --- a/sys-libs/pam/files/digest-pam-0.78-r4 +++ /dev/null @@ -1,4 +0,0 @@ -MD5 58cd055892e97648651d5a318888f3a0 Linux-PAM-0.78.tar.gz 488936 -MD5 fcc481d52c3b80e20a328f8c0cb042bd db-4.3.27.tar.gz 5921872 -MD5 777d2e34a60edad28319207b576cda91 glib-2.6.5.tar.bz2 2357089 -MD5 c7b9d6d52902ead5f4c10c277e441f30 pam-0.78-patches-1.3.tar.bz2 87223 diff --git a/sys-libs/pam/files/pam-0.77-console-reset.patch b/sys-libs/pam/files/pam-0.77-console-reset.patch deleted file mode 100644 index ff45659366bd..000000000000 --- a/sys-libs/pam/files/pam-0.77-console-reset.patch +++ /dev/null @@ -1,54 +0,0 @@ ---- Linux-PAM-0.77/modules/pam_console/pam_console_apply.c.console-reset 2003-07-08 05:16:28.000000000 +0200 -+++ Linux-PAM-0.77/modules/pam_console/pam_console_apply.c 2003-07-10 22:50:26.000000000 +0200 -@@ -41,8 +41,9 @@ - va_list args; - if (debug_p && !debug) return; - va_start(args, format); -- fprintf(stderr, format, args); -+ vfprintf(stderr, format, args); - va_end(args); -+ fprintf(stderr, "\n"); - } - - int ---- Linux-PAM-0.77/modules/pam_console/config.y.az 2004-10-31 14:39:41.519539120 +0200 -+++ Linux-PAM-0.77/modules/pam_console/config.y 2004-10-31 14:42:44.110781032 +0200 -@@ -425,6 +425,8 @@ - reset_permissions(pam_handle_t *pamh, const char *consolename, int nonroot_ok) { - struct passwd *pwd; - struct group *grp; -+ uid_t pw_uid; -+ gid_t gr_gid; - config *c; - GSList *cl; - -@@ -439,20 +441,24 @@ - if (pwd == NULL) { - _pam_log(LOG_ERR, FALSE, "getpwnam failed for %s", - c->revert_owner ? c->revert_owner : "root"); -- return -1; -+ pw_uid = 0; -+ } else { -+ pw_uid = pwd->pw_uid; - } - grp = _pammodutil_getgrnam(pamh, c->revert_group ? c->revert_group : "root"); - if (grp == NULL) { - _pam_log(LOG_ERR, FALSE, "getgrnam failed for %s", - c->revert_group ? c->revert_group : "root"); -- return -1; -- } -+ gr_gid = 0; -+ } else { -+ gr_gid = pwd->pw_uid; -+ } - if (c->device_class->list) - chmod_files(c->revert_mode ? c->revert_mode : "0600", -- pwd->pw_uid, grp->gr_gid, NULL, c->device_class->list); -+ pw_uid, gr_gid, NULL, c->device_class->list); - else - chmod_files(c->revert_mode ? c->revert_mode : "0600", -- pwd->pw_uid, grp->gr_gid, c->device_class->name, NULL); -+ pw_uid, gr_gid, c->device_class->name, NULL); - } - } - return 0; diff --git a/sys-libs/pam/pam-0.77-r6.ebuild b/sys-libs/pam/pam-0.77-r6.ebuild deleted file mode 100644 index 738ccdf1bd25..000000000000 --- a/sys-libs/pam/pam-0.77-r6.ebuild +++ /dev/null @@ -1,306 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.77-r6.ebuild,v 1.6 2005/06/30 10:29:47 flameeyes Exp $ - -PATCH_LEVEL="1.7" -BDB_VER="4.1.25" -PAM_REDHAT_VER="0.77-4" - -RDEPEND=">=sys-libs/cracklib-2.7-r8 - selinux? ( sys-libs/libselinux ) - berkdb? ( >=sys-libs/db-${BDB_VER} )" - -DEPEND="$RDEPEND - dev-lang/perl - =dev-libs/glib-1.2* - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5 - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Have python sandbox issues currently ... -# doc? ( app-text/sgmltools-lite ) - -# BDB is internalized to get a non-threaded lib for pam_userdb.so to -# be built with. The runtime-only dependency on BDB suggests the user -# will use the system-installed db_load to create pam_userdb databases. -# PWDB is internalized because it is specifically designed to work -# with Linux-PAM. I'm not really certain how pervasive the Radius -# and NIS services of PWDB are at this point. -# -# With all the arch's we support, I rather use external pwdb, and then -# link statically to it - <azarah@gentoo.org> (09 Nov 2003). - -#inherit needs to be after DEPEND definition to protect RDEPEND -inherit toolchain-funcs eutils flag-o-matic gnuconfig - -# Note that we link to static versions of glib (pam_console.so) -# and pwdb (pam_pwdb.so) ... - -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" -DESCRIPTION="Pluggable Authentication Modules" - -S="${WORKDIR}/Linux-PAM-${PV}" -S2="${WORKDIR}/pam-${PV}-patches" -SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz - mirror://gentoo/pam-${PV}-patches-${PATCH_LEVEL}.tar.bz2 - berkdb? ( http://www.sleepycat.com/update/snapshot/db-${BDB_VER}.tar.gz )" - -LICENSE="PAM" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="berkdb pwdb selinux" - -apply_pam_patches() { - local x= - local patch= - - for x in redhat gentoo - do - cat ${S2}/list.${x}-patches | grep -v '^#' | grep -v '^$' | while read X - do - patch="$(echo $X | sed -e 's|^Patch.*: \(.*\)|\1|')" - epatch ${S2}/${x}-patches/${patch} || die "Failed to apply ${patch}!" - done - done -} - -pkg_setup() { - local x= - - if use pwdb; then - for x in libpwdb.a libcrack.a; do - if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - fi - done - fi - - return 0 -} - -src_unpack() { - unpack ${A} || die "Couldn't unpack ${A}" - - cd ${S} || die - tar -zxf ${S2}/pam-redhat-${PAM_REDHAT_VER}.tar.gz \ - || die "Couldn't unpack pam-redhat-${PAM_REDHAT_VER}.tar.gz" - - apply_pam_patches - - use selinux && epatch ${S2}/gentoo-patches/pam-selinux.patch - - for readme in modules/pam_*/README ; do - cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ - sed -e 's|^modules/||') - done - - # Fix building of sys-libs/pam for no-symlink amd64 profiles - # BUG #96385 - sed -i \ - -e "s|^\(MODULE_SIMPLE_EXTRALIBS=.*\/usr\/\)lib\/|\1$(get_libdir)\/|" \ - ${S}/modules/pam_cracklib/Makefile || die sed failed - - cp /usr/share/automake/install-sh . || die - export WANT_AUTOCONF=2.5 - autoconf || die -} - -src_compile() { - export CFLAGS="${CFLAGS} -fPIC" - - if use berkdb - then - einfo "Building Berkley DB ${BDB_VER}..." - cd ${WORKDIR} - cd db-${BDB_VER}/dist || die - - # Pam uses berkdb, which db-4.1.x series can't detect mips64, so we fix it - if use mips; then - einfo "Updating berkdb config.{guess,sub} for mips" - local OLDS="${S}" - S="${WORKDIR}/db-${BDB_VER}/dist" - gnuconfig_update - S="${OLDS}" - fi - - echo db_cv_mutex=UNIX/fcntl > config.cache - ./s_config - ./configure \ - --cache-file=config.cache \ - --disable-compat185 \ - --disable-cxx \ - --disable-diagnostic \ - --disable-dump185 \ - --disable-java \ - --disable-rpc \ - --disable-tcl \ - --disable-shared \ - --with-pic \ - --with-uniquename=_pam \ - --prefix=${S} \ - --includedir=${S}/include \ - --libdir=${S}/lib || die "Bad BDB ./configure" - - # XXX hack out O_DIRECT support in db4 for now. - perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' \ - db_config.h - - make || die "BDB build failed" - make install || die - - export CPPFLAGS="-I${S}/include" - export LDFLAGS="-L${S}/lib" - export LIBNAME="lib" - fi - - if [ "${ARCH}" = "alpha" ] - then - if [ ! -z "$(strings -a /usr/lib/libglib.a | grep -i 'Compaq Computer Corp.')" ] - then - # should be LDFLAGS, but this configure is screwy. - echo - einfo "It looks like you compiled glib with ccc, this is okay, but" - einfo "I'll need to force gcc to link with libots...." - echo - append-flags -lots - sed -i -e 's/$(CC) -o/$(CC) -lots -o/g' ${S}/modules/pam_pwdb/Makefile - fi - fi - - einfo "Building Linux-PAM ${PV}..." - cd ${S} - ./configure \ - --libdir=/$(get_libdir) \ - --enable-static-libpam \ - --enable-fakeroot=${D} \ - --enable-isadir=/$(get_libdir)/security \ - --host=${CHOST} || die - - # Python stuff in docs gives sandbox problems - sed -i -e 's|modules doc examples|modules|' Makefile - - # Fix warnings for gcc-2.95.3 - if [ "$(gcc-version)" = "2.95" ] - then - sed -i -e "s:-Wpointer-arith::" Make.Rules - fi - - if ! use berkdb - then - # Do not build pam_userdb.so ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - -e "s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - -e "s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" \ - _pam_aconf.h - - else - # Do not link pam_userdb.so to db-1.85 ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" _pam_aconf.h - fi - - make || die "PAM build failed" -} - -src_install() { - local x= - - einfo "Installing Linux-PAM ${PV}..." - make FAKEROOT=${D} \ - LDCONFIG="" \ - install || die - - # Make sure every module built. - # Do not remove this, as some module can fail to build - # and effectively lock the user out of his system. - einfo "Checking if all modules were built..." - for x in ${S}/modules/pam_* - do - if [ -d ${x} ] - then - # Its OK if the module failed when we didnt ask for it anyway - if ! ls -1 ${D}/$(get_libdir)/security/$(basename ${x})*.so &> /dev/null - then - if ! use berkdb && [ "$(basename ${x})" = "pam_userdb" ] - then - continue - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_pwdb" ] - then - continue - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_radius" ] - then - continue - fi - eerror "ERROR: $(basename ${x}) module did not build." - exit 1 - else - # Remove the ones we didnt want if it ended up building ok anyways - if ! use berkdb && [ "$(basename ${x})" = "pam_userdb" ] - then - rm -f ${D}/$(get_libdir)/security/pam_userdb* - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_pwdb" ] - then - rm -f ${D}/$(get_libdir)/security/pam_pwdb* - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_radius" ] - then - rm -f ${D}/$(get_libdir)/security/pam_radius* - fi - fi - fi - done - - dodir /usr/$(get_libdir) - cd ${D}/$(get_libdir) - for x in pam pamc pam_misc - do - rm lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so.0 - mv lib${x}.a ${D}/usr/$(get_libdir) - # See bug #4411 - gen_usr_ldscript lib${x}.so - done - - cd ${S} - doman doc/man/*.[0-9] - - dodoc CHANGELOG Copyright README - docinto modules ; dodoc modules/README ; dodoc doc/txts/README.* - docinto txt ; dodoc doc/specs/*.txt #doc/txts/*.txt -# docinto print ; dodoc doc/ps/*.ps - -# docinto html -# dohtml -r doc/html/ - - # need this for pam_console - keepdir /var/run/console - - insinto /etc/pam.d - for x in ${FILESDIR}/pam.d/* - do - if [ -f ${x} ] - then - doins ${x} - fi - done - - insinto /etc/security - doins ${FILESDIR}/pam_env.conf -} diff --git a/sys-libs/pam/pam-0.77-r8.ebuild b/sys-libs/pam/pam-0.77-r8.ebuild deleted file mode 100644 index e70a12181d34..000000000000 --- a/sys-libs/pam/pam-0.77-r8.ebuild +++ /dev/null @@ -1,310 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.77-r8.ebuild,v 1.7 2005/07/28 14:46:40 seemant Exp $ - -PATCH_LEVEL="1.9" -BDB_VER="4.1.25" -PAM_REDHAT_VER="0.77-4" - -RDEPEND=">=sys-libs/cracklib-2.7-r8 - selinux? ( sys-libs/libselinux ) - berkdb? ( >=sys-libs/db-${BDB_VER} )" - -DEPEND="${RDEPEND} - dev-lang/perl - =dev-libs/glib-1.2* - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5 - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Have python sandbox issues currently ... -# doc? ( app-text/sgmltools-lite ) - -# BDB is internalized to get a non-threaded lib for pam_userdb.so to -# be built with. The runtime-only dependency on BDB suggests the user -# will use the system-installed db_load to create pam_userdb databases. -# PWDB is internalized because it is specifically designed to work -# with Linux-PAM. I'm not really certain how pervasive the Radius -# and NIS services of PWDB are at this point. -# -# With all the arch's we support, I rather use external pwdb, and then -# link statically to it - <azarah@gentoo.org> (09 Nov 2003). - -#inherit needs to be after DEPEND definition to protect RDEPEND -inherit toolchain-funcs eutils flag-o-matic gnuconfig - -# Note that we link to static versions of glib (pam_console.so) -# and pwdb (pam_pwdb.so) ... - -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" -DESCRIPTION="Pluggable Authentication Modules" - -S="${WORKDIR}/Linux-PAM-${PV}" -S2="${WORKDIR}/pam-${PV}-patches" -SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz - mirror://gentoo/pam-${PV}-patches-${PATCH_LEVEL}.tar.bz2 - berkdb? ( http://www.sleepycat.com/update/snapshot/db-${BDB_VER}.tar.gz )" - -LICENSE="PAM" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="berkdb pwdb selinux" - -apply_pam_patches() { - local x= - local y= - local patches="${T}/patches.$$" - - for x in redhat gentoo - do - rm -f "${patches}" - - # Need to be a '| while read x', as some lines may have spaces ... - cat "${S2}/list.${x}-patches" | grep -v '^#' | grep -v '^$' | while read y - do - # Remove the 'Patch[0-9]*: ' from the redhat list - echo "${y}" | sed -e 's|^Patch.*: \(.*\)|\1|' >> "${patches}" - done - for y in $(cat "${patches}") - do - epatch "${S2}/${x}-patches/${y}" - done - done -} - -pkg_setup() { - local x= - - if use pwdb; then - for x in libpwdb.a libcrack.a; do - if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - fi - done - fi - - return 0 -} - -src_unpack() { - unpack ${A} || die "Couldn't unpack ${A}" - - cd ${S} || die - tar -zxf ${S2}/pam-redhat-${PAM_REDHAT_VER}.tar.gz \ - || die "Couldn't unpack pam-redhat-${PAM_REDHAT_VER}.tar.gz" - - apply_pam_patches - - use selinux && epatch ${S2}/gentoo-patches/pam-selinux.patch - - for readme in modules/pam_*/README ; do - cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ - sed -e 's|^modules/||') - done - - cp /usr/share/automake/install-sh . || die - export WANT_AUTOCONF=2.5 - autoconf || die -} - -src_compile() { - export CFLAGS="${CFLAGS} -fPIC" - - if use berkdb - then - einfo "Building Berkley DB ${BDB_VER}..." - cd ${WORKDIR} - cd db-${BDB_VER}/dist || die - - # Pam uses berkdb, which db-4.1.x series can't detect mips64, so we fix it - if use mips; then - einfo "Updating berkdb config.{guess,sub} for mips" - local OLDS="${S}" - S="${WORKDIR}/db-${BDB_VER}/dist" - gnuconfig_update - S="${OLDS}" - fi - - echo db_cv_mutex=UNIX/fcntl > config.cache - ./s_config - ./configure \ - --cache-file=config.cache \ - --disable-compat185 \ - --disable-cxx \ - --disable-diagnostic \ - --disable-dump185 \ - --disable-java \ - --disable-rpc \ - --disable-tcl \ - --disable-shared \ - --with-pic \ - --with-uniquename=_pam \ - --prefix=${S} \ - --includedir=${S}/include \ - --libdir=${S}/lib || die "Bad BDB ./configure" - - # XXX hack out O_DIRECT support in db4 for now. - perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' \ - db_config.h - - make || die "BDB build failed" - make install || die - - export CPPFLAGS="-I${S}/include" - export LDFLAGS="-L${S}/lib" - export LIBNAME="lib" - fi - - if [ "${ARCH}" = "alpha" ] - then - if [ ! -z "$(strings -a /usr/lib/libglib.a | grep -i 'Compaq Computer Corp.')" ] - then - # should be LDFLAGS, but this configure is screwy. - echo - einfo "It looks like you compiled glib with ccc, this is okay, but" - einfo "I'll need to force gcc to link with libots...." - echo - append-flags -lots - sed -i -e 's/$(CC) -o/$(CC) -lots -o/g' ${S}/modules/pam_pwdb/Makefile - fi - fi - - einfo "Building Linux-PAM ${PV}..." - cd ${S} - ./configure \ - --libdir=/$(get_libdir) \ - --enable-static-libpam \ - --enable-fakeroot=${D} \ - --enable-isadir=/$(get_libdir)/security \ - --host=${CHOST} || die - - # Python stuff in docs gives sandbox problems - sed -i -e 's|modules doc examples|modules|' Makefile - - # Fix warnings for gcc-2.95.3 - if [ "$(gcc-version)" = "2.95" ] - then - sed -i -e "s:-Wpointer-arith::" Make.Rules - fi - - if ! use berkdb - then - # Do not build pam_userdb.so ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - -e "s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - -e "s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" \ - _pam_aconf.h - - else - # Do not link pam_userdb.so to db-1.85 ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" _pam_aconf.h - fi - - make || die "PAM build failed" -} - -src_install() { - local x= - - einfo "Installing Linux-PAM ${PV}..." - make FAKEROOT=${D} \ - LDCONFIG="" \ - install || die - - # Make sure every module built. - # Do not remove this, as some module can fail to build - # and effectively lock the user out of his system. - einfo "Checking if all modules were built..." - for x in ${S}/modules/pam_* - do - if [ -d ${x} ] - then - # Its OK if the module failed when we didnt ask for it anyway - if ! ls -1 ${D}/$(get_libdir)/security/$(basename ${x})*.so &> /dev/null - then - if ! use berkdb && [ "$(basename ${x})" = "pam_userdb" ] - then - continue - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_pwdb" ] - then - continue - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_radius" ] - then - continue - fi - eerror "ERROR: $(basename ${x}) module did not build." - exit 1 - else - # Remove the ones we didnt want if it ended up building ok anyways - if ! use berkdb && [ "$(basename ${x})" = "pam_userdb" ] - then - rm -f ${D}/$(get_libdir)/security/pam_userdb* - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_pwdb" ] - then - rm -f ${D}/$(get_libdir)/security/pam_pwdb* - fi - if ! use pwdb && [ "$(basename ${x})" = "pam_radius" ] - then - rm -f ${D}/$(get_libdir)/security/pam_radius* - fi - fi - fi - done - - dodir /usr/$(get_libdir) - cd ${D}/$(get_libdir) - for x in pam pamc pam_misc - do - rm lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so.0 - mv lib${x}.a ${D}/usr/$(get_libdir) - # See bug #4411 - gen_usr_ldscript lib${x}.so - done - - cd ${S} - doman doc/man/*.[0-9] - - dodoc CHANGELOG Copyright README - docinto modules ; dodoc modules/README ; dodoc doc/txts/README.* - # Install our own README.pam_console - docinto ; dodoc ${FILESDIR}/README.pam_console - docinto txt ; dodoc doc/specs/*.txt #doc/txts/*.txt -# docinto print ; dodoc doc/ps/*.ps - -# docinto html -# dohtml -r doc/html/ - - # need this for pam_console - keepdir /var/run/console - - insinto /etc/pam.d - for x in ${FILESDIR}/pam.d/* - do - if [ -f ${x} ] - then - doins ${x} - fi - done - - insinto /etc/security - doins ${FILESDIR}/pam_env.conf -} diff --git a/sys-libs/pam/pam-0.78-r2.ebuild b/sys-libs/pam/pam-0.78-r2.ebuild deleted file mode 100644 index 7ab1a8ea233e..000000000000 --- a/sys-libs/pam/pam-0.78-r2.ebuild +++ /dev/null @@ -1,387 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.78-r2.ebuild,v 1.28 2005/08/23 17:28:09 flameeyes Exp $ - -FORCE_SYSTEMAUTH_UPDATE="no" - -# BDB is internalized to get a non-threaded lib for pam_userdb.so to -# be built with. The runtime-only dependency on BDB suggests the user -# will use the system-installed db_load to create pam_userdb databases. -# PWDB is internalized because it is specifically designed to work -# with Linux-PAM. I'm not really certain how pervasive the Radius -# and NIS services of PWDB are at this point. - -PATCH_LEVEL="1.2" -BDB_VER="4.3.27" -BDB_VER2="4.1.25" -GLIB_VER="2.6.5" -PAM_REDHAT_VER="0.78-3" - -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" -DESCRIPTION="Pluggable Authentication Modules" - -S="${WORKDIR}/Linux-PAM-${PV}" -S2="${WORKDIR}/pam-${PV}-patches" -SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz - mirror://gentoo/pam-${PV}-patches-${PATCH_LEVEL}.tar.bz2 - berkdb? ( http://downloads.sleepycat.com/db-${BDB_VER}.tar.gz ) - pam_console? ( ftp://ftp.gtk.org/pub/gtk/v2.6/glib-${GLIB_VER}.tar.bz2 )" - -LICENSE="PAM" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86" -IUSE="berkdb pwdb selinux pam_chroot pam_console pam_timestamp nis" - -RDEPEND=">=sys-libs/cracklib-2.8.3 - selinux? ( sys-libs/libselinux ) - berkdb? ( >=sys-libs/db-${BDB_VER2} ) - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Note that we link to static versions of glib (pam_console.so) -# and pwdb (pam_pwdb.so), so we need glib-2.6.2-r1 or later ... -DEPEND="${RDEPEND} - dev-lang/perl - dev-util/pkgconfig - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5 - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Have python sandbox issues currently ... -# doc? ( app-text/sgmltools-lite ) - -PROVIDE="virtual/pam" - -#inherit needs to be after DEPEND definition to protect RDEPEND -inherit toolchain-funcs eutils flag-o-matic gnuconfig pam - -apply_pam_patches() { - local x= - local y= - local patches="${T}/patches.$$" - - for x in redhat gentoo; do - rm -f "${patches}" - - # Need to be a '| while read x', as some lines may have spaces ... - grep -v '^#' "${S2}/list.${x}-patches" | grep -v '^$' | while read y; do - # Remove the 'Patch[0-9]*: ' from the redhat list - echo "${y}" | sed -e 's|^Patch.*: \(.*\)|\1|' >> "${patches}" - done - for y in $(cat "${patches}"); do - epatch "${S2}/${x}-patches/${y}" - done - done -} - -pkg_setup() { - local x= - - #if use pwdb; then - # for x in libpwdb.a libcrack.a; do - # if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - # eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # fi - # done - #fi - #if use pam_console; then - # x="libglib-2.0.a" - # if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - # eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # eerror "Please remerge glib-2.6.* to make sure you have static changes." - # die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # fi - #fi - - return 0 -} - -src_unpack() { - local x= - - unpack ${A} || die "Couldn't unpack ${A}" - - cd ${S} || die - tar --no-same-owner -zxf ${S2}/pam-redhat-${PAM_REDHAT_VER}.tar.gz \ - || die "Couldn't unpack pam-redhat-${PAM_REDHAT_VER}.tar.gz" - # These ones we do not want, or do not work with non RH - rm -rf ${S}/modules/{pam_rps,pam_postgresok} - - apply_pam_patches - - if use selinux; then - epatch ${S2}/gentoo-patches/pam-0.78-selinux.patch - fi - - # Check which extra modules should be built - # (Do this after apply_pam_patches(), else some may fail) - for x in pam_chroot pam_console pam_timestamp; do - use "${x}" || rm -rf "${S}/modules/${x}" - done - use berkdb || rm -rf "${S}/modules/pam_userdb" - use pwdb || rm -rf "${S}/modules/pam_pwdb" - use pwdb || rm -rf "${S}/modules/pam_radius" - - for x in $(find ${S} -type f -name 'Makefile*'); do - use nis || sed -i -e 's: -DNIS::g' "${x}" - done - # NIS patch is broken for now - use nis && echo 'NIS=yes' >> "${S}/Make.Rules.in" - - # Fixup libdir for 64bit arches - sed -ie "s:@get_libdir:$(get_libdir):" ${S}/configure.in - - for readme in modules/pam_*/README; do - cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ - sed -e 's|^modules/||') - done - - # Bug #80604 (If install-sh do not exist, touch it) - cp /usr/share/automake/install-sh ${S}/ 2>/dev/null || touch install-sh - export WANT_AUTOCONF=2.5 - autoconf || die -} - -src_compile() { - local BDB_DIR="${WORKDIR}/db-${BDB_VER}" - local GLIB_DIR="${WORKDIR}/glib-${GLIB_VER}" - - # Bug #70471 (Compile issues with other locales) - export LANG=C LC_ALL=C - - if use berkdb ; then - einfo "Building Berkley DB ${BDB_VER}..." - cd "${BDB_DIR}/build_unix" || die - - # Pam uses berkdb, which db-4.1.x series can't detect mips64, so we fix it - if use mips ; then - einfo "Updating BDB config.{guess,sub} for mips" - S="${BDB_DIR}/dist" \ - gnuconfig_update - fi - - #echo db_cv_mutex=UNIX/fcntl > config.cache - #./s_config - CFLAGS="${CFLAGS} -fPIC" \ - ../dist/configure \ - --host=${CHOST} \ - --cache-file=config.cache \ - --disable-compat185 \ - --disable-cxx \ - --disable-diagnostic \ - --disable-dump185 \ - --disable-java \ - --disable-rpc \ - --disable-tcl \ - --disable-shared \ - --disable-o_direct \ - --with-pic \ - --with-uniquename=_pam \ - --with-mutex="UNIX/fcntl" \ - --prefix="${S}" \ - --includedir="${S}/include" \ - --libdir="${S}/lib" || die "Bad BDB ./configure" - - # XXX: hack out O_DIRECT support in db4 for now. - # (Done above now with --disable-o_direct now) - - make CC="$(tc-getCC)" || die "BDB build failed" - make install || die - fi - - if use pam_console ; then - einfo "Building GLIB ${GLIB_VER}..." - cd "${GLIB_DIR}" || die - - # The __attribute__((visibility("hidden"))) causes TEXTREL issues - sed -i -s 's:G_GNUC_INTERNAL::g' "${GLIB_DIR}/glib"/*.c - - CFLAGS="${CFLAGS} -fPIC" \ - ./configure \ - --host=${CHOST} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --disable-threads \ - --with-threads=none \ - --prefix="${S}" \ - --includedir="${S}/include" \ - --libdir="${S}/lib" || die "Bad GLIB ./configure" - - # Do not need to build the whole shebang - cd "${GLIB_DIR}/glib" || die - make CC="$(tc-getCC)" || die "GLIB build failed" - make install || die - # Install pkg-config stuff and needed headers - cd "${GLIB_DIR}" || die - make install-pkgconfigDATA install-exec-local || die - fi - - if use berkdb || use pam_console ; then - # Make sure out static libs are used - export CFLAGS="-I${S}/include -Wl,-L${S}/lib ${CFLAGS}" - export LDFLAGS="-L${S}/lib ${LDFLAGS}" - export LIBNAME="lib" - # Make sure pkg-config can find glib even if not installed in system - export PKG_CONFIG_PATH="${S}/lib/pkgconfig:${PKG_CONFIG_PATH}" - fi - - einfo "Building Linux-PAM ${PV}..." - cd ${S} - econf --enable-static-libpam \ - --enable-fakeroot="${D}" \ - --libdir="/$(get_libdir)" \ - --enable-isadir="../../$(get_libdir)/security" \ - || die - - # Python stuff in docs gives sandbox problems - sed -i -e 's|modules doc examples|modules|' Makefile - - # Fix warnings for gcc-2.95.3 - if [[ $(gcc-version) = "2.95" ]] ; then - sed -i -e "s:-Wpointer-arith::" Make.Rules - fi - - if ! use berkdb ; then - # Do not build pam_userdb.so ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - -e "s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - -e "s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" \ - _pam_aconf.h - - else - # Do not link pam_userdb.so to db-1.85 ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - _pam_aconf.h - fi - - make CC="$(tc-getCC)" || die "PAM build failed" -} - -src_install() { - local x= - - einfo "Installing Linux-PAM ${PV}..." - make FAKEROOT=${D} \ - LDCONFIG="" \ - install || die - - # Make sure every module built. - # Do not remove this, as some module can fail to build - # and effectively lock the user out of his system. - einfo "Checking if all modules were built..." - for x in ${S}/modules/pam_*; do - if [[ -d ${x} ]] ; then - local mod_name=$(basename "${x}") - local sec_dir="${D}/$(get_libdir)/security" - - if ! ls -1 "${sec_dir}/${mod_name}"*.so &> /dev/null ; then - echo - eerror "ERROR: ${mod_name} module did not build." - echo - die "${mod_name} module did not build." - fi - if [[ -n $(ldd "${sec_dir}/${mod_name}"*.so 2>&1 | \ - grep "/usr/lib/" | \ - grep "/usr/$(get_libdir)/" | \ - grep -v "/usr/lib/gcc" | \ - grep -v "/usr/$(get_libdir)/gcc" | \ - grep -v "libsandbox") ]] ; then - echo - eerror "ERROR: ${mod_name} have dependencies in /usr." - echo - die "${mod_name} have dependencies in /usr." - fi - fi - done - - dodir /usr/$(get_libdir) - cd ${D}/$(get_libdir) - for x in pam pamc pam_misc; do - rm lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so.0 - mv lib${x}.a ${D}/usr/$(get_libdir) - # See bug #4411 - gen_usr_ldscript lib${x}.so - done - - cd ${S} - - # need this for pam_console - keepdir /var/run/console - - for x in ${FILESDIR}/pam.d/*; do - [[ -f ${x} ]] && dopamd ${x} - done - - # Only add this one if needed. - if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then - newpamd ${FILESDIR}/pam.d/system-auth system-auth.new || \ - die "Failed to install system-auth.new!" - fi - - insinto /etc/security - doins ${FILESDIR}/pam_env.conf - doman doc/man/*.[0-9] - - dodoc CHANGELOG Copyright README - docinto modules ; dodoc modules/README ; dodoc doc/txts/README.* - # Install our own README.pam_console - docinto ; dodoc ${FILESDIR}/README.pam_console - docinto txt ; dodoc doc/specs/*.txt #doc/txts/*.txt -# docinto print ; dodoc doc/ps/*.ps - -# docinto html -# dohtml -r doc/html/ -} - -pkg_postinst() { - echo - einfo "If you have sshd running, please restart it to avoid possible login issues." - echo - ebeep - sleep 3 - - if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then - local CHECK1=$(md5sum ${ROOT}/etc/pam.d/system-auth | cut -d ' ' -f 1) - local CHECK2=$(md5sum ${ROOT}/etc/pam.d/system-auth.new | cut -d ' ' -f 1) - - if [[ ${CHECK1} != "${CHECK2}" ]] ; then - ewarn "Due to a security issue, ${ROOT}etc/pam.d/system-auth " - ewarn "is being updated automatically. Your old " - ewarn "system-auth will be backed up as:" - ewarn - ewarn " ${ROOT}etc/pam.d/system-auth.bak" - echo - - cp -pPR ${ROOT}/etc/pam.d/system-auth \ - ${ROOT}/etc/pam.d/system-auth.bak; - mv -f ${ROOT}/etc/pam.d/system-auth.new \ - ${ROOT}/etc/pam.d/system-auth - rm -f ${ROOT}/etc/pam.d/._cfg????_system-auth - else - rm -f ${ROOT}/etc/pam.d/system-auth.new - fi - fi - - if use pam_console; then - echo - einfo "If you want to enable the pam_console module, please follow" - einfo "the instructions in /usr/share/doc/${PF}/README.pam_console." - echo - fi -} diff --git a/sys-libs/pam/pam-0.78-r4.ebuild b/sys-libs/pam/pam-0.78-r4.ebuild deleted file mode 100644 index b0ba25055558..000000000000 --- a/sys-libs/pam/pam-0.78-r4.ebuild +++ /dev/null @@ -1,391 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.78-r4.ebuild,v 1.1 2006/01/25 13:55:38 flameeyes Exp $ - -FORCE_SYSTEMAUTH_UPDATE="no" - -# BDB is internalized to get a non-threaded lib for pam_userdb.so to -# be built with. The runtime-only dependency on BDB suggests the user -# will use the system-installed db_load to create pam_userdb databases. -# PWDB is internalized because it is specifically designed to work -# with Linux-PAM. I'm not really certain how pervasive the Radius -# and NIS services of PWDB are at this point. - -PATCH_LEVEL="1.3" -BDB_VER="4.3.27" -BDB_VER2="4.1.25" -GLIB_VER="2.6.5" -PAM_REDHAT_VER="0.78-3" - -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" -DESCRIPTION="Pluggable Authentication Modules" - -S="${WORKDIR}/Linux-PAM-${PV}" -S2="${WORKDIR}/pam-${PV}-patches" -SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz - mirror://gentoo/pam-${PV}-patches-${PATCH_LEVEL}.tar.bz2 - berkdb? ( http://downloads.sleepycat.com/db-${BDB_VER}.tar.gz ) - pam_console? ( ftp://ftp.gtk.org/pub/gtk/v2.6/glib-${GLIB_VER}.tar.bz2 )" - -LICENSE="PAM" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="berkdb pwdb selinux pam_chroot pam_console pam_timestamp nis" - -RDEPEND=">=sys-libs/cracklib-2.8.3 - selinux? ( sys-libs/libselinux ) - berkdb? ( >=sys-libs/db-${BDB_VER2} ) - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Note that we link to static versions of glib (pam_console.so) -# and pwdb (pam_pwdb.so), so we need glib-2.6.2-r1 or later ... -DEPEND="${RDEPEND} - dev-lang/perl - dev-util/pkgconfig - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5 - pwdb? ( >=sys-libs/pwdb-0.62 )" - -# Have python sandbox issues currently ... -# doc? ( app-text/sgmltools-lite ) - -PROVIDE="virtual/pam" - -#inherit needs to be after DEPEND definition to protect RDEPEND -inherit toolchain-funcs eutils flag-o-matic gnuconfig pam - -apply_pam_patches() { - local x= - local y= - local patches="${T}/patches.$$" - - for x in redhat gentoo; do - rm -f "${patches}" - - # Need to be a '| while read x', as some lines may have spaces ... - grep -v '^#' "${S2}/list.${x}-patches" | grep -v '^$' | while read y; do - # Remove the 'Patch[0-9]*: ' from the redhat list - echo "${y}" | sed -e 's|^Patch.*: \(.*\)|\1|' >> "${patches}" - done - for y in $(cat "${patches}"); do - epatch "${S2}/${x}-patches/${y}" - done - done -} - -pkg_setup() { - local x= - - #if use pwdb; then - # for x in libpwdb.a libcrack.a; do - # if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - # eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # fi - # done - #fi - #if use pam_console; then - # x="libglib-2.0.a" - # if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then - # eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # eerror "Please remerge glib-2.6.* to make sure you have static changes." - # die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!" - # fi - #fi - - return 0 -} - -src_unpack() { - local x= - - unpack ${A} || die "Couldn't unpack ${A}" - - cd ${S} || die - tar --no-same-owner -zxf ${S2}/pam-redhat-${PAM_REDHAT_VER}.tar.gz \ - || die "Couldn't unpack pam-redhat-${PAM_REDHAT_VER}.tar.gz" - # These ones we do not want, or do not work with non RH - rm -rf ${S}/modules/{pam_rps,pam_postgresok} - - apply_pam_patches - - if use selinux; then - epatch ${S2}/gentoo-patches/pam-0.78-selinux.patch - epatch ${S2}/gentoo-patches/pam-0.77-selinux-CAN-2005-2977.patch - fi - - # Check which extra modules should be built - # (Do this after apply_pam_patches(), else some may fail) - for x in pam_chroot pam_console pam_timestamp; do - use "${x}" || rm -rf "${S}/modules/${x}" - done - use berkdb || rm -rf "${S}/modules/pam_userdb" - use pwdb || rm -rf "${S}/modules/pam_pwdb" - use pwdb || rm -rf "${S}/modules/pam_radius" - - for x in $(find ${S} -type f -name 'Makefile*'); do - use nis || sed -i -e 's: -DNIS::g' "${x}" - done - # NIS patch is broken for now - use nis && echo 'NIS=yes' >> "${S}/Make.Rules.in" - - # Fixup libdir for 64bit arches - sed -ie "s:@get_libdir:$(get_libdir):" ${S}/configure.in - - for readme in modules/pam_*/README; do - cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ - sed -e 's|^modules/||') - done - - # Bug #80604 (If install-sh do not exist, touch it) - cp /usr/share/automake/install-sh ${S}/ 2>/dev/null || touch install-sh - export WANT_AUTOCONF=2.5 - autoconf || die - - epatch "${FILESDIR}/${P}-inttypes.patch" - epatch "${FILESDIR}/${P}-xauth-path.patch" -} - -src_compile() { - local BDB_DIR="${WORKDIR}/db-${BDB_VER}" - local GLIB_DIR="${WORKDIR}/glib-${GLIB_VER}" - - # Bug #70471 (Compile issues with other locales) - export LANG=C LC_ALL=C - - if use berkdb ; then - einfo "Building Berkley DB ${BDB_VER}..." - cd "${BDB_DIR}/build_unix" || die - - # Pam uses berkdb, which db-4.1.x series can't detect mips64, so we fix it - if use mips ; then - einfo "Updating BDB config.{guess,sub} for mips" - S="${BDB_DIR}/dist" \ - gnuconfig_update - fi - - #echo db_cv_mutex=UNIX/fcntl > config.cache - #./s_config - CFLAGS="${CFLAGS} -fPIC" \ - ../dist/configure \ - --host=${CHOST} \ - --cache-file=config.cache \ - --disable-compat185 \ - --disable-cxx \ - --disable-diagnostic \ - --disable-dump185 \ - --disable-java \ - --disable-rpc \ - --disable-tcl \ - --disable-shared \ - --disable-o_direct \ - --with-pic \ - --with-uniquename=_pam \ - --with-mutex="UNIX/fcntl" \ - --prefix="${S}" \ - --includedir="${S}/include" \ - --libdir="${S}/lib" || die "Bad BDB ./configure" - - # XXX: hack out O_DIRECT support in db4 for now. - # (Done above now with --disable-o_direct now) - - make CC="$(tc-getCC)" || die "BDB build failed" - make install || die - fi - - if use pam_console ; then - einfo "Building GLIB ${GLIB_VER}..." - cd "${GLIB_DIR}" || die - - # The __attribute__((visibility("hidden"))) causes TEXTREL issues - sed -i -s 's:G_GNUC_INTERNAL::g' "${GLIB_DIR}/glib"/*.c - - CFLAGS="${CFLAGS} -fPIC" \ - ./configure \ - --host=${CHOST} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --disable-threads \ - --with-threads=none \ - --prefix="${S}" \ - --includedir="${S}/include" \ - --libdir="${S}/lib" || die "Bad GLIB ./configure" - - # Do not need to build the whole shebang - cd "${GLIB_DIR}/glib" || die - make CC="$(tc-getCC)" || die "GLIB build failed" - make install || die - # Install pkg-config stuff and needed headers - cd "${GLIB_DIR}" || die - make install-pkgconfigDATA install-exec-local || die - fi - - if use berkdb || use pam_console ; then - # Make sure out static libs are used - export CFLAGS="-I${S}/include -Wl,-L${S}/lib ${CFLAGS}" - export LDFLAGS="-L${S}/lib ${LDFLAGS}" - export LIBNAME="lib" - # Make sure pkg-config can find glib even if not installed in system - export PKG_CONFIG_PATH="${S}/lib/pkgconfig:${PKG_CONFIG_PATH}" - fi - - einfo "Building Linux-PAM ${PV}..." - cd ${S} - econf --enable-static-libpam \ - --enable-fakeroot="${D}" \ - --libdir="/$(get_libdir)" \ - --enable-isadir="../../$(get_libdir)/security" \ - || die - - # Python stuff in docs gives sandbox problems - sed -i -e 's|modules doc examples|modules|' Makefile - - # Fix warnings for gcc-2.95.3 - if [[ $(gcc-version) = "2.95" ]] ; then - sed -i -e "s:-Wpointer-arith::" Make.Rules - fi - - if ! use berkdb ; then - # Do not build pam_userdb.so ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - -e "s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - -e "s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" \ - _pam_aconf.h - - else - # Do not link pam_userdb.so to db-1.85 ... - sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \ - -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \ - Make.Rules - - # Also edit the configuration file else the wrong include files - # get used - sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \ - _pam_aconf.h - fi - - make CC="$(tc-getCC)" || die "PAM build failed" -} - -src_install() { - local x= - - einfo "Installing Linux-PAM ${PV}..." - make FAKEROOT=${D} \ - LDCONFIG="" \ - install || die - - # Make sure every module built. - # Do not remove this, as some module can fail to build - # and effectively lock the user out of his system. - einfo "Checking if all modules were built..." - for x in ${S}/modules/pam_*; do - if [[ -d ${x} ]] ; then - local mod_name=$(basename "${x}") - local sec_dir="${D}/$(get_libdir)/security" - - if ! ls -1 "${sec_dir}/${mod_name}"*.so &> /dev/null ; then - echo - eerror "ERROR: ${mod_name} module did not build." - echo - die "${mod_name} module did not build." - fi - if [[ -n $(ldd "${sec_dir}/${mod_name}"*.so 2>&1 | \ - grep "/usr/lib/" | \ - grep "/usr/$(get_libdir)/" | \ - grep -v "/usr/lib/gcc" | \ - grep -v "/usr/$(get_libdir)/gcc" | \ - grep -v "libsandbox") ]] ; then - echo - eerror "ERROR: ${mod_name} have dependencies in /usr." - echo - die "${mod_name} have dependencies in /usr." - fi - fi - done - - dodir /usr/$(get_libdir) - cd ${D}/$(get_libdir) - for x in pam pamc pam_misc; do - rm lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so - ln -s lib${x}.so.${PV} lib${x}.so.0 - mv lib${x}.a ${D}/usr/$(get_libdir) - # See bug #4411 - gen_usr_ldscript lib${x}.so - done - - cd ${S} - - # need this for pam_console - keepdir /var/run/console - - for x in ${FILESDIR}/pam.d/*; do - [[ -f ${x} ]] && dopamd ${x} - done - - # Only add this one if needed. - if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then - newpamd ${FILESDIR}/pam.d/system-auth system-auth.new || \ - die "Failed to install system-auth.new!" - fi - - insinto /etc/security - doins ${FILESDIR}/pam_env.conf - doman doc/man/*.[0-9] - - dodoc CHANGELOG Copyright README - docinto modules ; dodoc modules/README ; dodoc doc/txts/README.* - # Install our own README.pam_console - docinto ; dodoc ${FILESDIR}/README.pam_console - docinto txt ; dodoc doc/specs/*.txt #doc/txts/*.txt -# docinto print ; dodoc doc/ps/*.ps - -# docinto html -# dohtml -r doc/html/ -} - -pkg_postinst() { - echo - einfo "If you have sshd running, please restart it to avoid possible login issues." - echo - ebeep - sleep 3 - - if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then - local CHECK1=$(md5sum ${ROOT}/etc/pam.d/system-auth | cut -d ' ' -f 1) - local CHECK2=$(md5sum ${ROOT}/etc/pam.d/system-auth.new | cut -d ' ' -f 1) - - if [[ ${CHECK1} != "${CHECK2}" ]] ; then - ewarn "Due to a security issue, ${ROOT}etc/pam.d/system-auth " - ewarn "is being updated automatically. Your old " - ewarn "system-auth will be backed up as:" - ewarn - ewarn " ${ROOT}etc/pam.d/system-auth.bak" - echo - - cp -pPR ${ROOT}/etc/pam.d/system-auth \ - ${ROOT}/etc/pam.d/system-auth.bak; - mv -f ${ROOT}/etc/pam.d/system-auth.new \ - ${ROOT}/etc/pam.d/system-auth - rm -f ${ROOT}/etc/pam.d/._cfg????_system-auth - else - rm -f ${ROOT}/etc/pam.d/system-auth.new - fi - fi - - if use pam_console; then - echo - einfo "If you want to enable the pam_console module, please follow" - einfo "the instructions in /usr/share/doc/${PF}/README.pam_console." - echo - fi -} |