aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav/clamav-db.pre-upgrade
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-05-20 15:56:01 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-05-20 15:59:33 +0000
commit14861f32173de43ae7a88d2464bf63cae9182d79 (patch)
treee3b26cf65e86c79ea66dcf6fe06146e484570180 /main/clamav/clamav-db.pre-upgrade
parentb17c6c49f3f2503d4e799e22ec4e463576c11acc (diff)
downloadaports-14861f32173de43ae7a88d2464bf63cae9182d79.tar.bz2
aports-14861f32173de43ae7a88d2464bf63cae9182d79.tar.xz
main/clamav: split package and move db to /var/lib/clamav
Diffstat (limited to 'main/clamav/clamav-db.pre-upgrade')
-rw-r--r--main/clamav/clamav-db.pre-upgrade11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/clamav/clamav-db.pre-upgrade b/main/clamav/clamav-db.pre-upgrade
new file mode 100644
index 0000000000..47230e16b2
--- /dev/null
+++ b/main/clamav/clamav-db.pre-upgrade
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# make sure we don't lose our config
+mkdir -p /etc/clamav
+if [ -f /etc/freshclam.conf ]; then
+ mv /etc/freshclam.conf /etc/clamav/
+ ln -s clamav/freshclam.conf /etc/freshclam.conf
+fi
+
+exit 0
+