[Lunar-commits] CVS: moonbase/security/Linux-PAM PRE_BUILD, NONE,
1.1 BUILD, 1.6, 1.7 DEPENDS, 1.2, 1.3 DETAILS, 1.5,
1.6 POST_INSTALL, 1.2, 1.3 POST_REMOVE, 1.3, 1.4
Stefan Wold
ratler at lunar-linux.org
Tue Oct 26 19:26:53 UTC 2004
Update of /var/cvs/lunar/moonbase/security/Linux-PAM
In directory espresso.foo-projects.org:/tmp/cvs-serv21708
Modified Files:
BUILD DEPENDS DETAILS POST_INSTALL POST_REMOVE
Added Files:
PRE_BUILD
Log Message:
Heavily revorked PAM, lots of patches to fix some rare bugs. Also comes with a few new useful pam modules such as pam_stack and pam_console. Pam console is patched to work with both tmpfs and devfs. During the comming days pam.d files for other moonbase modules will be modified to accomodate pam_stack feature.
--- NEW FILE: PRE_BUILD ---
validate_source_dir $SOURCE_DIRECTORY &&
mk_source_dir $SOURCE_DIRECTORY &&
unpack $SOURCE &&
cd $SOURCE_DIRECTORY &&
unpack $SOURCE2 &&
# Unpack redhat specific modules
tar -zxf ${MODULE}-patches-${PVERSION}/pam-redhat-${RHVERSION}.tar.gz &&
# Apply our patches
for i in redhat gentoo lunar
do
cat ${MODULE}-patches-${PVERSION}/list.${i}-patches | while read fname
do
patch_it ${MODULE}-patches-${PVERSION}/${i}-patches/${fname} 1
done
done &&
# Copy fresh install-sh from automake
cp /usr/share/automake/install-sh $SOURCE_DIRECTORY
Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/Linux-PAM/BUILD,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- BUILD 9 Jun 2003 14:49:59 -0000 1.6
+++ BUILD 26 Oct 2004 19:26:51 -0000 1.7
@@ -12,18 +12,41 @@
* hard core 0
EOF
+ autoconf &&
./configure --enable-read-both-confs \
--enable-docdir=/usr/share/doc/Linux-PAM \
- --mandir=/usr/share/man &&
+ --mandir=/usr/share/man \
+ --enable-static-libpam &&
+
+ # Is Berk DB installed?
+ if ! module_installed db; then
+ sedit "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:; \
+ s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:; \
+ s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" Make.Rules &&
+ sedit "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:; \
+ s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" _pam_aconf.h
+ else
+ sedit "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:; \
+ s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" Make.Rules &&
+ sedit "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" _pam_aconf.h
+ fi &&
sedit "s/examples//" Makefile &&
sedit "s/read yes//" conf/install_conf &&
sedit "s/read yes//" modules/install_conf &&
- sedit "s/HAVE_LIBCRYPT=no/HAVE_LIBCRYPT=yes/" Make.Rules &&
- sedit "s/DYNAMIC=/DYNAMIC=-fPIC /" Make.Rules &&
make &&
prepare_install &&
- make install
+ make install &&
+
+ # Module documents are nice
+ if [ ! -d /usr/share/doc/Linux-PAM/text ]; then
+ mkdir -p /usr/share/doc/Linux-PAM/text
+ fi &&
+ for i in $SOURCE_DIRECTORY/modules/pam_*/README; do
+ cp -f ${i} /usr/share/doc/Linux-PAM/text/README.$(echo ${i} | awk -F/ '{ print $(NF-1) }')
+ done &&
+
+
set -x
OLD_MD5=`md5sum /etc/security/limits.conf | cut -d " " -f 1-1`
[ "$OLD_MD5" = "a9f7a9bc1db8b300cff38294f577abbd" ] &&
Index: DEPENDS
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/Linux-PAM/DEPENDS,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- DEPENDS 24 Aug 2002 17:51:15 -0000 1.2
+++ DEPENDS 26 Oct 2004 19:26:51 -0000 1.3
@@ -1,4 +1,5 @@
-depends cracklib &&
+depends cracklib &&
+depends glib &&
optional_depends "latex2html" "" "" "to build documentation" &&
optional_depends "teTeX" "" "" "to build documentation" &&
optional_depends "linuxdoc-tools" "" "" "to build documentation"
Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/Linux-PAM/DETAILS,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- DETAILS 5 Oct 2004 09:30:16 -0000 1.5
+++ DETAILS 26 Oct 2004 19:26:51 -0000 1.6
@@ -1,11 +1,18 @@
MODULE=Linux-PAM
VERSION=0.77
+ PVERSION=1.0
+ RHVERSION=0.77-4
SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=$MODULE-patches-$PVERSION.tar.bz2
SOURCE_URL[0]=$KERNEL_URL/pub/linux/libs/pam/pre/library/
SOURCE_URL[1]=ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/
+ SOURCE2_URL=$PATCH_URL/
+ SOURCE_VFY=sha1:e1bce5634692b2f038ce9bc1d7ee087cda328c45
+ SOURCE2_VFY=sha1:698e368e204c1d3668e848ae014f0b8374c37eeb
WEB_SITE=http://www.us.kernel.org/pub/linux/libs/pam
+ MAINTAINER=ratler at lunar-linux.org
ENTERED=20010922
- UPDATED=20021003
+ UPDATED=20041026
PSAFE=no
SHORT="Linux-PAM provides a flexibile authentication mechanism."
cat << EOF
Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/Linux-PAM/POST_INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- POST_INSTALL 20 Aug 2004 08:05:35 -0000 1.2
+++ POST_INSTALL 26 Oct 2004 19:26:51 -0000 1.3
@@ -1,4 +1,4 @@
case $RElin_PAM_AWARE in
- y|Y|j|J) lin --pam
+ y|Y|j|J) lin -c $(find_pam_aware)
;;
esac
Index: POST_REMOVE
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/Linux-PAM/POST_REMOVE,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- POST_REMOVE 5 Aug 2003 01:14:31 -0000 1.3
+++ POST_REMOVE 26 Oct 2004 19:26:51 -0000 1.4
@@ -3,6 +3,6 @@
"then all pam aware modules must be re-linned for" \
"authentication to continue working.${DEFAULT_COLOR}"
if query "Re-lin all Linux-PAM aware modules?" n
- then lin --pam
+ then lin -c $(find_pam_aware)
fi
fi
More information about the Lunar-commits
mailing list