1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Arto Puranen <purcher@gmail.com>
4 pkgname=arno-iptables-firewall
7 pkgdesc="A secure stateful firewall for both single and multi-homed machine"
9 url=(http://rocky.eld.leidenuniv.nl/joomla/)
11 depends=('iptables' 'iproute2')
13 backup=(etc/${pkgname}/firewall.conf
14 etc/${pkgname}/custom-rules
15 etc/${pkgname}/plugins/dmz-dnat.conf
16 etc/${pkgname}/plugins/dsl-ppp-modem.conf
17 etc/${pkgname}/plugins/dyndns-host-open.conf
18 etc/${pkgname}/plugins/ids-protection.conf
19 etc/${pkgname}/plugins/ipsec-vpn.conf
20 etc/${pkgname}/plugins/ipv6-over-ipv4.conf
21 etc/${pkgname}/plugins/linux-upnp-igd.conf
22 etc/${pkgname}/plugins/mac-address-filter.conf
23 etc/${pkgname}/plugins/multiroute.conf
24 etc/${pkgname}/plugins/sip-voip.conf
25 etc/${pkgname}/plugins/ssh-brute-force-protection.conf
26 etc/${pkgname}/plugins/traffic-accounting.conf
27 etc/${pkgname}/plugins/traffic-shaper.conf
28 etc/${pkgname}/plugins/transparent-dnat.conf
29 etc/${pkgname}/plugins/transparent-proxy.conf)
30 source=(http://rocky.eld.leidenuniv.nl/${pkgname}/${pkgname}_${pkgver}.tar.gz \
33 sha256sums=('241981d9eed22383687fba417d72be0824aff9c4a20dd50af8c1f526b5dd1f08'
34 'b8b2c3edaf3c2d4bf9ee617b01808bb8035c76f5eac5381c777f67c4ca6a1a20'
35 '90ba06504b503fa34c78ebd8f2b83ee404f34580e47a8691318d9996171c62e3')
38 cd ${srcdir}/${pkgname}_${pkgver}
41 patch -Np0 -i ${srcdir}/${pkgname}.patch
44 install -d -m 0755 etc/${pkgname}/plugins/ ${pkgdir}/etc/${pkgname}/plugins/
45 for i in `find etc/${pkgname} -type f`; do install -T -m 0600 $i ${pkgdir}/$i ;done
46 install -D -m 0644 share/${pkgname}/environment ${pkgdir}/usr/share/${pkgname}/environment
49 install -d -m 0755 share/${pkgname}/plugins/ ${pkgdir}/usr/share/${pkgname}/plugins/
50 for i in share/${pkgname}/plugins/*plugin; do install -T -m 0644 $i ${pkgdir}/usr/$i ;done
51 install -D -m 0744 share/${pkgname}/plugins/dyndns-host-open-helper \
52 ${pkgdir}/usr/share/${pkgname}/plugins/dyndns-host-open-helper
53 install -D -m 0744 share/${pkgname}/plugins/traffic-accounting-helper \
54 ${pkgdir}/usr/share/${pkgname}/plugins/traffic-accounting-helper
55 install -D -m 0744 share/${pkgname}/plugins/traffic-accounting-log-rotate \
56 ${pkgdir}/usr/share/${pkgname}/plugins/traffic-accounting-log-rotate
57 install -D -m 0744 share/${pkgname}/plugins/traffic-accounting-show \
58 ${pkgdir}/usr/share/${pkgname}/plugins/traffic-accounting-show
61 install -D -m 0744 bin/${pkgname} ${pkgdir}/usr/sbin/${pkgname}
62 install -D -m 0744 bin/arno-fwfilter ${pkgdir}/usr/sbin/arno-fwfilter
63 install -D -m 0744 contrib/adsl-failover ${pkgdir}/usr/sbin/adsl-failover
66 install -D -m 0644 share/man/man1/arno-fwfilter.1 ${pkgdir}/usr/share/man/man1/arno-fwfilter.1
67 install -D -m 0644 share/man/man8/${pkgname}.8 ${pkgdir}/usr/share/man/man8/${pkgname}.8
70 install -D -m 0744 ${srcdir}/${pkgname}.script ${pkgdir}/etc/rc.d/${pkgname}