|
From: Serge L. <sma...@us...> - 2005-12-26 11:01:26
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5433 Modified Files: Tag: rel-1-2-patches util-linux shadow openssh Added Files: Tag: rel-1-2-patches Linux-PAM cracklib Log Message: - initial Linux-PAM support Index: openssh =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/openssh,v retrieving revision 1.28 retrieving revision 1.28.2.1 diff -u -d -r1.28 -r1.28.2.1 --- openssh 25 Feb 2004 20:10:09 -0000 1.28 +++ openssh 26 Dec 2005 11:01:06 -0000 1.28.2.1 @@ -28,7 +28,7 @@ case $1 in build ) if [ "$CONFIG_OPENSSH" = "y" ]; then - ./configure --prefix=/usr --sysconfdir=/etc/ssh --localstatedir=/var --with-md5-passwords || exit 1 + ./configure --prefix=/usr --sysconfdir=/etc/ssh --localstatedir=/var --with-md5-passwords --with-pam || exit 1 make $PMAKE all || exit 1 strip_debug fi Index: shadow =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/shadow,v retrieving revision 1.16.2.4 retrieving revision 1.16.2.5 diff -u -d -r1.16.2.4 -r1.16.2.5 --- shadow 16 Oct 2005 01:00:15 -0000 1.16.2.4 +++ shadow 26 Dec 2005 11:01:06 -0000 1.16.2.5 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: shadow -# Required-Start: $basebuildtools $libs +# Required-Start: $basebuildtools $libs Linux-PAM # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -26,7 +26,8 @@ case $1 in build ) ./configure --prefix=/usr --disable-nls --with-gnu-ld --enable-shared --enable-shadowgrp \ - --without-selinux || exit 1 + --without-selinux --with-libpam --without-libcrack || exit 1 + make $PMAKE || exit 1 strip_debug @@ -52,7 +53,16 @@ rm -rf $TMPDIR/lib/*.a rm -rf $TMPDIR/lib/*.la cp -dpR etc/{limits,login.access,login.def*,useradd} $ETCDIR/etc/ || exit 1 - sed 's%^#MD5_CRYPT_ENAB.*no%MD5_CRYPT_ENAB yes%' etc/login.defs > $ETCDIR/etc/login.defs && +# sed 's%^#MD5_CRYPT_ENAB.*no%MD5_CRYPT_ENAB yes%' etc/login.defs > $ETCDIR/etc/login.defs && + + for FUNCTION in FAILLOG_ENAB LASTLOG_ENAB MAIL_CHECK_ENAB OBSCURE_CHECKS_ENAB PORTTIME_CHECKS_ENAB \ + QUOTAS_ENAB MOTD_FILE FTMP_FILE NOLOGINS_FILE ENV_HZ PASS_MIN_LEN SU_WHEEL_ONLY \ + CRACKLIB_DICTPATH PASS_CHANGE_TRIES PASS_ALWAYS_WARN CHFN_AUTH ENVIRON_FILE MD5_CRYPT_ENAB + do + sed -i -e "s/^$FUNCTION/# &/" $ETCDIR/etc/login.defs + echo "sed -i -e \"s/^$FUNCTION/# &/\" $ETCDIR/etc/login.defs" + done || exit 1 + rm -rf $TMPDIR/usr/share || exit 1 rm -rf $TMPDIR/lib || exit 1 cp -dpR $TMPDIR/* $CDDIR/ || exit 1 Index: util-linux =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/util-linux,v retrieving revision 1.22.2.1 retrieving revision 1.22.2.2 diff -u -d -r1.22.2.1 -r1.22.2.2 --- util-linux 12 Oct 2004 12:48:44 -0000 1.22.2.1 +++ util-linux 26 Dec 2005 11:01:06 -0000 1.22.2.2 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: util-linux -# Required-Start: $basebuildtools $libs loop-AES +# Required-Start: $basebuildtools $libs loop-AES Linux-PAM # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -40,9 +40,11 @@ ./configure || exit 1 replace_str defines.h "#define ENABLE_NLS" "" if [ "$CONFIG_GCC_ET_DYN" = "y" ]; then - make $PMAKE HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes LDFLAGS="-pie" || exit 1 +# make $PMAKE HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes LDFLAGS="-pie" || exit 1 + make $PMAKE HAVE_PAM=yes HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes LDFLAGS="-pie" || exit 1 else - make $PMAKE HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes || exit 1 +# make $PMAKE HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes || exit 1 + make $PMAKE HAVE_PAM=yes HAVE_SLN=yes ADD_RAW=yes DISABLE_NLS=yes || exit 1 fi strip_debug ;; --- NEW FILE: Linux-PAM --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/Linux-PAM,v $ # $Revision: 1.1.2.1 $ # $Date: 2005/12/26 11:01:06 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: Linux-PAM # Required-Start: $basebuildtools cracklib # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) patch -p1 < $SRCDIR/Linux-PAM-0.99.2.1.patch.bz2 # Linux-PAM-0.99.2.1/modules/pam_echo/pam_echo.c # # #ifndef HOST_NAME_MAX # # define HOST_NAME_MAX 64 # #endif ./configure --enable-static-libpam --with-mailspool=/var/mail \ --enable-read-both-confs --sysconfdir=/etc --with-cracklib --mandir=/usr/share/man make $PMAKE || exit 1 strip_debug # install it in local system, because other programs could need it make install || exit 1 mkdir -p /etc/pam.d || exit 1 cat > /etc/pam.d/other <<-PAM_OTHER auth sufficient pam_rootok.so auth required pam_unix.so nullok account required pam_unix.so session required pam_unix.so password required pam_unix.so nullok PAM_OTHER install -v -m644 /etc/login.defs /etc/login.defs.orig && for FUNCTION in DIALUPS_CHECK_ENAB FAILLOG_ENAB LASTLOG_ENAB MAIL_CHECK_ENAB \ OBSCURE_CHECKS_ENAB PORTTIME_CHECKS_ENAB QUOTAS_ENAB MOTD_FILE \ FTMP_FILE NOLOGINS_FILE NOLOGIN_STR ENV_HZ PASS_MIN_LEN SU_WHEEL_ONLY \ CRACKLIB_DICTPATH PASS_CHANGE_TRIES PASS_ALWAYS_WARN CHFN_AUTH ENVIRON_FILE do sed -i -e "s/^$FUNCTION/# &/" /etc/login.defs done ;; install ) cp -a /lib/libpam*.so* $CDDIR/lib || exit 1 cp -aR /lib/security $CDDIR/lib/ || exit 1 # cp -aR /lib/cracklib $CDDIR/lib/ || exit 1 find $CDDIR/lib/security/ -type f -name '*la' -exec rm -f {} \; cp -aR /etc/security $ETCDIR/etc/ || exit 1 tar vxj -C $ETCDIR/etc/ -f $SRCDIR/pam.d.tar.bz2 || exit 1 for (( a=1; a <= 8 ; a++ )) do cp -a doc/man/*.$a $CDDIR/usr/share/man/man$a/ done ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: cracklib --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/cracklib,v $ # $Revision: 1.1.2.1 $ # $Date: 2005/12/26 11:01:06 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: cracklib # Required-Start: $basebuildtools glibc # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) ./configure --prefix=/usr --datadir=/lib || exit 1 make $PMAKE || exit 1 make install || exit 1 strip_debug zcat $SRCDIR/cracklib-words.gz > /usr/share/dict/words || exit 1 ;; install ) cp -a /usr/lib/libcrack*.so* $CDDIR/lib || exit 1 mkdir -p $CDDIR/lib/cracklib || exit 1 cracklib-format /usr/share/dict/words | cracklib-packer $CDDIR/lib/cracklib/pw_dict || exit 1 ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |