summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/moblock
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-09 14:56:27 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-09 14:56:27 (GMT)
commit1c93373465c75d2d115cc9da72cfa5ff21f3867e (patch)
treed48a9a8c297ed64c45b9db79e3e2ace474e6a000 /abs/extra-testing/community/moblock
parent9a44255ba27e549106e4199cda5d30e1a5035f76 (diff)
downloadlinhes_pkgbuild-1c93373465c75d2d115cc9da72cfa5ff21f3867e.zip
linhes_pkgbuild-1c93373465c75d2d115cc9da72cfa5ff21f3867e.tar.gz
linhes_pkgbuild-1c93373465c75d2d115cc9da72cfa5ff21f3867e.tar.bz2
Create moblock-control-update script and add it to cron.
create /var/spool/mblock/used modify blocklists.list REF FS#261
Diffstat (limited to 'abs/extra-testing/community/moblock')
-rwxr-xr-xabs/extra-testing/community/moblock/PKGBUILD2
-rw-r--r--abs/extra-testing/community/moblock/moblock.install12
2 files changed, 9 insertions, 5 deletions
diff --git a/abs/extra-testing/community/moblock/PKGBUILD b/abs/extra-testing/community/moblock/PKGBUILD
index 283eb8c..f6c7e51 100755
--- a/abs/extra-testing/community/moblock/PKGBUILD
+++ b/abs/extra-testing/community/moblock/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=moblock
pkgver=0.9rc2
-pkgrel=7
+pkgrel=8
pkgdesc="Console application that blocks connections from/to hosts listed in a file in peerguardian format"
arch=('i686' 'x86_64')
url="http://moblock.berlios.de/"
diff --git a/abs/extra-testing/community/moblock/moblock.install b/abs/extra-testing/community/moblock/moblock.install
index 6afe1d5..c7715e7 100644
--- a/abs/extra-testing/community/moblock/moblock.install
+++ b/abs/extra-testing/community/moblock/moblock.install
@@ -7,6 +7,10 @@ post_install() {
echo ">>> moblock-update script no longer uses /var/spool/moblock"
echo ">>> as a temporary directory. You can safely delete it."
echo ""
+ if [ ! -d /var/spool/moblock/used ]
+ then
+ mkdir -p /var/spool/moblock/used
+ fi
}
post_upgrade() {
@@ -14,10 +18,10 @@ post_upgrade() {
if [ -h /usr/lib/libnfnetlink.so.1 ]; then
rm /usr/lib/libnfnetlink.so.1
fi
- echo ""
- echo ">>> moblock-update script no longer uses /var/spool/moblock"
- echo ">>> as a temporary directory. You can safely delete it."
- echo ""
+ if [ ! -d /var/spool/moblock/used ]
+ then
+ mkdir -p /var/spool/moblock/used
+ fi
}
op=$1