summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/moblockcontrol/moblockcontrol.install
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/moblockcontrol/moblockcontrol.install
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/moblockcontrol/moblockcontrol.install')
-rw-r--r--abs/extra-testing/community/moblockcontrol/moblockcontrol.install28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/extra-testing/community/moblockcontrol/moblockcontrol.install b/abs/extra-testing/community/moblockcontrol/moblockcontrol.install
new file mode 100644
index 0000000..439a3ee
--- /dev/null
+++ b/abs/extra-testing/community/moblockcontrol/moblockcontrol.install
@@ -0,0 +1,28 @@
+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 $*
+