1 # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
5 pkgdesc="iptables firewall configuration system"
7 url="http://muse.linuxmafia.org/gshield/"
9 depends=("iptables" "dnsutils")
10 install=($pkgname.install)
11 source=(http://ftp.nluug.nl/security/coast/firewalls/gshield/v2/gShield-$pkgver.tgz gshield.init)
12 md5sums=('46521eb1ffef68d5a9c45727a99e2baa' '90570b33d11bf8b81afd5f75953b8926')
15 cd $startdir/src/gShield-${pkgver}
16 mkdir -p $startdir/pkg/etc/gshield
17 cp -pPR * $startdir/pkg/etc/gshield
19 # get rid of docs from config
20 rm -rf $startdir/pkg/etc/gshield/{Changelog,INSTALL,LICENSE,docs}
22 # move non config stuff out of config
23 mkdir -p $startdir/pkg/usr/share/gshield/routables
24 for q in gShield-version gShield.rc tools sourced routables/routable.rules
26 mv $startdir/pkg/etc/gshield/$q $startdir/pkg/usr/share/gshield/
28 chmod -R u+rwX $startdir/pkg/etc/gshield
30 mkdir -p $startdir/pkg/etc/rc.d
31 cp ../../gshield.init $startdir/pkg/etc/rc.d/gshield
32 chmod 755 $startdir/pkg/etc/rc.d/gshield