[Pkg-clamav-commits] [SCM] packaging for clamav-unoffical-sigs branch, master, updated. debian/3.7.1-1-8-g61f76f0

Paul Wise pabs at debian.org
Fri Jun 1 12:30:41 UTC 2012


The following commit has been merged in the master branch:
commit 2ba2bba3eeebac7afe0f15368c5dc801857854a4
Author: Paul Wise <pabs at debian.org>
Date:   Fri Jun 1 11:06:55 2012 +0800

    Don't run clamdscan if it is not present

diff --git a/debian/changelog b/debian/changelog
index 768fe57..8379c87 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+clamav-unofficial-sigs (3.7.1-3) UNRELEASED; urgency=low
+
+  * Don't run clamdscan if it is not present
+
+ -- Paul Wise <pabs at debian.org>  Fri, 01 Jun 2012 11:06:25 +0800
+
 clamav-unofficial-sigs (3.7.1-2) unstable; urgency=low
 
   * Package technically complies with policy 3.9.3, bump Standards-Version
diff --git a/debian/debian.conf b/debian/debian.conf
index 2bfed03..9cd970f 100644
--- a/debian/debian.conf
+++ b/debian/debian.conf
@@ -32,7 +32,20 @@ gpg_silence="yes"
 comment_silence="yes"
 
 # Reload clamav database by default
-reload_dbs=yes
+# But do not run clamdscan if it isn't present
+case $reload_opt in
+  clamdscan\ *)
+    if test -x /usr/bin/clamdscan ; then
+      reload_dbs=yes
+    else
+      reload_dbs=no
+      unset reload_opt
+    fi
+  ;;
+  *)
+    reload_dbs=yes
+  ;;
+esac
 
 # Prevent the -r option from removing stuff
 pkg_mgr="apt"

-- 
packaging for clamav-unoffical-sigs



More information about the Pkg-clamav-commits mailing list