updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / firetable / PKGBUILD
blob5d3c3ebfc579173fc53b8bedba931ab83df33bb4
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # Contributor: Christoph Zeiler <rabyte*gmail>
4 pkgname=firetable
5 pkgver=4.9
6 pkgrel=4
7 pkgdesc="An iptables firewall script"
8 arch=('any')
9 url="http://projects.leisink.org/$pkgname"
10 license=('GPL')
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')
18 build() {
19         msg "Nothing to compile for $pkgname"
22 package() {
23   cd $pkgname-$pkgver
24   
25   # fix path to iptables
26   sed -i 's|"/sbin/iptables"|"/usr/sbin/iptables"|' $pkgname
27   
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
31   
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
35   
36   # Install man page
37   install -Dm644 man/firetable.1 $pkgdir/usr/share/man/man1/firetable.1
40 # vim:set ts=2 sw=2 et: