Update of /cvsroot/leaf/src/bering-uclibc4/source/shorewall6-lite
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28290

Added Files:
        buildtool.cfg buildtool.mk common.cfg init.leaf 
        shorewall6-default shorewall6-lite-4.4.15.tgz 
Log Message:
new package shorewall6-lite

It does not require perl installed on the router.
Instead the configuration is done form a "administration" machine.
See http://shorewall.net/ -> documentation -> shorewall-lite how to use.

Successfully tested - saving the configuration may be revisited.



--- NEW FILE: shorewall6-lite-4.4.15.tgz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: init.leaf ---
#!/bin/sh


RCDLINKS="2,S19 3,S19 4,S19 5,S19 0,K91 6,K91"
SRWL=/sbin/shorewall6-lite
WAIT_FOR_IFUP=/usr/share/shorewall6-lite/wait4ifup

# parse the shorewall params file in order to use params in
# /etc/default/shorewall

if [ -f "/etc/default/shorewall6" ]
then
        . /etc/default/shorewall6
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
shorewall6_start () {
  echo -n "Starting \"Shorewall6 firewall\": "
  wait_for_pppd
  $SRWL $OPTIONS start 2>&1 && echo "done."
  return 0
}

# stop the firewall
shorewall6_stop () {
  echo -n "Stopping \"Shorewall6 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
shorewall6_restart () {
  echo -n "Restarting \"Shorewall6 firewall\": "
  $SRWL $OPTIONS start 2>&1 && echo "done."
  return 0
}

# refresh the firewall
shorewall6_refresh () {
  echo -n "Refreshing \"Shorewall6 firewall\": "
  $SRWL refresh 2>&1 && echo "done."
  return 0
}

case "$1" in
  start)
     shorewall6_start
     ;;
  stop)
     shorewall6_stop
     ;;
  refresh)
     shorewall6_refresh
     ;;
  force-reload|restart)
     shorewall6_restart
     ;;
  *)
     echo "Usage: /etc/init.d/shorewall6-lite 
{start|stop|refresh|restart|force-reload}"
     exit 1
esac

exit 0

--- NEW FILE: common.cfg ---
                        <File>
                                Filename    = etc/init.d/shorewall6-lite
                                Source      = etc/init.d/shorewall6-lite
                                Permissions = 755
                                Type        = binary
                                Type        = local
                        </File>
                        <File>
                                Filename    = sbin/shorewall6-lite
                                Source      = sbin/shorewall6-lite
                                Permissions = 755
                                Type        = binary
                        </File>
                        <File>
                                Target      = sbin/shorewall6-lite
                                Filename    = sbin/shorewall6
                                Type        = link
                        </File>

                        <File>
                                Filename    = usr/share/shorewall6-lite/
                                Type        = local
                        </File>
                        <File>
                                Filename    = 
usr/share/shorewall6-lite/wait4ifup
                                Source      = 
usr/share/shorewall6-lite/wait4ifup
                                Permissions = 755
                                Type        = binary
                        </File>

                        <File>
                                Filename    = usr/share/shorewall6-lite/shorecap
                                Source      = usr/share/shorewall6-lite/shorecap
                                Permissions = 755
                                Type        = binary
                        </File>

                        <File>
                                Filename    = usr/share/shorewall6-lite/version
                                Source      = usr/share/shorewall6-lite/version
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/share/shorewall6-lite/modules
                                Source      = usr/share/shorewall6-lite/modules
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/share/shorewall6-lite/lib.cli
                                Source      = usr/share/shorewall6-lite/lib.cli
                                Type        = binary
                        </File>
                        <File>
                                Filename    = 
usr/share/shorewall6-lite/lib.common
                                Source      = 
usr/share/shorewall6-lite/lib.common
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/share/shorewall6-lite/lib.base
                                Source      = usr/share/shorewall6-lite/lib.base
                                Type        = binary
                        </File>
                        <File>
                                Filename    = 
usr/share/shorewall6-lite/configpath
                                Source      = 
usr/share/shorewall6-lite/configpath
                                Type        = binary
                        </File>

                        <File>
                                Target      = usr/share/shorewall6-lite/lib.base
                                Filename    = 
usr/share/shorewall6-lite/functions
                                Type        = link
                        </File>
                        <File>
                                Filename    = var/lib/shorewall6-lite/
                                Type        = directory
                                Type        = local
                        </File>
                        <File>
                                Filename    = etc/default/shorewall6-lite
                                Source      = etc/default/shorewall6-lite
                                Description = Default   Shorewall6 Runtime 
Startup options
                                Type        = binary
                                Type        = conf
                                Type        = local
                        </File>

                        <File>
                                Filename    = 
etc/shorewall6-lite/shorewall6-lite.conf
                                Source      = 
etc/shorewall6-lite/shorewall6-lite.conf
                                Description = Config    Shorewall6-lite Global 
Parameters
                                Type        = binary
                                Type        = conf
                                Type        = local
                        </File>

--- NEW FILE: buildtool.mk ---
######################################
#
# buildtool makefile for Shoreline Firewall
#
######################################

include $(MASTERMAKEFILE)

TARGET_DIR=$(BT_BUILD_DIR)/shorewall6-lite

SHOREWALL_DIR:=shorewall6-lite-4.4.15

$(SHOREWALL_DIR)/.source:
        zcat $(SHOREWALL_SOURCE) | tar -xvf -
        touch $(SHOREWALL_DIR)/.source


$(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)
        
        mkdir -p $(TARGET_DIR)/etc/default
        install -c $(SHOREWALL6_DEFAULT) 
$(TARGET_DIR)/etc/default/shorewall6-lite
        install -c $(SHOREWALL6_INIT) $(TARGET_DIR)/etc/init.d/shorewall6-lite

        rm -rf $(TARGET_DIR)/etc/shorewall6/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/shorewall6-lite
        rm -f  $(BT_STAGING_DIR)/etc/default/shorewall6-lite
#       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: shorewall6-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: buildtool.cfg ---
<File shorewall6-lite-4.4.15.tgz>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = shorewall6-lite
        Envname = SHOREWALL_SOURCE
</File>

<File buildtool.mk>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = shorewall6-lite
</File>

<File common.cfg>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = shorewall6-lite
</File>

# This file provides the Bering-uClibc specific configuration defaults
<File shorewall6-default>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = shorewall6-lite
        Envname = SHOREWALL6_DEFAULT
</File>

# This file provides the Bering-uClibc specific shorewall-lite init
<File init.leaf>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = shorewall6-lite
        Envname = SHOREWALL6_INIT
</File>

# ---------------------------------------------------------------------
<Package>
        <shorwall6-lite>
                packagename=shorwall6-lite
                Version 4.4.15
                Revision = 1

                Help <<EOF
                Shoreline Firewall (Shorewall) 
                This is the lite version of shorewall6.
                shorewall6-lite does not require perl to be installed on the 
router.
                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>
        </shorwall6-lite>
</Package>


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to