Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv29897/scripts
Added Files:
shorewall-common shorewall-shell shorewall-perl
Removed Files:
shorewall
Log Message:
updated shorewall to 4.0.0
--- NEW FILE: shorewall-shell ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/shorewall-shell,v $
# $Revision: 1.1 $
# $Date: 2007/07/31 14:29:05 $
#
# 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-shell
# Required-Start: $libs shorewall-common
# Required-Stop:
# Default-Start: 2
# Default-Stop:
# Description: Shorewall firewall (www.shorewall.net) - shell-compiler
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=SHOREWALL-SHELL
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
# Copy all the shorewall files to the appropriate directories on the cd
copy_files $TMPDIR/usr/share/shorewall-shell $CDDIR/usr/share || exit 1
rm -rf $TMPDIR || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- NEW FILE: shorewall-common ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/shorewall-common,v $
# $Revision: 1.1 $
# $Date: 2007/07/31 14:29:05 $
#
# 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-common
# Required-Start: $libs
# Required-Stop:
# Default-Start: 2
# Default-Stop:
# Description: Shorewall firewall (www.shorewall.net) common-files
### 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
touch $CDDIR/var/log/messages
chmod 644 $CDDIR/var/log/messages
# Copy all the shorewall files to the appropriate directories on the cd
copy_files $TMPDIR/sbin $CDDIR || exit 1
copy_files $TMPDIR/usr/share/shorewall $CDDIR/usr/share || exit 1
copy_files $TMPDIR/etc/shorewall $ETCDIR/etc || 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 the shorewall documentation onto the cd
# never versions don't seem to have the documentation included anymore
# but we leave the lines in here, just in case they change their mind again
#mkdir -p $MY_DOCDIR
#cp -pr documentation/* $MY_DOCDIR || 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
--- NEW FILE: shorewall-perl ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/shorewall-perl,v $
# $Revision: 1.1 $
# $Date: 2007/07/31 14:29:05 $
#
# 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-perl
# Required-Start: $libs perl shorewall-common
# Required-Stop:
# Default-Start: 2
# Default-Stop:
# Description: Shorewall firewall (www.shorewall.net) - perl-compiler
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=SHOREWALL-PERL
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
# Copy all the shorewall files to the appropriate directories on the cd
copy_files $TMPDIR/usr/share/shorewall-perl $CDDIR/usr/share || exit 1
rm -rf $TMPDIR || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- shorewall DELETED ---
|