summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/moblockcontrol
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-06 22:04:22 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-06 22:04:22 (GMT)
commit745ebc4d0b581a1e891a56b8b21c19b3bbd40c5e (patch)
tree690c9baaf6f938da0b9203708a649bca5e980e96 /abs/extra-testing/community/moblockcontrol
parent0d8d8e073d7118d67fd8c3bdaf7be00c76df317a (diff)
downloadlinhes_pkgbuild-745ebc4d0b581a1e891a56b8b21c19b3bbd40c5e.zip
linhes_pkgbuild-745ebc4d0b581a1e891a56b8b21c19b3bbd40c5e.tar.gz
linhes_pkgbuild-745ebc4d0b581a1e891a56b8b21c19b3bbd40c5e.tar.bz2
Added moblock
Diffstat (limited to 'abs/extra-testing/community/moblockcontrol')
-rw-r--r--abs/extra-testing/community/moblockcontrol/PKGBUILD38
-rw-r--r--abs/extra-testing/community/moblockcontrol/moblock_control.patch11
2 files changed, 49 insertions, 0 deletions
diff --git a/abs/extra-testing/community/moblockcontrol/PKGBUILD b/abs/extra-testing/community/moblockcontrol/PKGBUILD
new file mode 100644
index 0000000..f13e48c
--- /dev/null
+++ b/abs/extra-testing/community/moblockcontrol/PKGBUILD
@@ -0,0 +1,38 @@
+# Contributor: marinz <marinz@email.it>
+
+pkgname=moblockcontrol
+pkgver=1.0
+pkgrel=8
+pkgdesc="moblock-control"
+arch=('i686' 'x86_64')
+url="http://moblock-deb.sourceforge.net/"
+license=('GPL')
+groups=()
+depends=('moblock')
+makedepends=()
+install=
+source=(http://download.sourceforge.net/moblock-deb/moblock-control-1.0.tar.gz \
+ moblock_control.patch)
+md5sums=('1399e5465028e116e941cd1e01f6f7fc'
+ 'dc269c6c47bc423b9093919d52e97d63')
+backup=('etc/moblock/moblock.conf' 'etc/moblock/blocklists.list')
+
+build() {
+
+ cd $startdir/src/moblock-control-1.0
+
+ patch -Np1 -i ../moblock_control.patch || return 1
+
+ install -d ${pkgdir}/usr/bin ${pkgdir}/etc/moblock ${pkgdir}/etc/default ${pkgdir}/var/spool/moblock/user ${pkgdir}/lib/lsb ${pkgdir}/var/log
+ install -m 755 moblock-control ${pkgdir}/usr/bin/moblock-control
+ install -m 755 blocklists.list ${pkgdir}/etc/moblock/blocklists.list
+ install -m 755 moblock.conf ${pkgdir}/etc/moblock/moblock.conf
+ install -m 755 moblock.default ${pkgdir}/etc/default/moblock
+ install -m 755 init-functions ${pkgdir}/lib/lsb/init-functions
+ install -m 755 iptables-custom-insert.sh ${pkgdir}/etc/iptables-custom-insert.sh
+ install -m 755 iptables-custom-remove.sh ${pkgdir}/etc/iptables-custom-remove.sh
+
+ touch ${pkgdir}/var/log/moblock-control.log
+ touch ${pkgdir}/etc/moblock/guarding.p2p
+}
+
diff --git a/abs/extra-testing/community/moblockcontrol/moblock_control.patch b/abs/extra-testing/community/moblockcontrol/moblock_control.patch
new file mode 100644
index 0000000..db6bbf9
--- /dev/null
+++ b/abs/extra-testing/community/moblockcontrol/moblock_control.patch
@@ -0,0 +1,11 @@
+--- moblockcontrol/moblock-control_2 2008-09-25 23:22:39.000000000 +0200
++++ moblockcontrol/moblock-control 2008-12-28 09:33:51.000000000 +0100
+@@ -954,7 +954,7 @@
+ else
+ # The options Moblock is started with
+ # The same like above, but with a "&" to start moblock in the background
+- DAEMON_OPTS="-$BLOCKLIST_FORMAT $BLOCKLIST $NFQUEUE_NUMBER_OPT $LOG_SYSLOG_OPT $LOG_TIMESTAMP_OPT -r $REJECT_MARK -a $ACCEPT_MARK $DAEMON_LOG &"
++ DAEMON_OPTS="-$BLOCKLIST_FORMAT $BLOCKLIST $NFQUEUE_NUMBER_OPT $LOG_SYSLOG_OPT $DAEMON_LOG & "
+ # Start MoBlock
+ start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS # The init-functions provided with moblock-control depend on this syntax!
+ fi