Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5062/scripts
Added Files:
Tag: rel-1-2-patches
dante
Log Message:
- added socks server (dante)
--- NEW FILE: dante ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/Attic/dante,v $
# $Revision: 1.1.2.1 $
# $Date: 2005/10/26 17:01:21 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: dante
# Required-Start: $basebuildtools $libs
# 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
MYNAME=SOCKS
case $1 in
build )
if [ "$CONFIG_SOCKS" = "y" ]; then
./configure --prefix=/usr --sysconfdir=/etc/socks --bindir=/usr/sbin --libexecdir=/usr/sbin \
--datadir=/usr/share/socks --localstatedir=/var/socks --sharedstatedir=/var/socks || exit 1
make $PMAKE || exit 1
strip_debug
make check || exit 1
fi
;;
install )
if [ "$CONFIG_SOCKS" = "y" ]; then
rm -rf $TMPDIR || exit 1
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
mkdir -p $TMPDIR/etc/socks || exit 1
cp ./example/*conf $TMPDIR/etc/socks || exit 1
copy_docs $TMPDIR
cp -dpR $TMPDIR/etc/* $ETCDIR/etc/ || exit 1
rm -rf $TMPDIR/etc || exit 1
rm -rf $TMPDIR/usr/include || exit 1
rm -rf $TMPDIR/usr/lib/*a || exit 1
copy_files $TMPDIR/usr $CDDIR/ || exit 1
rm -rf $TMPDIR || exit 1
# exit 1
echo "# Start Dante Socks Proxy?" >> $CONFIGFILE
echo "START_$MYNAME=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_$MYNAME=\"$MYNAME is SOCKS4,5 proxy server \"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|