1 # Contributor: Kevin Edmonds <edmondskevin@hotmail.com>
2 # Maintainer: Filip Wojciechowski, filip at loka dot pl
7 pkgdesc="Console application that blocks connections from/to hosts listed in a file in peerguardian format"
9 url="http://moblock.berlios.de/"
11 depends=(libnetfilter_queue iptables)
12 backup=(etc/moblock/config)
13 install=moblock.install
14 source=(http://download.berlios.de/moblock/MoBlock-0.8-i586.tar.bz2 \
15 moblock_0.9_rc2.patch \
16 MoBlock-nfq.sh.patch \
17 moblock_include.patch \
24 cd $startdir/src/MoBlock-0.8
26 # patch to update moblock to the latest cvs version
27 patch -Np1 -i ../moblock_0.9_rc2.patch || return 1
28 # add IP whitelisting and move configs to a separate conf file
29 patch -Np1 -i ../MoBlock-nfq.sh.patch || return 1
30 # necessary to make moblock build with recent kernels
31 patch -Np1 -i ../moblock_include.patch || return 1
33 # change the CFLAGS for both i686 and x84_64 builds
34 sed -i "s#-Wall -O.*-ffast-math#$CFLAGS#g" Makefile
40 install -D -m 755 ./MoBlock-nfq.sh $startdir/pkg/usr/bin/moblock-nfq || return 1
41 install -D -m 744 ./moblock $startdir/pkg/usr/bin/moblock || return 1
42 install -D -m 755 ../moblock-update $startdir/pkg/usr/bin/moblock-update || return 1
43 install -D -m 744 ../moblock $startdir/pkg/etc/rc.d/moblock || return 1
44 install -D -m 644 ../config $startdir/pkg/etc/moblock/config || return 1
45 install -D -m 644 ../moblock.logrotate $startdir/pkg/etc/logrotate.d/moblock || return 1
49 md5sums=('199967adb48b153be90db10fe21325c5'
50 'e4e33c515677fa53eaca4616591d4e44'
51 'e9f3c6b09f5e07dee948450780340ea3'
52 'b23b5214965df59632de5cec317ddbde'
53 '840bb52a99529305e49212a69c9ced8a'
54 '49a16feb221d4d912cc7200313517f7b'
55 '1bdc949fcff0ce751a5096e489061513'
56 'a8285fd3e68043cd8d21993d3dbbf9d4')