2 # Contributer: N30N <archlinux@alunamation.com>
7 pkgdesc="Netfilter blocking daemon inspired by MoBlock and PeerGuardian."
8 url="http://sites.google.com/site/makovick/nfblockd-daemon"
9 arch=("i686", "x86_64")
11 depends=("libnetfilter_queue" "libnfnetlink" "iptables" "zlib")
12 source=("http://sites.google.com/site/makovick/projects/${pkgname}-${pkgver}.tgz" \
15 md5sums=("5b9440e5d1aa0d4917edd45e75e0b00a" \
16 "94022011b40d43cc43f528dc3d36202d" \
17 "8de3f7710a32b339b3866931be478e63")
18 install="nfblock.install"
21 cd ${pkgname}-${pkgver}
24 # Remove ENABLE setting.
25 sed -e "1,2d" -i debian/default
26 sed -e "3d" -i debian/cron.*
28 # Blocklist extention update.
29 sed "s/\(nipfilter\).zip/\1.dat.gz/" -i debian/default
33 cd ${pkgname}-${pkgver}
34 make prefix="/usr" DESTDIR="${pkgdir}" install
36 install -d ${pkgdir}/var/lib/nfblock
37 install -Dm744 ${srcdir}/nfblock ${pkgdir}/etc/rc.d/nfblock
38 install -Dm644 debian/default ${pkgdir}/etc/default/nfblock
39 install -Dm755 debian/cron.daily ${pkgdir}/etc/cron.daily/nfblock
40 install -Dm755 debian/cron.weekly ${pkgdir}/etc/cron.weekly/nfblock