From: Heiko Z. <smi...@us...> - 2004-08-24 01:04:54
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18569/scripts Added Files: dar Log Message: - added dar v2.1.4 (Heiko + Tim Tait) --- NEW FILE: dar --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/dar,v $ # $Revision: 1.1 $ # $Date: 2004/08/24 01:04:40 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: dar # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: Command line Disk Archive backup utility ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=DAR case $1 in build ) if [ "$CONFIG_DAR" = "y" ]; then # Don't use infinints as they suck RAM up. 64bits should allow 4GB^2 of archive. ./configure --enable-mode=64 --prefix=/usr make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_DAR" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp rm -rf $WORKDIR/tmp/usr/{man,info} || exit 1 rm -rf $WORKDIR/tmp/usr/include || exit 1 rm -f $WORKDIR/tmp/usr/lib/*a || exit 1 mkdir -p $CDDIR copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 cp ./doc/samples/darrc_sample $ETCDIR/etc/ || exit 1 #cp $MYDIR/scripts/dar $ETCDIR/etc/init.d/ || exit 1 #echo "# Start $MYNAME Server?" >> $CONFIGFILE #echo "START_$MYNAME=no" >> $CONFIGFILE #echo >> $CONFIGFILE echo "HELP_$MYNAME=\"$MYNAME is a command-line Disk Archive backup tool.\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |