summaryrefslogtreecommitdiffstats
path: root/system/clamav/clamav.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2015-02-01 11:16:29 +0100
committer Willy Sudiarto Raharjo2015-02-07 09:21:41 +0100
commitebc1908f01c6162431ec5003cbf4363083e05ecb (patch)
tree4c469dd9e7e9a77c97df70cc33682219d22e82c8 /system/clamav/clamav.SlackBuild
parent78b73391e83ba61f9dc201337f9cec6be10e6ff1 (diff)
downloadslackbuilds-ebc1908f01c6162431ec5003cbf4363083e05ecb.tar.gz
system/clamav: Updated for version 0.98.6.
Noted the new optional dependency json-c Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r--system/clamav/clamav.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index 7595c25eed..db6dda3036 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -27,7 +27,7 @@
# No additional license terms added
PRGNAM=clamav
-VERSION=${VERSION:-0.98.5}
+VERSION=${VERSION:-0.98.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,6 +77,15 @@ elif ! getent passwd clamav 2>&1 > /dev/null; then
bailout ;
fi
+# check if json-c is there: if it is, build over it to enable
+# the file properties collection and analysis feature
+# http://blog.clamav.net/2014/11/intro-to-collection-and-analysis-of.html
+if pkg-config --exists json-c ; then
+ with_jsonc="--with-libjson"
+else
+ with_jsonc=""
+fi
+
set -e
rm -rf $PKG
@@ -138,6 +147,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-clamdtop \
--disable-static \
--disable-experimental \
+ $with_jsonc \
--build=$ARCH-slackware-linux
make V=1