1 # Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
5 pkgdesc="A simple, robust shell script that loads iptables rules from a rules directory."
7 url="http://www.schwarzvogel.de/software-$pkgname.shtml"
9 source=("http://www.schwarzvogel.de/pkgs/$pkgname-$pkgver.tar.gz" "rc.$pkgname")
10 md5sums=('3d8f91e79369a9fd6245c9a95337ce08'
11 'ce205a5a9dec51325dc523344c18140c')
14 msg "Nothing to compile for $pkgname"
18 cd $srcdir/$pkgname-$pkgver || return 1
20 # Install main program script
21 install -Dm755 $pkgname $pkgdir/usr/sbin/$pkgname || return 1
23 # Install configuration file
24 mkdir -p $pkgdir/etc/$pkgname/rules.d/examples.d || return 1
25 install -m600 $pkgname.cfg $pkgdir/etc/$pkgname/$pkgname.cfg || return 1
26 chmod -R o=rwX,go= $pkgdir/etc/$pkgname || return 1
28 # Install example rules
29 cp -r example-rules.d/* $pkgdir/etc/$pkgname/rules.d/examples.d/ || return 1
32 install -Dm755 $srcdir/rc.$pkgname $pkgdir/etc/rc.d/$pkgname || return 1
35 # vim:set ts=2 sw=2 et: