updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / nfblock / PKGBUILD
blob280902cdd39944727dc9cd89e9d24aa8ebe9f398
1 # Contributor: ugkbunb
2 # Contributer: N30N <archlinux@alunamation.com>
4 pkgname=nfblock
5 pkgver=0.6.2
6 pkgrel=1
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")
10 license=("GPL2")
11 depends=("libnetfilter_queue" "libnfnetlink" "iptables" "zlib")
12 source=("http://sites.google.com/site/makovick/projects/${pkgname}-${pkgver}.tgz" \
13         "nfblock.install" \
14         "nfblock")
15 md5sums=("5b9440e5d1aa0d4917edd45e75e0b00a" \
16         "94022011b40d43cc43f528dc3d36202d" \
17         "8de3f7710a32b339b3866931be478e63")
18 install="nfblock.install"
20 build() {
21         cd ${pkgname}-${pkgver}
22         make prefix="/usr"
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
32 package() {
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
43 # vim: noet ff=unix