diff options
-rw-r--r-- | sys-libs/pam/Manifest | 5 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.0-debug.patch | 13 | ||||
-rw-r--r-- | sys-libs/pam/files/Linux-PAM-1.1.0-nonls.patch | 11 | ||||
-rw-r--r-- | sys-libs/pam/pam-1.1.0.ebuild | 164 |
4 files changed, 193 insertions, 0 deletions
diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest index f8d738b..0869c8d 100644 --- a/sys-libs/pam/Manifest +++ b/sys-libs/pam/Manifest @@ -3,7 +3,12 @@ AUX Linux-PAM-0.99.8.1-xtests.patch 726 RMD160 4740f7039305c2520add212a576c9f16e AUX Linux-PAM-1.0.2-noyp.patch 7368 RMD160 6b5b2096670775cb0425ecbc46c33370fbe5bb55 SHA1 1225c8db75a4830767fbb0cbf8d89e4209651810 SHA256 a4c848f42bc8318344514de319473d2fce5d7e7c7ba5d4a03d60545c643b6425 AUX Linux-PAM-1.0.4-cross-compile.patch 959 RMD160 ab3a1bb8dd3d5a376c47fda06651a2b0c71e523f SHA1 ef4f6bd20cbb89a4523b539cf65b3fd49df3489f SHA256 00ac02f33279b9961f2fe60b70e86e38b315850596d5e8b049d9237fccb7d5e1 AUX Linux-PAM-1.0.4-fix-tests.patch 377 RMD160 8e8a27b78f02e4f8ed7e69f150e3ce5d4bd0a023 SHA1 aeae82aa6a298b899273dea6e99e4e1b2b446a38 SHA256 c0ff81fdf941c179f22050f2c5081ad4c70bbabb1aa29d3a64f87d0ab2e8060c +AUX Linux-PAM-1.1.0-debug.patch 565 RMD160 545e499fa45d7ec568387f4ee4fd8474cbfb3210 SHA1 31ee0fab111e55e6df270bb0483ef586d3177472 SHA256 8452c6397bb7dcbd1b7f9dd87c4021014d70adf0ceba6326c7428937503db3e9 +AUX Linux-PAM-1.1.0-nonls.patch 367 RMD160 80ff3ce536e3bf3cb4e4448bf1062972b2b143bf SHA1 f67af3138312092514f61212073392779084d877 SHA256 7777ca2a86e716ee4cc5b2059d45bd526d8d887a81f5ec083a59076245c4a429 AUX other.pamd 139 RMD160 d0f52fd0b830c86b0e933ebfaa8c2c1545337e43 SHA1 6d1f1a5f55c65f13b7fd35396c7f302c1946116e SHA256 3df996d0f5713c92598ac2d3be2b139ec79f3d1e2010bbc53da14c3dd55e64c2 AUX system-auth.pamd.epam 593 RMD160 262c88da0e6ac9ae09f0f1190de2f76396877807 SHA1 926c91cfa56c1480a7fe867ba902a94cf7e36ab7 SHA256 7896556f671ee88582babce4edd851fdc105a101bd8da48d2ef1dfd940b32eca DIST Linux-PAM-1.0.4.tar.bz2 1004979 RMD160 8eacf6344663c0ce2f42d374d82d717211ca10e5 SHA1 60146a363b653324d4477dce4a3e999834a2d713 SHA256 13136d438f5748d08dcb2227e44e53a3c611351b96e11891052e0c8c2557f3ca +DIST Linux-PAM-1.1.0-docs.tar.bz2 494697 RMD160 324f4cdabbaaa85ac5afca9babea1bfe21e32285 SHA1 56cdc680d48a3dc1ffbd9becb855a4724d5f39ad SHA256 7d8e4455cf44937ccc0c7fb370d469c9bef33c68979b23f706fb37727bf8812b +DIST Linux-PAM-1.1.0.tar.bz2 1106379 RMD160 b57473ac39ef5c5ec22459e78e00abdbead396e5 SHA1 1ef5b91bf483ecf31e8f07c3c0322b397b13af70 SHA256 139b1abb0f1c402e443ad9083b5ff0512f4a5ae7bc806528e9d7eced13384ed7 EBUILD pam-1.0.4.ebuild 5903 RMD160 7648a493da401d5c1510300d656979be3cf408b6 SHA1 eb745c0d87631d6d60503c1d64cf9dca68bb0308 SHA256 b6ec7a808780caa66ee91154542fd183d099abe1e47b0401e02618eeeb0d45b1 +EBUILD pam-1.1.0.ebuild 4998 RMD160 db5d7014253428326f8ac1eb0448030583fa425c SHA1 f88307702510ac4d294d7d82010ee6559c6cf017 SHA256 6265cdae5b871bed62c80bb4c0710c29c74b685bb94ded007a839861337f41a5 diff --git a/sys-libs/pam/files/Linux-PAM-1.1.0-debug.patch b/sys-libs/pam/files/Linux-PAM-1.1.0-debug.patch new file mode 100644 index 0000000..ec9f99b --- /dev/null +++ b/sys-libs/pam/files/Linux-PAM-1.1.0-debug.patch @@ -0,0 +1,13 @@ +Index: Linux-PAM-1.1.0/modules/pam_env/pam_env.c +=================================================================== +--- Linux-PAM-1.1.0.orig/modules/pam_env/pam_env.c ++++ Linux-PAM-1.1.0/modules/pam_env/pam_env.c +@@ -120,7 +120,7 @@ _pam_parse (const pam_handle_t *pamh, in + "user_envfile= specification missing argument - ignored"); + } else { + *user_envfile = 13+*argv; +- D(("new User Env File: %s", *user_env_file)); ++ D(("new User Env File: %s", *user_envfile)); + } + } else if (!strncmp(*argv,"readenv=",8)) + *readenv = atoi(8+*argv); diff --git a/sys-libs/pam/files/Linux-PAM-1.1.0-nonls.patch b/sys-libs/pam/files/Linux-PAM-1.1.0-nonls.patch new file mode 100644 index 0000000..d52b6a0 --- /dev/null +++ b/sys-libs/pam/files/Linux-PAM-1.1.0-nonls.patch @@ -0,0 +1,11 @@ +--- Linux-PAM-1.1.0/modules/pam_lastlog/pam_lastlog.c.orig ++++ Linux-PAM-1.1.0/modules/pam_lastlog/pam_lastlog.c +@@ -471,7 +471,7 @@ last_login_failed(pam_handle_t *pamh, in + failed), + failed); + #else +- if (daysleft == 1) ++ if (failed == 1) + retval = asprintf(&line, + _("There was %d failed login attempt since the last successful login."), + failed); diff --git a/sys-libs/pam/pam-1.1.0.ebuild b/sys-libs/pam/pam-1.1.0.ebuild new file mode 100644 index 0000000..9457ed6 --- /dev/null +++ b/sys-libs/pam/pam-1.1.0.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.1.0.ebuild,v 1.5 2009/06/21 16:50:28 flameeyes Exp $ + +inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic + +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="PAM" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug" + +RDEPEND="nls? ( virtual/libintl ) + cracklib? ( >=sys-libs/cracklib-2.8.3 ) + audit? ( sys-process/audit ) + selinux? ( >=sys-libs/libselinux-1.28 ) + 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 )" + +S="${WORKDIR}/${MY_P}" + +PROVIDE="virtual/pam" + +check_old_modules() { + local retval="0" + + if sed -e 's:#.*::' "${ROOT}"/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 "" + ebeep 15 + + retval=1 + fi + + if sed -e 's:#.*::' "${ROOT}"/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 "" + ebeep 10 + + retval=1 + fi + + return $retval +} + +pkg_setup() { + check_old_modules +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # 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" + + # Remove NIS dependencies, see bug #235431 + epatch "${FILESDIR}/${MY_PN}-1.0.2-noyp.patch" + + # Fix building with debug USE flag enabled + epatch "${FILESDIR}/${MY_PN}-1.1.0-debug.patch" + + # Fix building with nls USE flag disabled + epatch "${FILESDIR}/${MY_PN}-1.1.0-nonls.patch" + + # Fix building of doc/specs + epatch "${FILESDIR}/${MY_PN}-1.0.4-cross-compile.patch" + + # Remove libtool-2 libtool macros, see bug 261167 + rm m4/libtool.m4 m4/lt*.m4 || die "rm libtool macros failed." + + AT_M4DIR="m4" eautoreconf + + elibtoolize +} + +src_compile() { + local myconf + + if use hppa || use elibc_FreeBSD; then + myconf="${myconf} --disable-pie" + fi + + econf \ + --libdir=/usr/$(get_libdir) \ + --docdir=/usr/share/doc/${PF} \ + --htmldir=/usr/share/doc/${PF}/html \ + --enable-securedir=/$(get_libdir)/security \ + --enable-isadir=/$(get_libdir)/security \ + $(use_enable nls) \ + $(use_enable selinux) \ + $(use_enable cracklib) \ + $(use_enable audit) \ + $(use_enable debug) \ + --disable-db \ + --disable-dependency-tracking \ + --disable-prelude \ + ${myconf} || die "econf failed" + emake sepermitlockdir="/var/run/sepermit" || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install \ + sepermitlockdir="/var/run/sepermit" || die "make install failed" + + # Need to be suid + fperms u+s /sbin/unix_chkpwd + + dodir /$(get_libdir) + mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/" + mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/" + mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/" + gen_usr_ldscript libpam.so libpamc.so libpam_misc.so + + dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS || die + + docinto modules + for dir in modules/pam_*; do + newdoc "${dir}"/README README."$(basename "${dir}")" + done + + # Remove the wrongly installed manpages + rm "${D}"/usr/share/man/man8/pam_userdb.8* + use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8* + + # 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 ned them for static linking either. + find "${D}" -name '*.la' -delete +} + +pkg_preinst() { + check_old_modules || die "deprecated PAM modules still used" +} |