From: <smi...@us...> - 2004-02-03 02:35:19
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27640/scripts Added Files: razor-agents Log Message: added razor and some files I forgott to check in --- NEW FILE: razor-agents --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/razor-agents,v $ # $Revision: 1.1 $ # $Date: 2004/02/03 02:33:11 $ # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: razor-agents # Required-Start: $basebuildtools $libs perl # 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 case $1 in build ) if [ "$CONFIG_RAZOR_AGENTS" = "y" ]; then perl Makefile.PL PREFIX=/usr DESTDIR=$WORKDIR/tmp < /dev/null || exit 1 # now override the PREFIX setting to not use $WORKDIR/tmp%. MakeMaker # does not have a better way to do this, it seems... make $PMAKE PREFIX=/usr || exit 1 strip_debug # we need to install it, otherwise it will fail later make install DESTDIR= || exit 1 fi ;; install ) if [ "$CONFIG_RAZOR_AGENTS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 make install || exit 1 copy_docs $WORKDIR/tmp copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |