|
From: Heiko Z. <smi...@us...> - 2005-10-01 04:01:34
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23951/scripts Modified Files: Tag: rel-1-2-patches man-pages pptp-patches samba snort Added Files: Tag: rel-1-2-patches freeradius krb5 Removed Files: Tag: rel-1-2-patches heimdal Log Message: - removed heimdal - updated clamav to 0.87 - updated ebtables-brnf to 11-2_vs_2.4.31 - added krb5 to 1.4.2 - updated Mail-SpamAssassin to 3.1.0 - updated samba to 3.0.20 - updated sg3_utils to 1.17 - updated snort to 2.4.2 - updated squid to 2.5.STABLE11 - updated stunnel to 4.12 - updated tftp-hpa to 0.40.1 - updated whois to 4.7.8.1 - updated i2c and lm_sensors to 2.9.2 - added freeradius 1.05 (Heiko + Marcel Wiget) - fixed missing man-pages (Heiko / Serge Leschinsky) - added samba smbldap-tools (Heiko / Thomas Eder) - fixed ppp mppe/mppc patch (Heiko / Serge Leschinsky) --- NEW FILE: krb5 --- #!/bin/bash # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: krb5 # Required-Start: $basebuildtools glibc openssl zlib # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: Kerberos 5 implementation ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=KERBEROS5 case $1 in build ) if [ "$CONFIG_KERBEROS5" = "y" ]; then cd src || exit 1 FLAG=gcc #if [ "$CONFIG_GCC_STACK_PROTECTOR" = "y" ]; then # FLAG="gcc -fno-stack-protector" #fi ./configure --prefix=/usr --localstatedir=/var --enable-dns --enable-dns-for-kdc --enable-dns-for-realm --enable-kdc-replay-cache \ --enable-shared --bindir=/usr/bin/krb5 --sbindir=/usr/sbin/krb5 --libexecdir=/usr/libexec/krb5 || exit 1 make "CC=$FLAG" all || exit 1 strip_debug mkdir -p $WORKDIR/LIBS/krb5 || exit 1 make install DESTDIR=$WORKDIR/LIBS/krb5/ fi ;; install ) if [ "$CONFIG_KERBEROS5" = "y" ]; then cd src || exit 1 rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR/usr/sbin || exit 1 make install DESTDIR=$TMPDIR || exit 1 cp -dpR $TMPDIR/usr/share/* $CDDIR/usr/share/ || exit 1 rm -rf $TMPDIR/usr/share || exit 1 copy_docs $TMPDIR rm -rf $TMPDIR/usr/include || exit 1 rm -rf $TMPDIR/usr/lib/*a || exit 1 copy_files $TMPDIR/usr $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: samba =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/samba,v retrieving revision 1.24.2.2 retrieving revision 1.24.2.3 diff -u -d -r1.24.2.2 -r1.24.2.3 --- samba 6 Sep 2004 02:31:15 -0000 1.24.2.2 +++ samba 1 Oct 2005 00:29:20 -0000 1.24.2.3 @@ -30,6 +30,7 @@ if [ "$CONFIG_SAMBA" = "y" ]; then cd source ./configure --prefix=/usr --localstatedir=/var --with-configdir=/etc/samba --with-privatedir=/etc/samba --with-lockdir=/etc/samba/lock \ + --with-ldapsam \ --with-fhs --with-smbmount --with-libsmbclient --with-ssl --with-syslog --with-utmp --with-msdfs \ --with-acl-support --with-winbind --with-quotas --with-vfs --with-smbwrapper \ --with-logfilebase=/var/log --with-swatdir=/usr/share/samba/swat || exit 1 --- heimdal DELETED --- Index: pptp-patches =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/Attic/pptp-patches,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -u -d -r1.15 -r1.15.2.1 --- pptp-patches 16 Jan 2004 21:22:00 -0000 1.15 +++ pptp-patches 1 Oct 2005 00:29:20 -0000 1.15.2.1 @@ -29,11 +29,11 @@ build ) if [ "$CONFIG_PPP" = "y" ]; then if [ "$CONFIG_POPTOP" = "y" ] || [ "$CONFIG_PPTP_CLIENT" = "y" ]; then - PPPDIR=$(find_src_dir ppp) - PATCHDIR=$(pwd) - cd mppe - yes "" | ./mppeinstall.sh $KERNELDIR || exit 1 - echo "CONFIG_PPP_MPPE=m" >> $KERNELDIR/.config || exit 1 + + pushd $KERNELDIR || exit 1 + zcat $SRCDIR/linux-2.4.29-mppe-mppc-1.3.patch.gz | patch -p1 || exit 1 + + echo "CONFIG_PPP_MPPE_MPPC=m" >> $KERNELDIR/.config || exit 1 fi fi ;; Index: snort =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/snort,v retrieving revision 1.15.2.2 retrieving revision 1.15.2.3 diff -u -d -r1.15.2.2 -r1.15.2.3 --- snort 26 Nov 2004 16:59:15 -0000 1.15.2.2 +++ snort 1 Oct 2005 00:29:20 -0000 1.15.2.3 @@ -40,27 +40,12 @@ install ) if [ "$CONFIG_SNORT" = "y" ]; then - rm -rf $WORKDIR/tmp || exit 1 - mkdir -p $WORKDIR/tmp || exit 1 - make install DESTDIR=$WORKDIR/tmp || exit 1 - copy_docs $WORKDIR/tmp - copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 - rm -rf $WORKDIR/tmp || exit 1 - - mkdir -p $CDDIR/usr/share/snort/rules - cp -dpR ./rules/ $CDDIR/usr/share/snort || exit 1 - rm -rf $CDDIR/usr/share/snort/rules/Makefil* || exit 1 - - mkdir -p $ETCDIR/etc/snort || exit 1 - cp ./etc/* $ETCDIR/etc/snort/ || exit 1 - rm -rf $ETCDIR/etc/snort/Makefil* || exit 1 - cp $MYDIR/scripts/snort $ETCDIR/etc/init.d || exit 1 - - for FILE in $(ls $CDDIR/usr/share/snort/rules/* ) - do - F=${FILE##/*/} - ln -sf /usr/share/snort/rules/$F $ETCDIR/etc/snort/$F - done + rm -rf $TMPDIR || exit 1 + mkdir -p $TMPDIR || exit 1 + make install DESTDIR=$TMPDIR || exit 1 + copy_docs $TMPDIR + copy_files $TMPDIR/usr $CDDIR/ || exit 1 + rm -rf $TMPDIR || exit 1 echo "# Start Snort?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE Index: man-pages =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/man-pages,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -u -d -r1.7 -r1.7.2.1 --- man-pages 11 Jan 2004 14:43:04 -0000 1.7 +++ man-pages 1 Oct 2005 00:29:20 -0000 1.7.2.1 @@ -65,6 +65,21 @@ gzip -9 -f $FILE &> /dev/null fi done + +# Try to fix symlinks broken after gzipping + pushd $CDDIR/usr/share/man + for a in `ls $CDDIR/usr/share/man`; do + pushd $a + for i in `find -exec file {} \; | grep "broken symbolic link" | awk ' {print $1}' | tr -s "[:]" "\040"` ; do + $(`ls -la $i | awk ' { print "ln -sf " $11 ".gz", $9} '`) + done + popd + done + popd + +# Set correct permissions + find $CDDIR/usr/share/man/ -type f -exec chmod 644 {} \; + ;; * ) --- NEW FILE: freeradius --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/freeradius,v $ # $Revision: 1.1.2.1 $ # $Date: 2005/10/01 00:29:20 $ # http://www.devil-linux.org # freeradius added by Marcel Wiget <mw...@ma...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: freeradius # Required-Start: $basebuildtools $libs # 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 MYNAME=FREERADIUS case $1 in build ) if [ "$CONFIG_FREERADIUS" = "y" ]; then ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc || exit 1 #--with-rlm-krb5-include-dir=/usr/include/heimdal || exit 1 make all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_FREERADIUS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 R=$WORKDIR/tmp make install || exit 1 copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 copy_files $WORKDIR/tmp/var $CDDIR/ || exit 1 copy_files $WORKDIR/tmp/etc/raddb $ETCDIR/etc/ || exit 1 cp scripts/rc.radiusd $ETCDIR/etc/init.d/freeradius || exit 1 echo "# start freeradius?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_$MYNAME=\"$MYNAME is a AAA server.\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |