diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-11-20 18:22:08 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-11-20 18:22:08 +0000 |
commit | ad9c70e801dfc3dab972356abdef9d6ed0c822c9 (patch) | |
tree | 6891ac264a84c4f4782c5d0505dbc93fff20b2ab /sys-libs | |
parent | add locale location fix from Azamat H. Hackimov for bug #346201 (diff) | |
download | historical-ad9c70e801dfc3dab972356abdef9d6ed0c822c9.tar.gz historical-ad9c70e801dfc3dab972356abdef9d6ed0c822c9.tar.bz2 historical-ad9c70e801dfc3dab972356abdef9d6ed0c822c9.zip |
Cleanup old version and required patches.
Package-Manager: portage-2.2.0_alpha4/cvs/Linux x86_64
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/pam/ChangeLog | 10 | ||||
-rw-r--r-- | sys-libs/pam/Manifest | 21 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch | 18 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.0-uclibc.patch | 82 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.1+berkdb-5.patch | 12 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.1-gentoodb.patch | 20 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.1-pam_tally2-mode.patch | 16 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.1-xcrypt.patch | 21 | ||||
-rw-r--r-- | sys-libs/pam/pam-1.1.1-r2.ebuild | 203 |
9 files changed, 20 insertions, 383 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog index 80aa13cb6046..29302b36800b 100644 --- a/sys-libs/pam/ChangeLog +++ b/sys-libs/pam/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-libs/pam # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.285 2010/11/20 15:55:18 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.286 2010/11/20 18:22:08 flameeyes Exp $ + + 20 Nov 2010; Diego E. Pettenò <flameeyes@gentoo.org> + -files/Linux-PAM-0.99.8.1-xtests.patch, -files/Linux-PAM-1.1.0-uclibc.patch, + -pam-1.1.1-r2.ebuild, -files/Linux-PAM-1.1.1+berkdb-5.patch, + -files/Linux-PAM-1.1.1-gentoodb.patch, + -files/Linux-PAM-1.1.1-pam_tally2-mode.patch, + -files/Linux-PAM-1.1.1-xcrypt.patch: + Cleanup old version and required patches. 20 Nov 2010; Raúl Porcel <armin76@gentoo.org> pam-1.1.3.ebuild: ia64/m68k/s390/sh/sparc stable wrt #343399 diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest index 49fd5dfdb96b..2baaf2dd6d9b 100644 --- a/sys-libs/pam/Manifest +++ b/sys-libs/pam/Manifest @@ -1,14 +1,15 @@ -AUX Linux-PAM-0.99.8.1-xtests.patch 726 RMD160 4740f7039305c2520add212a576c9f16eb6c0db9 SHA1 716cd42c4c785db666b6c9911222760285a79e8f SHA256 6dbbadc4d9a5d08e55b381746dffd501bdd7dc07fdcb741b8ac95df07d5e1223 -AUX Linux-PAM-1.1.0-uclibc.patch 2643 RMD160 4294e27b8d90d8d9ee93c427d7eaf8af419f72f6 SHA1 aae4eb27892e1671c34d045a2d596d834aeb95e5 SHA256 b20ff20402778ff174694fe059afeecc6e8df8266d8ecae30419c7c930ffa5ae -AUX Linux-PAM-1.1.1+berkdb-5.patch 473 RMD160 a03806a7406c97944b7efbd0cc624c219fa13c20 SHA1 1cd13c810fb1c967734e78c1fdec75e176261544 SHA256 76c9cea947452e1d15ab815df7052bf74e434ab598dde7e5afab8e46cf8c7dd0 -AUX Linux-PAM-1.1.1-gentoodb.patch 1145 RMD160 a9f8a6adf67f4804eaf0dab51d48545bf2ab41cf SHA1 48b08cccd47f1fe63d3ac9c048e071c9955bf657 SHA256 7cbb9477d9a83b642e9f2a5e4d9be7c0831b7d131890482c623e08a2193beadc -AUX Linux-PAM-1.1.1-pam_tally2-mode.patch 670 RMD160 795e22f12753bc1d8609a51d36f709c03eb40156 SHA1 bf60ea6c77aafbebc029dac54eea0b7fe8839a65 SHA256 f6d386e0452629dbcdee96e209ad629e6fafec88d368dfda5bc138cfe15e22ab -AUX Linux-PAM-1.1.1-xcrypt.patch 867 RMD160 8742c63058f01198b3c0bc5e6c0a430c90c65b90 SHA1 0c8830ceb483ff071f2aa5722c16c52183b3de55 SHA256 447b85fd045c688fa995791f58c6be45e73dec071dd43ee9773df1a6b7eb0486 -DIST Linux-PAM-1.1.1-docs.tar.bz2 495534 RMD160 182639c3fa79c96dbc263f2d16346345949bb0c8 SHA1 9e25f276546844bb5a58f30b5e5d5a97d25c5af5 SHA256 89950180aba6e5e05671c43d970d9738fd2b71b1421a2cf4d504f5c529586ac6 -DIST Linux-PAM-1.1.1.tar.bz2 1120055 RMD160 2d3c39cb2c3542d380e1331fef08c7086cc829d9 SHA1 8baf11b04396230ba7cf8b2bfb2d2bd75aab8fa6 SHA256 608d3eb9d7a5e1a7505fff62e6a583fdb6e52dc05bf54dc9661c5f395b1fb904 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + DIST Linux-PAM-1.1.3-docs.tar.bz2 495577 RMD160 d080055e8b2e2c213293e42d42d64082cd112915 SHA1 88024b6c99f1d5e9da1d12f7c04ca97779125d56 SHA256 4afc3c02f295ed1a3e09876da7eb8738ce48a3c8ea1bc0861e4999730489df12 DIST Linux-PAM-1.1.3.tar.bz2 1132898 RMD160 626d8deabe5fb8fcc333b3b52fe5653e901bf352 SHA1 97d36d2b9af3211b4818ea8e6fcc6893ca1b6722 SHA256 17b268789b935a76e736a1150210dd12f156972973e79347668f828d43632652 -EBUILD pam-1.1.1-r2.ebuild 6534 RMD160 10f6695009088cddcfc1f9657b3932280c6ba3b5 SHA1 a73fc2c1cf851e165c39e5179e8e366ac3106091 SHA256 e1fc3075f8323ceb8de35573a7931da4bb8ea91ae5420ed55d8cf8b0103ec058 EBUILD pam-1.1.3.ebuild 5669 RMD160 2394c84ee5bdd3957f57dcc32eeaba6f02d0f7f2 SHA1 02c555048af15fd53e69acd679b6d3d0c2143485 SHA256 ff2078751cc8e677b6332fb481d25542e6d9290c97cb675e21af1f798135b3e1 -MISC ChangeLog 45478 RMD160 54bed983e37ee74124c4dddd29aea09a6b1e92b3 SHA1 457ec15a7503618e99eb0f89953294531b64c579 SHA256 4470f0ecc8124db962ca42472c4e3a2288e9272fe1c517cbdb2f37c686faa96a +MISC ChangeLog 45851 RMD160 4d034777d3b4e4072b6936d970d394f08d2bc425 SHA1 7b7ac14fec27ce374a31b5298ea3e6ec8005f7bc SHA256 b6171b47386b675dbc4bec5bee53b2c65bcd812ffc158279f06a16c8918f9293 MISC metadata.xml 1129 RMD160 a800f5ac4255ca20c26791ff0b57c3c923666623 SHA1 99e58550271cf1c3e23c4547387469a0d211ae55 SHA256 e160643aca26e0418b31429836ae1b4c673474cd6130b7e2ac0d0bf41380df0b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkzoEYkACgkQAiZjviIA2XhqwgCgvtT71LsFsrP8CNpOJMj5Yw15 +wrIAoOV2M6IqjnxPS7i/og1XqjY1icgN +=JW2u +-----END PGP SIGNATURE----- diff --git a/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch b/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch deleted file mode 100644 index 2cd3e950db6d..000000000000 --- a/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch +++ /dev/null @@ -1,18 +0,0 @@ -This patch makes sure that the xtests programs don't get build when running -'make all', as they might fail to build (for instance if GLIBC 2.3 is used). - -Note that the tests are not executed by default at make check because they -are anyway broken. -Index: Linux-PAM-0.99.9.0/xtests/Makefile.am -=================================================================== ---- Linux-PAM-0.99.9.0.orig/xtests/Makefile.am -+++ Linux-PAM-0.99.9.0/xtests/Makefile.am -@@ -29,7 +29,7 @@ XTESTS = tst-pam_dispatch1 tst-pam_dispa - tst-pam_access4 tst-pam_limits1 tst-pam_succeed_if1 \ - tst-pam_group1 - --noinst_PROGRAMS = $(XTESTS) -+check_PROGRAMS = $(XTESTS) - - xtests: $(XTESTS) run-xtests.sh - "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} diff --git a/sys-libs/pam/files/Linux-PAM-1.1.0-uclibc.patch b/sys-libs/pam/files/Linux-PAM-1.1.0-uclibc.patch deleted file mode 100644 index 6b8fa25f8f59..000000000000 --- a/sys-libs/pam/files/Linux-PAM-1.1.0-uclibc.patch +++ /dev/null @@ -1,82 +0,0 @@ -Index: Linux-PAM-1.1.0/modules/pam_pwhistory/opasswd.c -=================================================================== ---- Linux-PAM-1.1.0.orig/modules/pam_pwhistory/opasswd.c -+++ Linux-PAM-1.1.0/modules/pam_pwhistory/opasswd.c -@@ -94,6 +94,23 @@ parse_entry (char *line, opwd *data) - return 0; - } - -+static int -+compare_password(const char *newpass, const char *oldpass) -+{ -+ char *outval; -+#ifdef HAVE_CRYPT_R -+ struct crypt_data output; -+ -+ output.initialized = 0; -+ -+ outval = crypt_r (newpass, oldpass, &output); -+#else -+ outval = crypt (newpass, oldpass); -+#endif -+ -+ return strcmp(outval, oldpass) == 0; -+} -+ - /* Check, if the new password is already in the opasswd file. */ - int - check_old_password (pam_handle_t *pamh, const char *user, -@@ -167,12 +184,9 @@ check_old_password (pam_handle_t *pamh, - if (found) - { - const char delimiters[] = ","; -- struct crypt_data output; - char *running; - char *oldpass; - -- memset (&output, 0, sizeof (output)); -- - running = strdupa (entry.old_passwords); - if (running == NULL) - return PAM_BUF_ERR; -@@ -180,7 +194,7 @@ check_old_password (pam_handle_t *pamh, - do { - oldpass = strsep (&running, delimiters); - if (oldpass && strlen (oldpass) > 0 && -- strcmp (crypt_r (newpass, oldpass, &output), oldpass) == 0) -+ compare_password(newpass, oldpass) ) - { - if (debug) - pam_syslog (pamh, LOG_DEBUG, "New password already used"); -Index: Linux-PAM-1.1.0/configure.in -=================================================================== ---- Linux-PAM-1.1.0.orig/configure.in -+++ Linux-PAM-1.1.0/configure.in -@@ -458,7 +458,7 @@ AC_FUNC_MEMCMP - AC_FUNC_VPRINTF - AC_CHECK_FUNCS(fseeko gethostname gettimeofday lckpwdf mkdir select) - AC_CHECK_FUNCS(strcspn strdup strspn strstr strtol uname) --AC_CHECK_FUNCS(getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r) -+AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r) - AC_CHECK_FUNCS(getgrouplist getline getdelim) - AC_CHECK_FUNCS(inet_ntop inet_pton ruserok_af) - -Index: Linux-PAM-1.1.0/modules/pam_timestamp/pam_timestamp.c -=================================================================== ---- Linux-PAM-1.1.0.orig/modules/pam_timestamp/pam_timestamp.c -+++ Linux-PAM-1.1.0/modules/pam_timestamp/pam_timestamp.c -@@ -200,7 +200,13 @@ check_login_time(const char *ruser, time - time_t oldest_login = 0; - - setutent(); -- while(!getutent_r(&utbuf, &ut)) { -+ while( -+#ifdef HAVE_GETUTENT_R -+ !getutent_r(&utbuf, &ut) -+#else -+ (ut = getutent()) != NULL -+#endif -+ ) { - if (ut->ut_type != USER_PROCESS) { - continue; - } diff --git a/sys-libs/pam/files/Linux-PAM-1.1.1+berkdb-5.patch b/sys-libs/pam/files/Linux-PAM-1.1.1+berkdb-5.patch deleted file mode 100644 index ece92119b29a..000000000000 --- a/sys-libs/pam/files/Linux-PAM-1.1.1+berkdb-5.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: Linux-PAM-1.1.1/modules/pam_userdb/pam_userdb.c -=================================================================== ---- Linux-PAM-1.1.1.orig/modules/pam_userdb/pam_userdb.c -+++ Linux-PAM-1.1.1/modules/pam_userdb/pam_userdb.c -@@ -30,6 +30,7 @@ - #else - # ifdef HAVE_DB_H - # define DB_DBM_HSEARCH 1 /* use the dbm interface */ -+# define HAVE_DBM /* for BerkDB 5.0 and later */ - # include <db.h> - # else - # error "failed to find a libdb or equivalent" diff --git a/sys-libs/pam/files/Linux-PAM-1.1.1-gentoodb.patch b/sys-libs/pam/files/Linux-PAM-1.1.1-gentoodb.patch deleted file mode 100644 index 0334496b9902..000000000000 --- a/sys-libs/pam/files/Linux-PAM-1.1.1-gentoodb.patch +++ /dev/null @@ -1,20 +0,0 @@ -Index: Linux-PAM-1.1.1/configure.in -=================================================================== ---- Linux-PAM-1.1.1.orig/configure.in -+++ Linux-PAM-1.1.1/configure.in -@@ -389,10 +389,11 @@ AC_ARG_WITH([db-uniquename], - AS_HELP_STRING([--with-db-uniquename=extension],[Unique name for db libraries and functions.])) - if test x"$WITH_DB" != xno ; then - if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then -- AC_CHECK_LIB([db$with_db_uniquename], [db_create$with_db_uniquename], LIBDB="-ldb$with_db_uniquename", LIBDB="") -- if test -z "$LIBDB" ; then -- AC_CHECK_LIB([db$with_db_uniquename], [dbm_store$with_db_uniquename], LIBDB="-ldb$with_db_uniquename", LIBDB="") -- fi -+ old_libs=$LIBS -+ LIBS="$LIBS -ldb$with_db_uniquename" -+ AC_CHECK_FUNCS([db_create$with_db_uniquename db_create dbm_store$with_db_uniquename dbm_store], -+ [LIBDB="-ldb$with_db_uniquename"; break]) -+ LIBS=$old_libs - fi - if test -z "$LIBDB" ; then - AC_CHECK_LIB([ndbm],[dbm_store], LIBDB="-lndbm", LIBDB="") diff --git a/sys-libs/pam/files/Linux-PAM-1.1.1-pam_tally2-mode.patch b/sys-libs/pam/files/Linux-PAM-1.1.1-pam_tally2-mode.patch deleted file mode 100644 index 608615cf6d94..000000000000 --- a/sys-libs/pam/files/Linux-PAM-1.1.1-pam_tally2-mode.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: modules/pam_tally2/pam_tally2.c -=================================================================== -RCS file: /cvsroot/pam/Linux-PAM/modules/pam_tally2/pam_tally2.c,v -retrieving revision 1.4 -diff -u -B -r1.4 pam_tally2.c ---- modules/pam_tally2/pam_tally2.c 27 Feb 2009 14:29:40 -0000 1.4 -+++ modules/pam_tally2/pam_tally2.c 26 Jul 2010 15:37:14 -0000 -@@ -373,7 +373,7 @@ - - lstat_ret = lstat(filename, &fileinfo); - if (lstat_ret) { -- *tfile=open(filename, O_APPEND|O_CREAT, 0700); -+ *tfile=open(filename, O_APPEND|O_CREAT, S_IRUSR|S_IWUSR); - /* Create file, or append-open in pathological case. */ - if (*tfile == -1) { - #ifndef MAIN diff --git a/sys-libs/pam/files/Linux-PAM-1.1.1-xcrypt.patch b/sys-libs/pam/files/Linux-PAM-1.1.1-xcrypt.patch deleted file mode 100644 index f842da7dfe5e..000000000000 --- a/sys-libs/pam/files/Linux-PAM-1.1.1-xcrypt.patch +++ /dev/null @@ -1,21 +0,0 @@ -Index: Linux-PAM-1.1.1/configure.in -=================================================================== ---- Linux-PAM-1.1.1.orig/configure.in -+++ Linux-PAM-1.1.1/configure.in -@@ -361,10 +361,14 @@ AM_CONDITIONAL([HAVE_AUDIT_TTY_STATUS], - [test "x$HAVE_AUDIT_TTY_STATUS" = xyes]) - - AC_CHECK_HEADERS(xcrypt.h crypt.h) -+AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"], -+ [crypt_libs="xcrypt crypt"], -+ [crypt_libs="crypt"]) -+ - BACKUP_LIBS=$LIBS --AC_SEARCH_LIBS([crypt],[xcrypt crypt], LIBCRYPT="-l$ac_lib", LIBCRYPT="") -+AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="-l$ac_lib", LIBCRYPT="") - AC_CHECK_FUNCS(crypt_r crypt_gensalt_r) --Libs=$BACKUP_LIBS -+LIBS=$BACKUP_LIBS - AC_SUBST(LIBCRYPT) - if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then - AC_DEFINE([HAVE_LIBXCRYPT], 1, [Define to 1 if xcrypt support should be compiled in.]) diff --git a/sys-libs/pam/pam-1.1.1-r2.ebuild b/sys-libs/pam/pam-1.1.1-r2.ebuild deleted file mode 100644 index 53caa835e699..000000000000 --- a/sys-libs/pam/pam-1.1.1-r2.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.1.1-r2.ebuild,v 1.13 2010/10/22 08:01:02 flameeyes Exp $ - -EAPI="3" - -inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic db-use - -MY_PN="Linux-PAM" -MY_P="${MY_PN}-${PV}" - -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" - -SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2 - mirror://kernel/linux/libs/pam/documentation/${MY_P}-docs.tar.bz2" - -LICENSE="|| ( BSD GPL-2 )" -SLOT="0" -KEYWORDS="alpha amd64 arm ~hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb" - -RDEPEND="nls? ( virtual/libintl ) - cracklib? ( >=sys-libs/cracklib-2.8.3 ) - audit? ( sys-process/audit ) - selinux? ( >=sys-libs/libselinux-1.28 ) - berkdb? ( sys-libs/db ) - elibc_glibc? ( >=sys-libs/glibc-2.7 )" -DEPEND="${RDEPEND} - sys-devel/flex - nls? ( sys-devel/gettext )" -PDEPEND="sys-auth/pambase - vim-syntax? ( app-vim/pam-syntax )" -RDEPEND="${RDEPEND} - !sys-auth/pam_userdb" - -S="${WORKDIR}/${MY_P}" - -PROVIDE="virtual/pam" - -check_old_modules() { - local retval="0" - - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then - eerror "" - eerror "Your current setup is using the pam_stack module." - eerror "This module is deprecated and no longer supported, and since version" - eerror "0.99 is no longer installed, nor provided by any other package." - eerror "The package will be built (to allow binary package builds), but will" - eerror "not be installed." - eerror "Please replace pam_stack usage with proper include directive usage," - eerror "following the PAM Upgrade guide at the following URL" - eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" - eerror "" - - retval=1 - fi - - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then - eerror "" - eerror "Your current setup is using one or more of the following modules," - eerror "that are not built or supported anymore:" - eerror "pam_pwdb, pam_console" - eerror "If you are in real need for these modules, please contact the maintainers" - eerror "of PAM through http://bugs.gentoo.org/ providing information about its" - eerror "use cases." - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" - eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" - eerror "" - - retval=1 - fi - - return $retval -} - -pkg_setup() { - check_old_modules -} - -src_prepare() { - # Avoid building xtests during "make all"; note that for what - # we're concerned xtests are not even executed, so we should - # probably use EXTRA_PROGRAMS. - epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch" - - # Fix building on uClibc; it is added since 1.1.1 but applies to - # 1.1.0 as well. - epatch "${FILESDIR}/${MY_PN}-1.1.0-uclibc.patch" - - # Fix tests to find Berkeley DB as installed by Gentoo (with a - # library suffix but no suffix on the ELF symbols). - epatch "${FILESDIR}/${MY_PN}-1.1.1-gentoodb.patch" - - # make it possible to skip libxcrypt detection if header is not - # found - epatch "${FILESDIR}/${MY_PN}-1.1.1-xcrypt.patch" - - # fix building with Berkeley DB 5.0 and later; now defining - # DB_DBM_HSEARCH is not enough; bug #319831 - epatch "${FILESDIR}/${MY_PN}-1.1.1+berkdb-5.patch" - - # fix tally file created executable, see bug #329885 - epatch "${FILESDIR}/${MY_PN}-1.1.1-pam_tally2-mode.patch" - - # Remove libtool-2 libtool macros, see bug 261167 - rm m4/libtool.m4 m4/lt*.m4 || die "rm libtool macros failed." - - eautoreconf - - elibtoolize -} - -src_configure() { - local myconf - - if use hppa || use elibc_FreeBSD; then - myconf="${myconf} --disable-pie" - fi - - # Disable automatic detection of libxcrypt; we _don't_ want the - # user to link libxcrypt in by default, since we won't track the - # dependency and allow to break PAM this way. - export ac_cv_header_xcrypt_h=no - - econf \ - --libdir="${EPREFIX}"/usr/$(get_libdir) \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ - --enable-securedir="${EPREFIX}"/$(get_libdir)/security \ - --enable-isadir="${EPREFIX}"/$(get_libdir)/security \ - $(use_enable nls) \ - $(use_enable selinux) \ - $(use_enable cracklib) \ - $(use_enable audit) \ - $(use_enable debug) \ - $(use_enable berkdb db) \ - --with-db-uniquename=-$(db_findver sys-libs/db) \ - --disable-dependency-tracking \ - --disable-prelude \ - ${myconf} -} - -src_compile() { - emake sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "emake failed" -} - -src_test() { - # explicitly allow parallel-build during testing - emake sepermitlockdir="${EPREFIX}/var/run/sepermit" check || die "emake check failed" -} - -src_install() { - local lib - - emake DESTDIR="${D}" install \ - sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "make install failed" - - # Need to be suid - fperms u+s /sbin/unix_chkpwd - - gen_usr_ldscript -a pam pamc pam_misc - - # create extra symlinks just in case something depends on them... - for lib in pam pamc pam_misc; do - if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then - dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname) - fi - done - - dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS || die - - docinto modules - for dir in modules/pam_*; do - newdoc "${dir}"/README README."$(basename "${dir}")" - done - - # Get rid of the .la files. We certainly don't need them for PAM - # modules, and libpam is installed as a shared object only, so we - # don't need them for static linking either. - find "${D}" -name '*.la' -delete -} - -pkg_preinst() { - check_old_modules || die "deprecated PAM modules still used" -} - -pkg_postinst() { - ewarn "Some software with pre-loaded PAM libraries might experience" - ewarn "warnings or failures related to missing symbols and/or versions" - ewarn "after any update. While unfortunate this is a limit of the" - ewarn "implementation of PAM and the software, and it requires you to" - ewarn "restart the software manually after the update." - ewarn "" - ewarn "You can get a list of such software running a command like" - ewarn " lsof / | egrep 'DEL.*libpam\\.so'" - elog "" - elog "Because of a bug present up to version 1.1.1-r2, you might have" - elog "an executable /var/log/tallylog file. If it is so, you can safely" - elog "correct it by running the command" - elog " chmod -x /var/log/tallylog" - elog "" -} |