summaryrefslogtreecommitdiffstats
path: root/system/clamav/clamav.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2017-01-12 14:34:23 +0100
committer Willy Sudiarto Raharjo2017-04-22 03:10:31 +0200
commit1b38fa075d82b2ec839e8b8ef184cbf61e242e34 (patch)
tree1f6a5aac5d2a278fe18db2d13469b1a319cbfc72 /system/clamav/clamav.SlackBuild
parent38aab4dd63e6eb700d28cefb2e30cc550124f52d (diff)
downloadslackbuilds-1b38fa075d82b2ec839e8b8ef184cbf61e242e34.tar.gz
system/clamav: Fix test for zlib > 1.2.9.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r--system/clamav/clamav.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index d4ca50a324..b783811bf2 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -28,7 +28,7 @@
PRGNAM=clamav
VERSION=${VERSION:-0.99.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -112,6 +112,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patch from upstream
+patch -p1 < $CWD/bb111711-fix-zlib-version-check.patch
+
# Specify the desired mirror in the update config file
# http://www.iana.org/cctld/cctld-whois.htm
sed -i "s/^\#DatabaseMirror.*/DatabaseMirror db.${COUNTRY}.clamav.net/" \
@@ -142,6 +145,8 @@ sed \
-e "s/^\#ExitOnOOM/ExitOnOOM/" \
-i etc/clamd.conf.sample
+autoreconf -fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \