Update of /cvsroot/leaf/src/bering-uclibc4/source/shorewall-lite
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30706
Added Files:
buildtool.cfg buildtool.mk common.cfg init.leaf
shorewall-default shorewall-lite-4.4.15-RC1.tgz
Log Message:
new package shorewall-lite - yet untested
--- NEW FILE: shorewall-lite-4.4.15-RC1.tgz ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: shorewall-default ---
#
# Shoreline Firewall startup options
#
# Any flags that appear in this file will be passed to shorewall
# by init.d on startup.
#
# -f = fast
# -q = quiet
#
OPTIONS="-f"
# if your Shorewall configuration requires detection of the ip address of a ppp
# interface, you must list such interfaces in "wait_interface" to get Shorewall
# wait until the interface is configured. Otherwise the script will fail because
# it won't be able to detect the IP address.
#
# Example:
# wait_interface="ppp0"
# or
# wait_interface="ppp0 ppp1"
#
#wait_interface="ppp0"
--- NEW FILE: init.leaf ---
#!/bin/sh
RCDLINKS="2,S19 3,S19 4,S19 5,S19 0,K91 6,K91"
SRWL=/sbin/shorewall-lite
WAIT_FOR_IFUP=/usr/share/shorewall-lite/wait4ifup
# parse the shorewall params file in order to use params in
# /etc/default/shorewall
if [ -f "/etc/default/shorewall" ]
then
. /etc/default/shorewall
fi
[ "$INITLOG" = "/dev/null" ] && SHOREWALL_INIT_SCRIPT=1 ||
SHOREWALL_INIT_SCRIPT=0
export SHOREWALL_INIT_SCRIPT
# wait for an unconfigured interface
wait_for_pppd () {
if [ "$wait_interface" != "" ]
then
if [ -f $WAIT_FOR_IFUP ]
then
for i in $wait_interface
do
$WAIT_FOR_IFUP $i 60
done
else
echo "$WAIT_FOR_IFUP: File not found"
exit 2
fi
fi
}
# start the firewall
shorewall_start () {
echo -n "Starting \"Shorewall firewall\": "
wait_for_pppd
$SRWL $OPTIONS start 2>&1 && echo "done."
return 0
}
# stop the firewall
shorewall_stop () {
echo -n "Stopping \"Shorewall firewall\": "
if [ "$SAFESTOP" = 1 ]; then
$SRWL $OPTIONS stop 2>&1 && echo "done."
else
$SRWL $OPTIONS clear 2>&1 && echo "done."
fi
return 0
}
# restart the firewall
shorewall_restart () {
echo -n "Restarting \"Shorewall firewall\": "
$SRWL $OPTIONS start 2>&1 && echo "done."
return 0
}
# refresh the firewall
shorewall_refresh () {
echo -n "Refreshing \"Shorewall firewall\": "
$SRWL refresh 2>&1 && echo "done."
return 0
}
case "$1" in
start)
shorewall_start
;;
stop)
shorewall_stop
;;
refresh)
shorewall_refresh
;;
force-reload|restart)
shorewall_restart
;;
*)
echo "Usage: /etc/init.d/shorewall-lite
{start|stop|refresh|restart|force-reload}"
exit 1
esac
exit 0
--- NEW FILE: common.cfg ---
<File>
Filename = etc/init.d/shorewall-lite
Source = etc/init.d/shorewall-lite
Permissions = 755
Type = binary
Type = local
</File>
<File>
Filename = sbin/shorewall-lite
Source = sbin/shorewall-lite
Permissions = 755
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/
Type = local
</File>
<File>
Filename = usr/share/shorewall-lite/wait4ifup
Source = usr/share/shorewall-lite/wait4ifup
Permissions = 755
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/shorecap
Source = usr/share/shorewall-lite/shorecap
Permissions = 755
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/version
Source = usr/share/shorewall-lite/version
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/modules
Source = usr/share/shorewall-lite/modules
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/lib.cli
Source = usr/share/shorewall-lite/lib.cli
Type = binary
</File>
<File>
Filename =
usr/share/shorewall-lite/lib.common
Source =
usr/share/shorewall-lite/lib.common
Type = binary
</File>
<File>
Filename = usr/share/shorewall-lite/lib.base
Source = usr/share/shorewall-lite/lib.base
Type = binary
</File>
<File>
Filename =
usr/share/shorewall-lite/configpath
Source =
usr/share/shorewall-lite/configpath
Type = binary
</File>
<File>
Target = usr/share/shorewall-lite/lib.base
Filename = usr/share/shorewall-lite/functions
Type = link
</File>
<File>
Filename = var/lib/shorewall-lite/
Type = directory
</File>
<File>
Filename = etc/default/shorewall-lite
Source = etc/default/shorewall-lite
Description = Default Shorewall Runtime
Startup options
Type = binary
Type = conf
Type = local
</File>
<File>
Filename = etc/shorewall/
Type = local
</File>
--- NEW FILE: buildtool.mk ---
######################################
#
# buildtool makefile for Shoreline Firewall
#
######################################
include $(MASTERMAKEFILE)
TARGET_DIR=$(BT_BUILD_DIR)/shorewall-lite
SHOREWALL_DIR:=shorewall-lite-4.4.15-RC1
$(SHOREWALL_DIR)/.source:
zcat $(SHOREWALL_SOURCE) | tar -xvf -
# cat $(SHOREWALL_LRP_DIFF) | patch -d $(SHOREWALL_DIR) -p1
# cat $(SHOREWALL_CONFIG_DIFF) | patch -d $(SHOREWALL_DIR) -p1
touch $(SHOREWALL_DIR)/.source
#errata
# cp compiler $(SHOREWALL_DIR)
$(SHOREWALL_DIR)/.build: $(SHOREWALL_DIR)/.source
# cp $(SHOREWALL_DIR)/init.debian.sh $(SHOREWALL_DIR)/init.sh
mkdir -p $(TARGET_DIR)
(cd $(SHOREWALL_DIR); env PREFIX=$(TARGET_DIR) ./install.sh)
# chmod 755 $(TARGET_DIR)/usr/share/shorewall/firewall
mkdir -p $(TARGET_DIR)/etc/default
install -c $(SHOREWALL_DEFAULT) $(TARGET_DIR)/etc/default/shorewall-lite
install -c $(SHOREWALL_INIT) $(TARGET_DIR)/etc/init.d/shorewall-lite
rm -rf $(TARGET_DIR)/etc/shorewall/Makefile
cp -afv $(TARGET_DIR)/* $(BT_STAGING_DIR)
touch $(SHOREWALL_DIR)/.build
source: $(SHOREWALL_DIR)/.source
build: $(SHOREWALL_DIR)/.build
cp -afv $(TARGET_DIR)/* $(BT_STAGING_DIR)
clean: stageclean
rm -rf $(TARGET_DIR)
rm -f $(SHOREWALL_DIR)/.build
stageclean:
rm -f $(BT_STAGING_DIR)/etc/init.d/shorewall
rm -f $(BT_STAGING_DIR)/etc/default/shorewall
rm -f $(BT_STAGING_DIR)/sbin/shorewall
rm -rf $(BT_STAGING_DIR)/etc/shorewall
rm -rf $(BT_STAGING_DIR)/usr/share/shorewall
rm -rf $(BT_STAGING_DIR)/var/lib/shorewall
rm -rf $(BT_STAGING_DIR)/var/state/shorewall
srcclean: clean
rm -rf $(SHOREWALL_DIR)
--- NEW FILE: buildtool.cfg ---
<File shorewall-lite-4.4.15-RC1.tgz>
Server = cvs4-sourceforge
Revision = HEAD
Directory = shorewall-lite
Envname = SHOREWALL_SOURCE
</File>
<File buildtool.mk>
Server = cvs4-sourceforge
Revision = HEAD
Directory = shorewall-lite
</File>
<File common.cfg>
Server = cvs4-sourceforge
Revision = HEAD
Directory = shorewall-lite
</File>
# This file provides the Bering-uClibc specific configuration defaults
<File shorewall-default>
Server = cvs4-sourceforge
Revision = HEAD
Directory = shorewall-lite
Envname = SHOREWALL_DEFAULT
</File>
# This file provides the Bering-uClibc specific shorewall-lite init
<File init.leaf>
Server = cvs4-sourceforge
Revision = HEAD
Directory = shorewall
Envname = SHOREWALL_INIT
</File>
# ---------------------------------------------------------------------
<Package>
<shorwall-lite>
packagename=shorwall-lite
Version 4.4.15-RC1
Revision = 1
Help <<EOF
Shoreline Firewall (Shorewall)
This is the lite version of shorewall.
Homepage: http://www.shorewall.net
Requires: iptables.lrp
LEAF package by __PACKAGER__, __BUILDDATE__
EOF
<Permissions>
Files = 644
Directories = 755
</Permissions>
<Owner>
Files = root:root
Directories = root:root
</Owner>
<Contents>
#include <common.cfg>
</Contents>
</shorwall-lite>
</Package>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits