1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # Contributor: Christoph Zeiler <rabyte*gmail>
7 pkgdesc="An iptables firewall script"
9 url="http://projects.leisink.org/$pkgname"
11 depends=('iptables' 'perl')
12 backup=(etc/firetable/{config.eth0,firetable.conf})
13 install=$pkgname.install
14 source=(http://projects.leisink.org/files/$pkgname-$pkgver.tar.gz rc.$pkgname)
15 md5sums=('74ee94117bf7b572f29ba1ce476a9f56'
16 '1a883577ba7b543d7447ab9577bd4663')
19 msg "Nothing to compile for $pkgname"
25 # fix path to iptables
26 sed -i 's|"/sbin/iptables"|"/usr/sbin/iptables"|' $pkgname
28 # Install configuration files
29 install -Dm640 etc/firetable/config.eth0 $pkgdir/etc/firetable/config.eth0
30 install -Dm640 etc/firetable/firetable.conf $pkgdir/etc/firetable/firetable.conf
32 # Install executable and rc script
33 install -Dm755 $pkgname $pkgdir/usr/sbin/$pkgname
34 install -Dm755 $srcdir/rc.$pkgname $pkgdir/etc/rc.d/$pkgname
37 install -Dm644 man/firetable.1 $pkgdir/usr/share/man/man1/firetable.1
40 # vim:set ts=2 sw=2 et: