Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12048/scripts
Modified Files:
Tag: rel-1-2-patches
sagator
Added Files:
Tag: rel-1-2-patches
dspam
Log Message:
added dspam
Index: sagator
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/sagator,v
retrieving revision 1.6.2.5
retrieving revision 1.6.2.6
diff -u -d -r1.6.2.5 -r1.6.2.6
--- sagator 17 Apr 2006 01:02:32 -0000 1.6.2.5
+++ sagator 19 May 2006 17:16:26 -0000 1.6.2.6
@@ -9,7 +9,7 @@
### BEGIN INIT INFO
# Provides: sagator
-# Required-Start: $basebuildtools $libs Python clamav
+# Required-Start: $basebuildtools $libs Python clamav dspam
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
@@ -31,6 +31,9 @@
#replace_str Makefile python2.2 python2.3
export PYTHONHOME=$WORKDIR/Python-install/usr
export PATH=$WORKDIR/Python-install/usr/bin:$PATH
+ #export APACHE_ROOT=/etc/apache2
+ export DSPAM=yes
+ export DSPAM_PREFIX=/usr
./configure --prefix /usr || exit 1
make $PMAKE all || exit 1
strip_debug
--- NEW FILE: dspam ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/dspam,v $
# $Revision: 1.2.2.2 $
# $Date: 2006/05/19 17:16:26 $
#
# 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-virtual-users --with-storage-driver=hash_drv,mysql_drv,pgsql_drv --with-dspam-home=/var/dspam \
--enable-daemon --enable-ldap --enable-clamav --enable-syslog --enable-homedir \
--enable-preferences-extension --enable-large-scale --with-mysql-includes=/usr/include/mysql || exit 1
make $PMAKE all || exit 1
strip_debug
# we need this for sagator, so let's install it
make install || exit 1
# looks like the storage include file needs this one
cp src/pref.h /usr/include/dspam/ || exit 1
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
cp -dpvR $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
|