Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv31840/scripts
Added Files:
Tag: rel-1-2-patches
dar
Log Message:
added dar
--- NEW FILE: dar ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/dar,v $
# $Revision: 1.2.2.1 $
# $Date: 2006/12/20 01:50:20 $
#
# 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 $TMPDIR || exit 1
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
copy_docs $TMPDIR
rm -rf $TMPDIR/usr/{man,info} || exit 1
rm -rf $TMPDIR/usr/include || exit 1
rm -f $TMPDIR/usr/lib/*a || exit 1
mkdir -p $CDDIR
copy_files $TMPDIR/usr $CDDIR/ || exit 1
rm -rf $TMPDIR || 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
|