updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / gshield / PKGBUILD
bloba0a5d3f86cf8cc93979be15c943b596483d7b626
1 # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
2 pkgname=gshield
3 pkgver=2.8
4 pkgrel=4
5 pkgdesc="iptables firewall configuration system"
6 arch=(i686)
7 url="http://muse.linuxmafia.org/gshield/"
8 license=('GPL-2')
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')
14 build() {
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
25   do
26       mv $startdir/pkg/etc/gshield/$q $startdir/pkg/usr/share/gshield/
27   done
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