From: <bl...@us...> - 2003-10-20 18:26:15
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv23736/build/scripts Added Files: sarg Log Message: Initial checkin of sarg. --- NEW FILE: sarg --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/sarg,v $ # $Revision: 1.1 $ # $Date: 2003/10/20 17:45:50 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: sarg # Required-Start: $basebuildtools $libs squid # 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 source $MYDIR/functions MYNAME="SARG" case $1 in build ) if [ "$CONFIG_SARG" = "y" ]; then if [ ! -f sarg-patches.done ]; then bzcat $DL_DIR/src/sarg-1.4.1-index.sort.patch.bz2 | patch -p0 || exit 1 touch sarg-patches.done fi ./configure --enable-bindir=$CDDIR/usr/bin --enable-sysconfdir=$ETCDIR/etc/sarg --enable-mandir=$CDDIR/usr/man/man1 || exit 1 # Don't use $PMAKE make || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_SARG" = "y" ]; then make install || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |