|
From: Heiko Z. <smi...@us...> - 2009-10-18 13:41:14
|
Update of /cvsroot/devil-linux/build/scripts In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13629/scripts Added Files: shorewall Log Message: - updated many perl modules - updated distcc-3.1 - updated dnsmasq-2.51 - updated dovecot-1.2.6 - updated fetchmail-6.3.12 - updated iptables-1.4.5 - updated iptstate-2.2.2 - updated krb5-1.7 - updated libpng-1.2.40 - updated mod_perl-2.0.4 - updated open-vm-tools-2009.10.15-201664 - updated openldap-2.4.19 - updated samba-3.4.2 - updated sg3_utils-1.28 - updated shorewall-4.4.2.2 - updated snort-2.8.5 - updated squid-3.0.STABLE19 - updated syslinux-3.83 - updated sysstat-9.0.5 - updated webmin-1.490 - updated wget-1.12 - updated libosip2 to 3.3.0 - removed Mail::SPF::Query, since it causes conflicts with Spamassassin --- NEW FILE: shorewall --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/shorewall,v $ # $Revision: 1.10 $ # $Date: 2009/10/18 13:41:06 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: shorewall # Required-Start: $libs perl # Required-Stop: # Default-Start: 2 # Default-Stop: # Description: Shorewall firewall (www.shorewall.net) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=SHOREWALL-COMMON MY_DOCDIR=$DOCDIR/shorewall case $1 in install ) if [ "$CONFIG_SHOREWALL" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 # Install shorewall into $TMPDIR PREFIX=$TMPDIR ./install.sh || exit 1 # Create the directories for /var mkdir -p $CDDIR/var/lib/shorewall # Copy all the shorewall files to the appropriate directories on the cd copy_docs $TMPDIR || exit 1 cp -dbvR $TMPDIR/etc $ETCDIR/ || exit 1 rm -rf $TMPDIR/etc || exit 1 cp -dpvR $TMPDIR/* $CDDIR/ || exit 1 mv $CDDIR/usr/share/shorewall/modules $ETCDIR/etc/shorewall/ || exit 1 ln -sf /etc/shorewall/modules $CDDIR/usr/share/shorewall/modules || exit 1 # Copy our own startup script into /etc/init.d cp $MYDIR/scripts/shorewall $ETCDIR/etc/init.d/ rm -rf $TMPDIR || exit 1 # Create the shorewall option in the config file echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_SHOREWALL=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_SHOREWALL=\"SHOREWALL is an alternate firewall creation script (www.shorewall.net)\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |