summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/moblockcontrol
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verison.net>2010-03-26 23:55:03 (GMT)
committerMichael Hanson <hansonorders@verison.net>2010-03-26 23:55:03 (GMT)
commit2167662033a46ed83467bc117feda085b6a3895b (patch)
tree5986f6448c136e094db710cab9632bd6551fb2e2 /abs/extra-testing/community/moblockcontrol
parent92cbca128951418f894e94d9d0842ec12f3e06ca (diff)
downloadlinhes_pkgbuild-2167662033a46ed83467bc117feda085b6a3895b.zip
linhes_pkgbuild-2167662033a46ed83467bc117feda085b6a3895b.tar.gz
linhes_pkgbuild-2167662033a46ed83467bc117feda085b6a3895b.tar.bz2
blockcontrol: updated to v1.6.9 ; replaces moblockcontrol.
ref 506
Diffstat (limited to 'abs/extra-testing/community/moblockcontrol')
-rw-r--r--abs/extra-testing/community/moblockcontrol/PKGBUILD42
-rw-r--r--abs/extra-testing/community/moblockcontrol/moblock-control-update.sh3
-rw-r--r--abs/extra-testing/community/moblockcontrol/moblock_control.patch11
-rw-r--r--abs/extra-testing/community/moblockcontrol/moblockcontrol.install28
4 files changed, 0 insertions, 84 deletions
diff --git a/abs/extra-testing/community/moblockcontrol/PKGBUILD b/abs/extra-testing/community/moblockcontrol/PKGBUILD
deleted file mode 100644
index 5a912e2..0000000
--- a/abs/extra-testing/community/moblockcontrol/PKGBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# Contributor: marinz <marinz@email.it>
-
-pkgname=moblockcontrol
-pkgver=1.0
-pkgrel=10
-pkgdesc="moblock-control"
-arch=('i686' 'x86_64')
-url="http://moblock-deb.sourceforge.net/"
-license=('GPL')
-groups=()
-depends=('moblock')
-makedepends=()
-install=moblockcontrol.install
-source=(http://download.sourceforge.net/moblock-deb/moblock-control-1.0.tar.gz \
- moblock_control.patch moblock-control-update.sh)
-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
-
- cd $startdir/src
- install -m 755 moblock-control-update.sh ${pkgdir}/usr/bin/moblock-control-update.sh
- sed -i "s/config\/templist.gz/config\/badpeers.gz/" $startdir/pkg/etc/moblock/blocklists.list
-}
-
diff --git a/abs/extra-testing/community/moblockcontrol/moblock-control-update.sh b/abs/extra-testing/community/moblockcontrol/moblock-control-update.sh
deleted file mode 100644
index 8da564d..0000000
--- a/abs/extra-testing/community/moblockcontrol/moblock-control-update.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-. /etc/profile
-/usr/bin/moblock-control update
diff --git a/abs/extra-testing/community/moblockcontrol/moblock_control.patch b/abs/extra-testing/community/moblockcontrol/moblock_control.patch
deleted file mode 100644
index db6bbf9..0000000
--- a/abs/extra-testing/community/moblockcontrol/moblock_control.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
diff --git a/abs/extra-testing/community/moblockcontrol/moblockcontrol.install b/abs/extra-testing/community/moblockcontrol/moblockcontrol.install
deleted file mode 100644
index 439a3ee..0000000
--- a/abs/extra-testing/community/moblockcontrol/moblockcontrol.install
+++ /dev/null
@@ -1,28 +0,0 @@
-post_install() {
- if [ ! -d /var/spool/moblock/used ]
- then
- mkdir -p /var/spool/moblock/used
- fi
-
- if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
- then
- ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
- fi
-}
-
-post_upgrade() {
- if [ ! -d /var/spool/moblock/used ]
- then
- mkdir -p /var/spool/moblock/used
- fi
-
- if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
- then
- ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
- fi
-}
-
-op=$1
-shift
-$op $*
-