summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-04-04 08:14:21 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-04-04 08:14:21 +0000
commitc1e9121d48ef78e18caf931c8611cfdd2f7dfe28 (patch)
tree1cee47de3e0405789d2253267cf371d12ba6e910 /sys-libs/pam
parentfix kde3 missing things (diff)
downloadgentoo-2-c1e9121d48ef78e18caf931c8611cfdd2f7dfe28.tar.gz
gentoo-2-c1e9121d48ef78e18caf931c8611cfdd2f7dfe28.tar.bz2
gentoo-2-c1e9121d48ef78e18caf931c8611cfdd2f7dfe28.zip
add module build checking again
Diffstat (limited to 'sys-libs/pam')
-rw-r--r--sys-libs/pam/ChangeLog7
-rw-r--r--sys-libs/pam/pam-0.75-r6.ebuild22
2 files changed, 27 insertions, 2 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog
index 5b3c3bc81721..216860a53781 100644
--- a/sys-libs/pam/ChangeLog
+++ b/sys-libs/pam/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/pam
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.4 2002/04/04 06:43:33 jhhudso Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.5 2002/04/04 08:14:21 azarah Exp $
+
+ 04 Apr 2002; M.Schlemmer <azarah@gentoo.org> pam-0.75-r6.ebuild :
+
+ Add module build checking back as we do not want some module to
+ silently fail and lock the user out of his system.
*pam-0.75-r6 (04 Apr 2002)
diff --git a/sys-libs/pam/pam-0.75-r6.ebuild b/sys-libs/pam/pam-0.75-r6.ebuild
index bc4c3a215dfb..b5995f552f75 100644
--- a/sys-libs/pam/pam-0.75-r6.ebuild
+++ b/sys-libs/pam/pam-0.75-r6.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: System Team <system@gentoo.org>
# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r6.ebuild,v 1.1 2002/04/04 06:43:33 jhhudso Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r6.ebuild,v 1.2 2002/04/04 08:14:21 azarah Exp $
S=${WORKDIR}/Linux-PAM-${PV}
S2=${WORKDIR}/pam
@@ -80,6 +80,26 @@ src_install() {
make MANDIR="/usr/share/man" \
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.
+ for x in modules/pam_*
+ do
+ if [ -d ${x} ]
+ then
+ if ! ls -1 ${D}/lib/security/`basename ${x}`*.so
+ then
+ if [ -z "`use berkdb`" ] && \
+ [ "`basename ${x}`" = "pam_userdb" ]
+ then
+ continue
+ fi
+ echo ERROR `basename ${x}` module did not build.
+ exit 1
+ fi
+ fi
+ done
+
dodoc CHANGELOG Copyright README
docinto modules
dodoc modules/README