From: Heiko Z. <smi...@us...> - 2006-04-15 01:23:19
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27325/scripts Modified Files: Tag: rel-1-2-patches rsync Added Files: Tag: rel-1-2-patches aide awstats curl logwatch nut scponly Log Message: - added aide 0.11a (Heiko + Dr. Alberto Benati) - added awstats 6.5 (Heiko + Dr. Alberto Benati) - updated clamav to 0.88.1 - added curl 7.15.3 (Heiko + Dr. Alberto Benati) - updated libpng to 1.2.9 - added logwatch 7.3 (Heiko + Dr. Alberto Benati) - added nut 2.0.3 (Heiko + Dr. Alberto Benati) - added scponly 4.6 (Heiko + Dr. Alberto Benati) - added unionfs 1.1.4 (Heiko + Dr. Alberto Benati) Index: rsync =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/rsync,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -d -r1.2 -r1.2.2.1 --- rsync 11 Jan 2004 14:43:05 -0000 1.2 +++ rsync 15 Apr 2006 01:23:09 -0000 1.2.2.1 @@ -31,6 +31,9 @@ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1 make $PMAKE all || exit 1 strip_debug + + # install it, some other programs need to find this + make install fi ;; --- NEW FILE: scponly --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/scponly,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: scponly # Required-Start: $basebuildtools $libs openssh rsync # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: scponly (http://www.sublimation.org/scponly) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=SCPONLY case $1 in build ) if [ "$CONFIG_SCPONLY" = "y" ]; then if [ "$CONFIG_OPENSSH" = "y" ]; then RSYNC="" if [ "$CONFIG_RSYNC" = "y" ]; then RSYNC="--enable-rsync-compat" fi ./configure --prefix=/usr --sysconfdir=/etc \ $RSYNC --enable-passwd-compat --enable-chrooted-binary \ --disable-svn-compat --disable-svnserv-compat || exit 1 make $PMAKE || exit 1 strip_debug fi fi ;; install ) if [ "$CONFIG_SCPONLY" = "y" ]; then rm -rf $TMPDIR if [ "$CONFIG_OPENSSH" = "y" ]; then mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 mkdir -p $ETCDIR/etc || exit 1 cp -dpR $TMPDIR/etc/* $ETCDIR/etc/ || exit 1 cp -dpR groups $ETCDIR/etc/scponly/ || exit 1 echo "/usr/bin/scponly" >> $ETCDIR/etc/shells || exit 1 echo "/usr/sbin/scponlyc" >> $ETCDIR/etc/shells || exit 1 rm -rf $TMPDIR/etc cp -dpR $TMPDIR/* $CDDIR || exit 1 fi rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: awstats --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/awstats,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: awstats # Required-Start: $basebuildtools perl # Required-Stop: # Default-Start: 2 # Default-Stop: # Description: AWStats generates advanced web, ftp or mail server statistics (awstats.sourceforge.net) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in install ) if [ "$CONFIG_AWSTATS" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $CDDIR/usr/local/awstats || exit 1 cp -dpR * $CDDIR/usr/local/awstats/ || exit 1 mkdir -p $ETCDIR/etc/awstats || exit 1 cp -dpR wwwroot/cgi-bin/awstats.model.conf $ETCDIR/etc/awstats/ || exit 1 mkdir -p $ETCDIR/etc/cron.daily || exit 1 echo "#/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" >> $ETCDIR/etc/cron.daily/awstats.cron || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: logwatch --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/logwatch,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: logwatch # Required-Start: $basebuildtools perl # Required-Stop: # Default-Start: 2 # Default-Stop: # Description: logwatch (http://www.logwatch.org) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=LOGWATCH case $1 in install ) if [ "$CONFIG_LOGWATCH" = "y" ]; then rm -rf $TMPDIR #From install.sh LOGWATCHEXE="/usr/share/logwatch/scripts/logwatch.pl" BASEDIR="$CDDIR/usr/share/logwatch" CONFIGDIR="$ETCDIR/etc/logwatch" TEMPDIR="$CDDIR/var/cache/logwatch" #BASE install -m 0755 -d $BASEDIR install -m 0755 -d $BASEDIR/dist.conf install -m 0755 -d $BASEDIR/dist.conf/logfiles install -m 0755 -d $BASEDIR/dist.conf/services install -m 0755 -d $BASEDIR/default.conf install -m 0755 -d $BASEDIR/default.conf/logfiles install -m 0755 -d $BASEDIR/default.conf/services install -m 0755 -d $BASEDIR/scripts install -m 0755 -d $BASEDIR/scripts/logfiles install -m 0755 -d $BASEDIR/scripts/services install -m 0755 -d $BASEDIR/scripts/shared install -m 0755 -d $BASEDIR/lib install -m 0644 conf/*.conf $BASEDIR/default.conf install -m 0644 conf/logfiles/* $BASEDIR/default.conf/logfiles install -m 0644 conf/services/* $BASEDIR/default.conf/services install -m 0755 scripts/logwatch.pl $BASEDIR/scripts/logwatch.pl for i in scripts/logfiles/* ; do if [ `ls $i | wc -l` -ne 0 ] ; then install -m 0755 -d $BASEDIR/$i install -m 0644 $i/* $BASEDIR/$i fi done install -m 0644 scripts/shared/* $BASEDIR/scripts/shared install -m 0644 scripts/services/* $BASEDIR/scripts/services install -m 0644 lib/* $BASEDIR/lib #CONFIG install -m 0755 -d $CONFIGDIR install -m 0755 -d $CONFIGDIR/scripts install -m 0755 -d $CONFIGDIR/conf install -m 0755 -d $CONFIGDIR/conf/logfiles install -m 0755 -d $CONFIGDIR/conf/services #TEMP if [ ! -d $TEMPDIR ]; then #Should this be 0700 -d $TEMPDIR ?? install -m 0755 -d $TEMPDIR fi #MAN - DEVIL mkdir -p $CDDIR/usr/man/man8 || exit 1 install -m 0644 logwatch.8 $CDDIR/usr/man/man8 #Symlink - DEVIL mkdir -p $ETCDIR/etc/cron.daily || exit 1 ln -s $LOGWATCHEXE $ETCDIR/etc/cron.daily/0logwatch || exit 1 ln -s $LOGWATCHEXE $CDDIR/usr/sbin/logwatch || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: aide --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/aide,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: aide # Required-Start: $basebuildtools $libs mhash # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: AIDE (http://aide.sourceforge.net) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=AIDE case $1 in build ) if [ "$CONFIG_AIDE" = "y" ]; then if [ ! -f .patch.done ]; then zcat $DL_DIR/src/aide_0.*.diff.gz | patch -p1 || exit 1 touch .patch.done fi ./configure --prefix=/usr --sysconfdir=/etc/aide \ --with-config_file=/etc/aide/aide.conf || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_AIDE" = "y" ]; then rm -rf $TMPDIR mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 mkdir -p $ETCDIR/etc/aide || exit 1 cp -dpR debian/aide.conf $ETCDIR/etc/aide/ || exit 1 mkdir -p $ETCDIR/etc/cron.daily || exit 1 cp -dpR debian/cron.daily/aide $ETCDIR/etc/cron.daily/ || exit 1 mkdir -p $CDDIR/usr/man/man8 || exit 1 cp -dpR debian/aideinit.8 $CDDIR/usr/man/man8/ || exit 1 # All mhash library are mandatory cp -dpR /usr/lib/libmhash* $CDDIR/lib/ || exit 1 mkdir -p $CDDIR || 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 --- NEW FILE: curl --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/curl,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: curl # Required-Start: $basebuildtools $libs openssl openldap # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: curl (http://curl.haxx.se) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=CURL case $1 in build ) if [ "$CONFIG_CURL" = "y" ]; then ./configure --prefix=/usr --disable-manual \ --with-ssl=/usr --with-ca-bundle=/etc/curl/ca.crt \ --enable-crypto-auth --with-zlib=/usr \ --enable-cookies --enable-file --enable-ftp --enable-http --enable-ipv6 --enable-ldap \ --disable-dict --disable-gopher --disable-telnet || exit 1 make $PMAKE || exit 1 strip_debug # make install || exit 1 fi ;; install ) if [ "$CONFIG_CURL" = "y" ]; then rm -rf $TMPDIR mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 mkdir -p $ETCDIR/etc || exit 1 cp -dpR $TMPDIR/etc/* $ETCDIR/etc/ || exit 1 rm -rf $TMPDIR/etc || exit 1 rm -rf $TMPDIR/usr/include || exit 1 cp -dpR $TMPDIR/* $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 --- NEW FILE: nut --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/nut,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/04/15 01:23:09 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: nut # Required-Start: $basebuildtools $libs gd # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: Network UPS Tools (http://www.networkupstools.org) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=NUT case $1 in build ) if [ "$CONFIG_NUT" = "y" ]; then #if [ ! -f .patch.done ]; then # #From Debian # zcat $DL_DIR/src/nut_2.0.2-1.diff.gz | patch -p1 || exit 1 # touch .patch.done #fi ./configure --prefix=/usr --sysconfdir=/etc/ups --with-statepath=/var/lib/ups \ --with-user=nut \ --with-gd-includes --with-gd-libs || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_NUT" = "y" ]; then rm -rf $TMPDIR mkdir -p $TMPDIR || exit 1 groupadd -g 49 nut || exit 1 useradd -u 49 -g nut -s /bin/false nut || exit 1 make install DESTDIR=$TMPDIR || exit 1 make install-conf DESTDIR=$TMPDIR || exit 1 mkdir -p $ETCDIR/etc || exit 1 cp -dpR $TMPDIR/etc/* $ETCDIR/etc/ || exit 1 rm -rf $TMPDIR/etc || exit 1 cp -dpR $TMPDIR/* $CDDIR || exit 1 mkdir -p $CDDIR/var/lib/ups || exit 1 chmod 0700 $CDDIR/var/lib/ups || exit 1 chown nut:nut $CDDIR/var/lib/ups || exit 1 cp $MYDIR/scripts/nut $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/nut.config $ETCDIR/etc/sysconfig/nut || exit 1 rm -rf $TMPDIR || exit 1 echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_$MYNAME=\"this is the Network UPS Tools\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |