#Maintainer: Christopher Rey P. Baluyut pkgname=shorewall pkgver=4.4.7.6 pkgrel=2 zenver=64 arch=noarch source=("http://shorewall.com.au/4.4/$pkgname-4.4.7/$pkgname-$pkgver.tar.bz2") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/shingoku/$pkgname/source docs=("COPYING" "INSTALL" "*.txt" "Samples") url="http://www.shorewall.net/" extradepends=('iproute2','perl') 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 } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Shorewall (Iptables Made Easy)" "The Shoreline Firewall, more commonly known as Shorewall," "is a Netfilter (iptables) based firewall that can be used on" "a dedicated firewall system, a multi-function gateway /" "router / server, or on a standalone GNU/Linux system." "This package contains common files required by both the" "shorewall-perl and shorewall-shell compilers for Shoreline." ) build() { cd $startdir/src/$pkgname-$pkgver PREFIX=$startdir/pkg \ OWNER='root' \ GROUP='root' \ DEST=/etc/rc.d \ MANDIR=/usr/man \ SLACKWARE=yes \ ./install.sh mkdir -p $startdir/pkg/var/lock/subsys chmod 0755 $startdir/pkg/{etc,usr/share,var/lib}/shorewall $startdir/pkg/var/lock/subsys chmod 0644 $startdir/pkg/etc/shorewall/* $startdir/pkg/etc/rc.d/* rm $startdir/pkg/etc/rc.d/rc.firewall mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -a Samples $startdir/pkg/usr/doc/$pkgname-$pkgver }