|
From: Bruce S. <bl...@us...> - 2005-09-28 18:08:24
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13250/scripts Added Files: Tag: rel-1-2-patches dansguardian Log Message: Adding Dans Guardian --- NEW FILE: dansguardian --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/dansguardian,v $ # $Revision: 1.1.2.1 $ # $Date: 2005/09/28 18:08:12 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: dansguardian # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: DANSGUARDIAN ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_DANSGUARDIAN" = "y" ]; then ./configure --runas_grp=nogroup || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_DANSGUARDIAN" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir $TMPDIR || exit 1 make install INSTALLPREFIX=$TMPDIR || exit 1 copy_docs $TMPDIR cp -dpvR $TMPDIR/usr $CDDIR/ || exit 1 cp -dpvR $TMPDIR/var $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 |