From 9e10f4411a5653dd5371c42a7bd2c2180e4516c8 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 2 May 2015 12:56:07 -0500 Subject: moblock-0.9rc2-8.1: rebuild --- pcr/moblock/PKGBUILD | 46 +++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) (limited to 'pcr/moblock') diff --git a/pcr/moblock/PKGBUILD b/pcr/moblock/PKGBUILD index 2b1b68010..e37cd31a1 100644 --- a/pcr/moblock/PKGBUILD +++ b/pcr/moblock/PKGBUILD @@ -4,9 +4,9 @@ pkgname=moblock pkgver=0.9rc2 -pkgrel=8 +pkgrel=8.1 pkgdesc="Console application that blocks connections from/to hosts listed in a file in peerguardian format" -arch=('i686' 'x86_64' 'mips64el') +arch=('i686' 'x86_64') url="http://moblock.berlios.de/" license=('GPL') depends=(libnetfilter_queue iptables) @@ -20,36 +20,40 @@ source=(http://download.berlios.de/moblock/MoBlock-0.8-i586.tar.bz2 \ moblock-update \ moblock \ moblock.logrotate) +md5sums=('199967adb48b153be90db10fe21325c5' + 'e4e33c515677fa53eaca4616591d4e44' + 'e9f3c6b09f5e07dee948450780340ea3' + 'b23b5214965df59632de5cec317ddbde' + '840bb52a99529305e49212a69c9ced8a' + '49a16feb221d4d912cc7200313517f7b' + '1bdc949fcff0ce751a5096e489061513' + 'a8285fd3e68043cd8d21993d3dbbf9d4') build() { - cd $startdir/src/MoBlock-0.8 + cd $srcdir/MoBlock-0.8 # patch to update moblock to the latest cvs version - patch -Np1 -i ../moblock_0.9_rc2.patch || return 1 + patch -Np1 -i ../moblock_0.9_rc2.patch # add IP whitelisting and move configs to a separate conf file - patch -Np1 -i ../MoBlock-nfq.sh.patch || return 1 + patch -Np1 -i ../MoBlock-nfq.sh.patch # necessary to make moblock build with recent kernels - patch -Np1 -i ../moblock_include.patch || return 1 + patch -Np1 -i ../moblock_include.patch # change the CFLAGS for both i686 and x84_64 builds sed -i "s#-Wall -O.*-ffast-math#$CFLAGS#g" Makefile # build make || return 1 +} + +package() { + cd $srcdir/MoBlock-0.8 #move the files - install -D -m 755 ./MoBlock-nfq.sh $startdir/pkg/usr/bin/moblock-nfq || return 1 - install -D -m 744 ./moblock $startdir/pkg/usr/bin/moblock || return 1 - install -D -m 755 ../moblock-update $startdir/pkg/usr/bin/moblock-update || return 1 - install -D -m 744 ../moblock $startdir/pkg/etc/rc.d/moblock || return 1 - install -D -m 644 ../config $startdir/pkg/etc/moblock/config || return 1 - install -D -m 644 ../moblock.logrotate $startdir/pkg/etc/logrotate.d/moblock || return 1 -} -md5sums=('199967adb48b153be90db10fe21325c5' - 'e4e33c515677fa53eaca4616591d4e44' - 'e9f3c6b09f5e07dee948450780340ea3' - 'b23b5214965df59632de5cec317ddbde' - '840bb52a99529305e49212a69c9ced8a' - '49a16feb221d4d912cc7200313517f7b' - '1bdc949fcff0ce751a5096e489061513' - 'a8285fd3e68043cd8d21993d3dbbf9d4') + install -D -m 755 ./MoBlock-nfq.sh $srcdir/pkg/usr/bin/moblock-nfq + install -D -m 744 ./moblock $srcdir/pkg/usr/bin/moblock + install -D -m 755 ../moblock-update $srcdir/pkg/usr/bin/moblock-update + install -D -m 744 ../moblock $srcdir/pkg/etc/rc.d/moblock + install -D -m 644 ../config $srcdir/pkg/etc/moblock/config + install -D -m 644 ../moblock.logrotate $srcdir/pkg/etc/logrotate.d/moblock +} \ No newline at end of file -- cgit v1.2.3