summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-15 13:49:27 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-15 13:49:27 +0000
commite281a751a6303d47b27ff8b5ce2489e03138d968 (patch)
treea64d4886c558c3bbc28f012063dbd2c3b4c399aa /sys-libs
parentalpha/ia64/sparc stable wrt #205556 (diff)
downloadhistorical-e281a751a6303d47b27ff8b5ce2489e03138d968.tar.gz
historical-e281a751a6303d47b27ff8b5ce2489e03138d968.tar.bz2
historical-e281a751a6303d47b27ff8b5ce2489e03138d968.zip
Remove pam 0.78.
Package-Manager: portage-2.1.4
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/pam/ChangeLog6
-rw-r--r--sys-libs/pam/Manifest32
-rw-r--r--sys-libs/pam/files/digest-pam-0.78-r59
-rw-r--r--sys-libs/pam/files/system-auth.pamd.0.7814
-rw-r--r--sys-libs/pam/pam-0.78-r5.ebuild342
5 files changed, 19 insertions, 384 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog
index e9be6c302066..b1628f1bf68b 100644
--- a/sys-libs/pam/ChangeLog
+++ b/sys-libs/pam/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/pam
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.191 2008/01/13 20:42:57 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.192 2008/01/15 13:49:26 flameeyes Exp $
+
+ 15 Jan 2008; Diego Pettenò <flameeyes@gentoo.org>
+ -files/system-auth.pamd.0.78, -pam-0.78-r5.ebuild:
+ Remove pam 0.78.
13 Jan 2008; Joshua Kinard <kumba@gentoo.org> pam-0.99.9.0.ebuild:
Marked unstable on mips.
diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest
index 72946283f697..2219d18a7dbd 100644
--- a/sys-libs/pam/Manifest
+++ b/sys-libs/pam/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX Linux-PAM-0.99.7.0-disable-regenerate-man.patch 667 RMD160 ad4b61f010ec6f3e8bd9ff137375c64ec594f438 SHA1 7b578fedf5ee73f82575feadfeea7a8d5b98bda0 SHA256 e4deb0732039dd29774248bb33271d578c69b76f86c015e8ffd296fa2bb6be3b
MD5 19573ee9b3a013175631941519534900 files/Linux-PAM-0.99.7.0-disable-regenerate-man.patch 667
RMD160 ad4b61f010ec6f3e8bd9ff137375c64ec594f438 files/Linux-PAM-0.99.7.0-disable-regenerate-man.patch 667
@@ -10,24 +13,13 @@ AUX other.pamd 139 RMD160 d0f52fd0b830c86b0e933ebfaa8c2c1545337e43 SHA1 6d1f1a5f
MD5 2d840b9afde7319bc8a8f7676582af11 files/other.pamd 139
RMD160 d0f52fd0b830c86b0e933ebfaa8c2c1545337e43 files/other.pamd 139
SHA256 3df996d0f5713c92598ac2d3be2b139ec79f3d1e2010bbc53da14c3dd55e64c2 files/other.pamd 139
-AUX system-auth.pamd.0.78 402 RMD160 88a97f51351d0a76c940d3ba032fae133f33a584 SHA1 c421fc1d91a8cac7dbfc84730656219f73aaa22b SHA256 40d7b8409becd389a2ed4b751b85564f03b566ac33ed21c787289da0c4344aeb
-MD5 c3d3871612bfb718a50454c8fba54b64 files/system-auth.pamd.0.78 402
-RMD160 88a97f51351d0a76c940d3ba032fae133f33a584 files/system-auth.pamd.0.78 402
-SHA256 40d7b8409becd389a2ed4b751b85564f03b566ac33ed21c787289da0c4344aeb files/system-auth.pamd.0.78 402
AUX system-auth.pamd.epam 593 RMD160 262c88da0e6ac9ae09f0f1190de2f76396877807 SHA1 926c91cfa56c1480a7fe867ba902a94cf7e36ab7 SHA256 7896556f671ee88582babce4edd851fdc105a101bd8da48d2ef1dfd940b32eca
MD5 81d386f394ad7caa2ad418ac9968ccbe files/system-auth.pamd.epam 593
RMD160 262c88da0e6ac9ae09f0f1190de2f76396877807 files/system-auth.pamd.epam 593
SHA256 7896556f671ee88582babce4edd851fdc105a101bd8da48d2ef1dfd940b32eca files/system-auth.pamd.epam 593
-DIST Linux-PAM-0.78.tar.gz 488936 RMD160 51643a8942267449b884f79804102fad61567df8 SHA1 fee3e519ac19dff64f7b14ecfa69c09d34411ebe SHA256 a18b9f7b45344a4e49d2647c036894cc6578f249fa0cf024763f1140df684d3e
DIST Linux-PAM-0.99.8.1-ldflags-to-libadd.patch.bz2 2556 RMD160 e15c0cccb05e32c5a5bf3946525c65044b7ac627 SHA1 44ddff4111fc24de1e00524bdaae4da6070ce3c7 SHA256 2017cbe72cc3440061446e4edd0cd48ae431a99ba6db2b80e1a19e8e8aebf3a6
DIST Linux-PAM-0.99.8.1.tar.bz2 903827 RMD160 bac7908aebb4671bdf95d0c31086f2ed2d879ef8 SHA1 41ea4d3296cfd0f1709e8b250d5afd3c4e98ef8b SHA256 47abe93a4d451ff6403c04898d386fb568ba7578520c4cf2687122a12e286cd2
DIST Linux-PAM-0.99.9.0.tar.bz2 909240 RMD160 824ff71efd5e4ea29a65462bcab08d41b583e8db SHA1 19876eee4890ec94bf81da8506d24c3762be8860 SHA256 606158db75d5a474ac52a8bd884e27cc2da13edb4e7bc7a1a2f39686cb5568d6
-DIST db-4.3.27.tar.gz 5921872 RMD160 711129871c7edd840184bd5a87fb7bf93c8bb953 SHA1 8fddfe98d5ff7fcdb3fe9e23bb361d8f20a35941 SHA256 6f09e04c5811ad72a2a5c99459340cb2c635e6553520af76fc9e717dd6207244
-DIST pam-0.78-patches-1.6.tar.bz2 91527 RMD160 af880422f7e0f6440debf6885a4e3ca048dc67a9 SHA1 47683aee7734495707e619c111b93e07bcac5d1f SHA256 54241417a9e19b02457b3d9997e6ca24c14da86e22d447873440853a7525c9bb
-EBUILD pam-0.78-r5.ebuild 9749 RMD160 ae9380771b6b831104d7c60d7ebbb7065d72a7b0 SHA1 ad6d842d3f69cecd61c382aaec55d494c2bc7482 SHA256 de1c04b3ba0e91eed61ac1fb0c7bbe755321a286e64cba6026bd8a66faaf74d3
-MD5 d455f402708407f2246fdde26e4a637e pam-0.78-r5.ebuild 9749
-RMD160 ae9380771b6b831104d7c60d7ebbb7065d72a7b0 pam-0.78-r5.ebuild 9749
-SHA256 de1c04b3ba0e91eed61ac1fb0c7bbe755321a286e64cba6026bd8a66faaf74d3 pam-0.78-r5.ebuild 9749
EBUILD pam-0.99.8.1-r1.ebuild 5116 RMD160 859f5c5cfba391d2c3eb70811660d00d742f3688 SHA1 8940a3e7b2e536caa41d09515e728ec3765ed339 SHA256 afa263e0fea95cadaa2a14158858cf75a403b2f650bce460af8d39ac43cb55ed
MD5 d4b8fb4b4e89a3a0a0285e240a9323b6 pam-0.99.8.1-r1.ebuild 5116
RMD160 859f5c5cfba391d2c3eb70811660d00d742f3688 pam-0.99.8.1-r1.ebuild 5116
@@ -36,20 +28,24 @@ EBUILD pam-0.99.9.0.ebuild 5222 RMD160 547d7510e064cc5f4d979b14acac4bddd047dced
MD5 d9992b93171fa1907dd8e7c4550709b1 pam-0.99.9.0.ebuild 5222
RMD160 547d7510e064cc5f4d979b14acac4bddd047dced pam-0.99.9.0.ebuild 5222
SHA256 ed78a0309a76f1d4041aed4d31f583e4f6619fcfa3b57e507223a8114c4d7c77 pam-0.99.9.0.ebuild 5222
-MISC ChangeLog 30781 RMD160 ce67b67d35284d6f20bcd9106c96711a1fe43949 SHA1 5c9d79c1b286150fb5f098396cbe651de0b2e5e2 SHA256 bde1da736025dcd5ffcd47e010a19eb33a498a182645331b0fea4edff596f45c
-MD5 9da4a0e1b32d4be77a5d1f77cc444965 ChangeLog 30781
-RMD160 ce67b67d35284d6f20bcd9106c96711a1fe43949 ChangeLog 30781
-SHA256 bde1da736025dcd5ffcd47e010a19eb33a498a182645331b0fea4edff596f45c ChangeLog 30781
+MISC ChangeLog 30911 RMD160 ba59ff5fee3e1cd6529a287690888c61ea285d54 SHA1 db8dd1a12d88cfbbd7095dea3367de1b8d1e3414 SHA256 a6f8e7793cbf2a61aa7e0263b34c42cc9acc14ff962a175c9d74e5848cea3151
+MD5 c6dd48514245b8d0d707fbe92f82a77e ChangeLog 30911
+RMD160 ba59ff5fee3e1cd6529a287690888c61ea285d54 ChangeLog 30911
+SHA256 a6f8e7793cbf2a61aa7e0263b34c42cc9acc14ff962a175c9d74e5848cea3151 ChangeLog 30911
MISC metadata.xml 218 RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c SHA1 02dacc356a39905402083cb54ae4f6dd0ac59fad SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c
MD5 393d06cf4b76671f8e6ce72ac71bdad8 metadata.xml 218
RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c metadata.xml 218
SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c metadata.xml 218
-MD5 5948f642c2a6e7a45646c9860a69f61c files/digest-pam-0.78-r5 738
-RMD160 bc9e43bdc87f1d2454c68f6ca6d549dc6382ac89 files/digest-pam-0.78-r5 738
-SHA256 5e7344a0fadf2759cfa59a741d3342821b929c927c175b4e3606d520750af04c files/digest-pam-0.78-r5 738
MD5 12f5aae84df52512f8f6974e24fa4975 files/digest-pam-0.99.8.1-r1 572
RMD160 5497daf31e6a6c22666436adb16ca7d6668058c1 files/digest-pam-0.99.8.1-r1 572
SHA256 1358afedddbaf1ad62f0ff02b2bf6ade5be96d36de8c7559fcaadaa25fb0a18d files/digest-pam-0.99.8.1-r1 572
MD5 82bffd37a6ec0bf449714acb6fd9b378 files/digest-pam-0.99.9.0 259
RMD160 e63ecd0cb90f7cb8ac23f197c1090a4d1603db39 files/digest-pam-0.99.9.0 259
SHA256 0ff0abf40c054b597a873b33cef50f2caae4f49b0056c736134b522332a5a371 files/digest-pam-0.99.9.0 259
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHjLnzAiZjviIA2XgRAj91AKCJfwiqlUPVqyi/5qdMNQhb3iHxOQCgm7AK
+Jlw/NrDLF+xPcbX3uz4WR88=
+=SS52
+-----END PGP SIGNATURE-----
diff --git a/sys-libs/pam/files/digest-pam-0.78-r5 b/sys-libs/pam/files/digest-pam-0.78-r5
deleted file mode 100644
index 598e12bc452b..000000000000
--- a/sys-libs/pam/files/digest-pam-0.78-r5
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 58cd055892e97648651d5a318888f3a0 Linux-PAM-0.78.tar.gz 488936
-RMD160 51643a8942267449b884f79804102fad61567df8 Linux-PAM-0.78.tar.gz 488936
-SHA256 a18b9f7b45344a4e49d2647c036894cc6578f249fa0cf024763f1140df684d3e Linux-PAM-0.78.tar.gz 488936
-MD5 fcc481d52c3b80e20a328f8c0cb042bd db-4.3.27.tar.gz 5921872
-RMD160 711129871c7edd840184bd5a87fb7bf93c8bb953 db-4.3.27.tar.gz 5921872
-SHA256 6f09e04c5811ad72a2a5c99459340cb2c635e6553520af76fc9e717dd6207244 db-4.3.27.tar.gz 5921872
-MD5 aa8983563b7d6f4904a26d2b5c7448bd pam-0.78-patches-1.6.tar.bz2 91527
-RMD160 af880422f7e0f6440debf6885a4e3ca048dc67a9 pam-0.78-patches-1.6.tar.bz2 91527
-SHA256 54241417a9e19b02457b3d9997e6ca24c14da86e22d447873440853a7525c9bb pam-0.78-patches-1.6.tar.bz2 91527
diff --git a/sys-libs/pam/files/system-auth.pamd.0.78 b/sys-libs/pam/files/system-auth.pamd.0.78
deleted file mode 100644
index 7f7e689d7e6e..000000000000
--- a/sys-libs/pam/files/system-auth.pamd.0.78
+++ /dev/null
@@ -1,14 +0,0 @@
-#%PAM-1.0
-
-auth required pam_env.so
-auth sufficient pam_unix.so likeauth nullok
-auth required pam_deny.so
-
-account required pam_unix.so
-
-password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
-password sufficient pam_unix.so nullok md5 shadow use_authtok
-password required pam_deny.so
-
-session required pam_limits.so
-session required pam_unix.so
diff --git a/sys-libs/pam/pam-0.78-r5.ebuild b/sys-libs/pam/pam-0.78-r5.ebuild
deleted file mode 100644
index 8acc7738ac87..000000000000
--- a/sys-libs/pam/pam-0.78-r5.ebuild
+++ /dev/null
@@ -1,342 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.78-r5.ebuild,v 1.21 2007/12/20 15:45:36 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.6"
-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/"
-
-S="${WORKDIR}/Linux-PAM-${PV}"
-S2="${WORKDIR}/pam-${PV}-patches"
-SRC_URI="mirror://kernel/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 )"
-
-LICENSE="PAM"
-SLOT="0"
-KEYWORDS="mips"
-IUSE="berkdb pwdb selinux pam_chroot pam_timestamp nis"
-
-RDEPEND=">=sys-libs/cracklib-2.8.3
- selinux? ( >=sys-libs/libselinux-1.28 )
- berkdb? ( >=sys-libs/db-${BDB_VER2} )
- pwdb? ( >=sys-libs/pwdb-0.62 )
- !sys-auth/pam_userdb
- !sys-auth/pam_chroot"
-
-# Note that we link to static versions of and pwdb (pam_pwdb.so)
-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 eutils toolchain-funcs flag-o-matic gnuconfig pam
-
-DESCRIPTION="Pluggable Authentication Modules"
-
-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
-
- 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
- epatch ${S2}/gentoo-patches/pam-0.78-selinux-getseuserbyname.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_timestamp; do
- use "${x}" || rm -rf "${S}/modules/${x}"
- done
- rm -rf "${S}/modules/pam_console"
- 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 berkdb ; 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}
-
- newpamd "${FILESDIR}/system-auth.pamd.0.78" system-auth
- newpamd "${FILESDIR}/other.pamd" other
-
- # Only add this one if needed.
- if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then
- newpamd "${FILESDIR}/system-auth.pamd.0.78" system-auth.new || \
- die "Failed to install system-auth.new!"
- fi
-
- insinto /etc/security
- doins "${S2}/gentoo-extrafiles/pam_env.conf"
- 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/
-}
-
-pkg_postinst() {
- echo
- elog "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
-}