updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / slackfire / PKGBUILD
blob52f287127599d09e266ffde18e21f9c604f740c7
1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
2 # Contributor: defcon <defcon@archlinux.us>
4 pkgname=slackfire
5 pkgver='0.65.e'
6 pkgrel=1
7 pkgdesc="An iptables script to protect a stand-alone machine or a small network with a stateful firewall"
8 arch=(i686)
9 url="http://slackfire.berlios.de"
10 license=('GPL')
11 depends=(iptables)
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')
19 build() {
20   tar zxf "$pkgname-$pkgver-noarch-1.tgz"
21   cd "$srcdir"
22   # fix variable PATH
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)"
30   done
32   find usr/share/slackfire/ -type f | while read fname; do
33   install -Dm644 "$fname" "$pkgdir/usr/share/slackfire/$(basename $fname)"
34   done
36   find etc/ -type f | while read fname; do
37     install -Dm644 "$fname" "$pkgdir/${fname%.new}"
38   done
40   install -Dm755 slackfire "$pkgdir/etc/rc.d/slackfire"
43 # vim:set ts=2 sw=2 et: