Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5242/scripts
Added Files:
dspam
Log Message:
initial checkin of dspam
--- NEW FILE: dspam ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/dspam,v $
# $Revision: 1.1 $
# $Date: 2005/01/09 23:00:37 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: dspam
# Required-Start: $basebuildtools $libs postfix
# 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_DSPAM" = "y" ]; then
./configure --prefix=/usr --sysconfdir=/etc --enable-long-usernames --enable-domain-scale \
--enable-virtual-users --with-storage-driver=libdb4_drv --with-pic --with-dspam-home=/var/dspam || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_DSPAM" = "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/include || exit 1
rm -f $TMPDIR/usr/lib/*a || exit 1
rm -rf $TMPDIR/usr/lib/pkgconfig || exit 1
copy_files $TMPDIR/etc $ETCDIR/ || exit 1
rm -rf $TMPDIR/etc
copy_files $TMPDIR/* $CDDIR/ || exit 1
rm -rf $TMPDIR || exit 1
mkdir -p $DOCDIR/dspam || exit 1
cp README* $DOCDIR/dspam/ || 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
|