#Added by buildpkg 1.7.0
dotnew() {
        NEW="${1}.new"
        OLD="$1"
        if [ ! -e $OLD ]; then
                mv $NEW $OLD
        elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
                rm $NEW
        fi
}
dotnew etc/logrotate.d/shorewall
dotnew etc/rc.d/rc.shorewall
dotnew etc/shorewall/Makefile
dotnew etc/shorewall/masq
dotnew etc/shorewall/hosts
dotnew etc/shorewall/findgw
dotnew etc/shorewall/blacklist
dotnew etc/shorewall/maclist
dotnew etc/shorewall/providers
dotnew etc/shorewall/tunnels
dotnew etc/shorewall/policy
dotnew etc/shorewall/tcdevices
dotnew etc/shorewall/tcclear
dotnew etc/shorewall/stop
dotnew etc/shorewall/routestopped
dotnew etc/shorewall/tcinterfaces
dotnew etc/shorewall/isusable
dotnew etc/shorewall/start
dotnew etc/shorewall/notrack
dotnew etc/shorewall/tcfilters
dotnew etc/shorewall/rules
dotnew etc/shorewall/tcrules
dotnew etc/shorewall/proxyarp
dotnew etc/shorewall/tos
dotnew etc/shorewall/shorewall.conf
dotnew etc/shorewall/route_rules
dotnew etc/shorewall/started
dotnew etc/shorewall/refresh
dotnew etc/shorewall/actions
dotnew etc/shorewall/interfaces
dotnew etc/shorewall/clear
dotnew etc/shorewall/initdone
dotnew etc/shorewall/restored
dotnew etc/shorewall/init
dotnew etc/shorewall/tcclasses
dotnew etc/shorewall/tcpri
dotnew etc/shorewall/stopped
dotnew etc/shorewall/nat
dotnew etc/shorewall/refreshed
dotnew etc/shorewall/lib.private
dotnew etc/shorewall/accounting
dotnew etc/shorewall/ecn
dotnew etc/shorewall/netmap
dotnew etc/shorewall/params
dotnew etc/shorewall/zones
doinst() {
if [ -e etc/rc.d/rc.shorewall ]; then
  cp -a etc/rc.d/rc.shorewall etc/rc.d/rc.shorewall.new.incoming
  cat etc/rc.d/rc.shorewall.new > etc/rc.d/rc.shorewall.new.incoming
  mv etc/rc.d/rc.shorewall.new.incoming etc/rc.d/rc.shorewall.new
fi
}
doinst
( cd usr/share/shorewall ; rm -rf functions )
( cd usr/share/shorewall ; ln -sf lib.base functions )
