1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
2 # Contributor: defcon <defcon@archlinux.us>
7 pkgdesc="An iptables script to protect a stand-alone machine or a small network with a stateful firewall"
9 url="http://slackfire.berlios.de"
12 backup=(etc/slackfire/slackfire.conf)
13 install="${pkgname}.install"
14 source=(ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$pkgver-noarch-1.tgz
15 slackfire slackfire-path.patch )
16 md5sums=('009531cb696373232235cb505bac9b05'
17 'd1d6894a4abe4d506ec7ed48e307c4d9'
18 'a4bbe946eb3a57c7702a94f9bc9235ef')
20 tar zxf "$pkgname-$pkgver-noarch-1.tgz"
23 patch -p0 < "$srcdir/slackfire-path.patch" || return 1
25 install -Dm755 usr/sbin/slackfire "$pkgdir/usr/sbin/slackfire"
26 install -Dm755 usr/sbin/sf4sf "$pkgdir/usr/sbin/sf4sf"
28 find usr/doc/ -type f | while read fname; do
29 install -Dm644 "$fname" "$pkgdir/usr/share/doc/$pkgname-$pkgver-$pkgrel/$(basename $fname)"
32 find usr/share/slackfire/ -type f | while read fname; do
33 install -Dm644 "$fname" "$pkgdir/usr/share/slackfire/$(basename $fname)"
36 find etc/ -type f | while read fname; do
37 install -Dm644 "$fname" "$pkgdir/${fname%.new}"
40 install -Dm755 slackfire "$pkgdir/etc/rc.d/slackfire"
43 # vim:set ts=2 sw=2 et: