diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2017-01-12 14:34:23 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-22 08:10:31 +0700 |
commit | 1b38fa075d82b2ec839e8b8ef184cbf61e242e34 (patch) | |
tree | 1f6a5aac5d2a278fe18db2d13469b1a319cbfc72 | |
parent | 38aab4dd63e6eb700d28cefb2e30cc550124f52d (diff) | |
download | slackbuilds-1b38fa075d82b2ec839e8b8ef184cbf61e242e34.tar.gz |
system/clamav: Fix test for zlib > 1.2.9.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | system/clamav/bb111711-fix-zlib-version-check.patch | 28 | ||||
-rw-r--r-- | system/clamav/clamav.SlackBuild | 7 |
2 files changed, 34 insertions, 1 deletions
diff --git a/system/clamav/bb111711-fix-zlib-version-check.patch b/system/clamav/bb111711-fix-zlib-version-check.patch new file mode 100644 index 0000000000..c3135d46c7 --- /dev/null +++ b/system/clamav/bb111711-fix-zlib-version-check.patch @@ -0,0 +1,28 @@ +From f0bcd186190fe6e67b3f0eaaceb7a99aa6a98865 Mon Sep 17 00:00:00 2001 +From: Steven Morgan <stevmorg@cisco.com> +Date: Thu, 5 Jan 2017 12:30:35 -0500 +Subject: [PATCH] bb111711 - fix zlib version check - patch by Daniel J. Luke. + +--- + m4/reorganization/libs/libz.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/reorganization/libs/libz.m4 b/m4/reorganization/libs/libz.m4 +index b5c74147b..f7b67ca10 100644 +--- a/m4/reorganization/libs/libz.m4 ++++ b/m4/reorganization/libs/libz.m4 +@@ -29,9 +29,9 @@ then + AC_MSG_ERROR([Please install zlib and zlib-devel packages]) + else + +- vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h` ++ vuln=`grep "ZLIB_VERSION \"1.2.0\"" $ZLIB_HOME/include/zlib.h` + if test -z "$vuln"; then +- vuln=`grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h` ++ vuln=`grep "ZLIB_VERSION \"1.2.1\"" $ZLIB_HOME/include/zlib.h` + fi + + if test -n "$vuln"; then +-- +2.11.0 + 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 \ |