|
From: Heiko Z. <smi...@us...> - 2005-10-04 02:49:53
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29669/scripts Modified Files: cyrus-imapd cyrus-sasl e2fsprogs linux man-pages ntp samba snort util-linux Added Files: freeradius krb5 pptp-patches Removed Files: heimdal Log Message: lot's of updates to get the compile working again --- 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 e2fsprog # 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 ./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 --with-system-et || exit 1 make all || exit 1 strip_debug make install || exit 1 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.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- samba 12 Dec 2004 21:48:09 -0000 1.26 +++ samba 4 Oct 2005 02:49:43 -0000 1.27 @@ -30,9 +30,10 @@ 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 + --with-logfilebase=/var/log --with-swatdir=/usr/share/samba/swat --with-krb5=/usr/include || exit 1 make proto || exit 1 make $PMAKE || exit 1 strip_debug @@ -42,24 +43,25 @@ install ) if [ "$CONFIG_SAMBA" = "y" ]; then cd source - rm -rf $TMPDIR || exit 1 - mkdir -p $TMPDIR/usr/{bin,sbin,lib,share} || exit 1 - mkdir -p $TMPDIR/usr/share/samba || exit 1 - make install DESTDIR=$TMPDIR || exit + rm -rf $WORKDIR/tmp || exit 1 + mkdir -p $WORKDIR/tmp/usr/{bin,sbin,lib,share} || exit 1 + mkdir -p $WORKDIR/tmp/usr/share/samba || exit 1 + make install DESTDIR=$WORKDIR/tmp || exit - rm -rf $TMPDIR/sbin/mount.smbfs || exit 1 - ln -sf /usr/bin/smbmount $TMPDIR/sbin/mount.smbfs || exit 1 + rm -rf $WORKDIR/tmp/sbin/mount.smbfs || exit 1 + ln -sf /usr/bin/smbmount $WORKDIR/tmp/sbin/mount.smbfs || exit 1 - copy_docs $TMPDIR - rm -rf $TMPDIR/usr/include || exit 1 - rm -rf $TMPDIR/usr/private || exit 1 - copy_files $TMPDIR/usr/share/samba $CDDIR/usr/share || exit 1 - rm -rf $TMPDIR/usr/share/samba || exit 1 + copy_docs $WORKDIR/tmp + rm -rf $WORKDIR/tmp/usr/include || exit 1 + rm -rf $WORKDIR/tmp/usr/private || exit 1 + copy_files $WORKDIR/tmp/usr/share/samba $CDDIR/usr/share || exit 1 + rm -rf $WORKDIR/tmp/usr/share/samba || exit 1 mkdir -p $CDDIR/var/lock/samba || exit 1 - copy_files $TMPDIR/usr $CDDIR/ || exit 1 - copy_files $TMPDIR/sbin $CDDIR/ || exit 1 - rm -rf $TMPDIR || exit 1 + copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 + copy_files $WORKDIR/tmp/sbin $CDDIR/ || exit 1 + rm -rf $WORKDIR/tmp || exit 1 mkdir -p $CDDIR/lib || exit 1 + mkdir -p $CDDIR/var/log/samba || exit 1 cp nsswitch/libnss_winbind.so $CDDIR/lib || exit 1 ln -sf libnss_winbind.so $CDDIR/lib/libnss_winbind.so.2 || exit 1 Index: ntp =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/ntp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ntp 26 Jul 2005 18:47:46 -0000 1.20 +++ ntp 4 Oct 2005 02:49:43 -0000 1.21 @@ -28,6 +28,10 @@ case $1 in build ) if [ "$CONFIG_NTP" = "y" ]; then + if [ ! -f dl-patch.done ]; then + bzcat $DL_DIR/src/ntpconfig-phone.patch.bz2 | patch -p0 || exit 1 + touch dl-patch.done + fi ./configure --prefix=/usr --enable-all-clocks --enable-parse-clocks || exit 1 make $PMAKE all || exit 1 strip_debug Index: cyrus-sasl =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/cyrus-sasl,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- cyrus-sasl 12 Dec 2004 21:48:08 -0000 1.16 +++ cyrus-sasl 4 Oct 2005 02:49:42 -0000 1.17 @@ -28,7 +28,8 @@ case $1 in build ) if [ "$CONFIG_CYRUS_SASL" = "y" ]; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-krb4 --enable-shared --disable-static --with-saslauthd --with-pwcheck || exit 1 + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-krb4 --enable-shared \ + --disable-static --with-saslauthd --with-pwcheck || exit 1 # parallel builds cause problems make all || exit 1 strip_debug --- heimdal DELETED --- Index: e2fsprogs =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/e2fsprogs,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- e2fsprogs 12 Dec 2004 21:48:08 -0000 1.18 +++ e2fsprogs 4 Oct 2005 02:49:42 -0000 1.19 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: e2fsprogs -# Required-Start: $basebuildtools $libs +# Required-Start: $basebuildtools glibc zlib # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -35,12 +35,14 @@ make clean #export PATH=$OLDPATH - ./configure --prefix= --disable-nls --disable-debugfs || exit 1 - # --enable-elf-shlibs + ./configure --prefix= --disable-nls --disable-debugfs --enable-elf-shlibs || exit 1 make $PMAKE all || exit 1 strip_debug # make sure the system has the actual files - make install || exit + make install DESTDIR=/usr || exit + make install-libs DESTDIR=/usr || exit + # com_err.h must be found in /usr/include, so let's create a symlink + ln -sf /usr/include/et/com_err.h /usr/include || exit 1 ;; install ) --- NEW FILE: pptp-patches --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pptp-patches,v $ # $Revision: 1.17 $ # $Date: 2005/10/04 02:49:43 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pptp-patches # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 # 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 ) if [ "$CONFIG_PPP" = "y" ]; then if [ "$CONFIG_POPTOP" = "y" ] || [ "$CONFIG_PPTP_CLIENT" = "y" ]; then pushd $KERNELDIR || exit 1 zcat $SRCDIR/linux-2.6.*-mppe-mppc-*.patch.gz | patch -p1 || exit 1 echo "CONFIG_PPP_MPPE_MPPC=m" >> $KERNELDIR/.config || exit 1 fi fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: snort =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/snort,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- snort 12 Dec 2004 21:48:09 -0000 1.18 +++ snort 4 Oct 2005 02:49:43 -0000 1.19 @@ -47,22 +47,11 @@ copy_files $TMPDIR/usr $CDDIR/ || exit 1 rm -rf $TMPDIR || 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 + mkdir -p $ETCDIR/etc/snort/rules | 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 - echo "# Start Snort?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# on which interfaces should snort listen?" >> $CONFIGFILE Index: linux =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/linux,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- linux 11 Jan 2005 02:30:56 -0000 1.57 +++ linux 4 Oct 2005 02:49:43 -0000 1.58 @@ -28,10 +28,6 @@ case $1 in build ) - if [ "$CONFIG_LINUX_VERSION" = "2.4" ] && [ ! -e include/linux/linux_logo.h.org ]; then - cp -f include/linux/linux_logo.h include/linux/linux_logo.h.org - fblogo $DL_DIR/other/fblogo.png include/linux/linux_logo.h - fi if [ -e .config.add ]; then # append settings from other progs to config file cat .config.add >> .config || exit 1 Index: cyrus-imapd =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/cyrus-imapd,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- cyrus-imapd 12 Dec 2004 21:48:08 -0000 1.27 +++ cyrus-imapd 4 Oct 2005 02:49:42 -0000 1.28 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: cyrus-imapd -# Required-Start: $basebuildtools $libs +# Required-Start: $basebuildtools $libs e2fsprogs # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -36,7 +36,8 @@ ln -sf /usr/include/et/com_err.h /usr/include || exit 1 export CFLAGS=-pthread export LDFLAGS=-pthread - ./configure --prefix=/usr --with-cyrus-prefix=/usr/lib/cyrus --with-cyrus-user=cyrus --with-cyrus-group=mail --enable-shared --enable-netscapehack \ + ./configure --prefix=/usr --with-cyrus-prefix=/usr/lib/cyrus --with-cyrus-user=cyrus --with-cyrus-group=mail \ + --enable-shared --enable-netscapehack \ --with-auth=unix --enable-listext --enable-annotatemore --enable-fulldirhash --enable-sieve || exit 1 make depend # parallel build fails, do not use $PMAKE Index: man-pages =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/man-pages,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- man-pages 11 Jan 2004 14:43:04 -0000 1.7 +++ man-pages 4 Oct 2005 02:49:43 -0000 1.8 @@ -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 {} \; + ;; * ) Index: util-linux =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/util-linux,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- util-linux 30 Sep 2005 22:59:06 -0000 1.34 +++ util-linux 4 Oct 2005 02:49:43 -0000 1.35 @@ -38,10 +38,14 @@ ./configure || exit 1 replace_str defines.h "#define ENABLE_NLS" "" + + cd lib || exit 1 + make all || exit 1 + cd .. cd mount || exit 1 make clean - make LDFLAGS="-static" || exit 1 + make LDFLAGS="-static" all || exit 1 cp losetup losetup-static || exit 1 cp mount mount-static || exit 1 cp umount umount-static || exit 1 --- NEW FILE: freeradius --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/freeradius,v $ # $Revision: 1.2 $ # $Date: 2005/10/04 02:49:43 $ # 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 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 |