mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
package/clamav: bump to version 0.99
- removed autoreconf and two patches applied upstreamb20eeffadb
785e4a90e0
- removed clamuko configure option - disabled fanotify support because UCLIBC_HAS_FTS is disabled https://github.com/vrtadmin/clamav-devel/blob/master/README "Support for on-access scanning using Clamuko/Dazuko has been replaced with fanotify." - added host-pkgconf dependency, used by configure - added optional dependency to pcre - added sha256 hash Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8ff54bb7a4
commit
2abe487cd6
@ -1,58 +0,0 @@
|
|||||||
Fix detection of statically linked libraries
|
|
||||||
|
|
||||||
Patch submitted upstream: https://bugzilla.clamav.net/show_bug.cgi?id=11132
|
|
||||||
|
|
||||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
||||||
|
|
||||||
diff -uNr clamav-0.98.4.org/m4/reorganization/libs/curl.m4 clamav-0.98.4/m4/reorganization/libs/curl.m4
|
|
||||||
--- clamav-0.98.4.org/m4/reorganization/libs/curl.m4 2014-05-21 17:25:05.000000000 +0200
|
|
||||||
+++ clamav-0.98.4/m4/reorganization/libs/curl.m4 2014-09-28 15:39:26.714111527 +0200
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
save_LDFLAGS="$LDFLAGS"
|
|
||||||
LDFLAGS="$CURL_LDFLAGS"
|
|
||||||
AC_CHECK_LIB([curl], [curl_easy_init], [curl_msg="";have_curl="yes";CLAMSUBMIT_LIBS="$CLAMSUBMIT_LIBS $CURL_LDFLAGS";CLAMSUBMIT_CFLAGS="$CLAMSUBMIT_CFLAGS $CURL_CPPFLAGS"],
|
|
||||||
- [AC_MSG_WARN([Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs.])])
|
|
||||||
+ [AC_MSG_WARN([Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs.])], [$CURL_LDFLAGS])
|
|
||||||
LDFLAGS="$save_LDFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
diff -uNr clamav-0.98.4.org/m4/reorganization/libs/openssl.m4 clamav-0.98.4/m4/reorganization/libs/openssl.m4
|
|
||||||
--- clamav-0.98.4.org/m4/reorganization/libs/openssl.m4 2014-05-22 15:18:22.000000000 +0200
|
|
||||||
+++ clamav-0.98.4/m4/reorganization/libs/openssl.m4 2014-09-28 15:15:18.280323868 +0200
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
save_CFLAGS="$CFLAGS"
|
|
||||||
save_LIBS="$LIBS"
|
|
||||||
|
|
||||||
-SSL_LIBS="-lssl -lcrypto"
|
|
||||||
+SSL_LIBS="-lssl -lcrypto -lz"
|
|
||||||
|
|
||||||
if test "$LIBSSL_HOME" != "/usr"; then
|
|
||||||
SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
|
|
||||||
@@ -41,12 +41,12 @@
|
|
||||||
have_ssl="no"
|
|
||||||
have_crypto="no"
|
|
||||||
|
|
||||||
-AC_CHECK_LIB([ssl], [SSL_library_init], [have_ssl="yes"], [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])], [-lcrypto])
|
|
||||||
+AC_CHECK_LIB([ssl], [SSL_library_init], [have_ssl="yes"], [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])], [-lcrypto -lz])
|
|
||||||
|
|
||||||
-AC_CHECK_LIB([crypto], [EVP_EncryptInit], [have_crypto="yes"], [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])])
|
|
||||||
+AC_CHECK_LIB([crypto], [EVP_EncryptInit], [have_crypto="yes"], [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])], [-lcrypto -lz])
|
|
||||||
|
|
||||||
dnl OpenSSL 0.9.8 is the minimum required version due to X509_VERIFY_PARAM
|
|
||||||
-AC_CHECK_LIB([ssl], [X509_VERIFY_PARAM_new], [], [AC_MSG_ERROR([Your OpenSSL installation is missing the X509_VERIFY_PARAM function. Please upgrade to a more recent version of OpenSSL.])], [-lcrypto])
|
|
||||||
+AC_CHECK_LIB([ssl], [X509_VERIFY_PARAM_new], [], [AC_MSG_ERROR([Your OpenSSL installation is missing the X509_VERIFY_PARAM function. Please upgrade to a more recent version of OpenSSL.])], [-lcrypto -lz])
|
|
||||||
|
|
||||||
LDFLAGS="$save_LDFLAGS"
|
|
||||||
CFLAGS="$save_CFLAGS"
|
|
||||||
diff -uNr clamav-0.98.4.org/m4/reorganization/libs/xml.m4 clamav-0.98.4/m4/reorganization/libs/xml.m4
|
|
||||||
--- clamav-0.98.4.org/m4/reorganization/libs/xml.m4 2014-05-21 17:25:05.000000000 +0200
|
|
||||||
+++ clamav-0.98.4/m4/reorganization/libs/xml.m4 2014-09-28 15:57:41.836339462 +0200
|
|
||||||
@@ -67,7 +67,7 @@
|
|
||||||
save_LDFLAGS="$LDFLAGS"
|
|
||||||
LDFLAGS="$LDFLAGS $XML_LIBS"
|
|
||||||
|
|
||||||
- AC_CHECK_LIB([xml2], [xmlTextReaderRead], [working_xml="yes"], [working_xml="no"])
|
|
||||||
+ AC_CHECK_LIB([xml2], [xmlTextReaderRead], [working_xml="yes"], [working_xml="no"], [$XML_LIBS])
|
|
||||||
|
|
||||||
CPPFLAGS="$save_CPPFLAGS"
|
|
||||||
LDFLAGS="$save_LDFLAGS"
|
|
@ -1,21 +0,0 @@
|
|||||||
stats: fix static link
|
|
||||||
|
|
||||||
The stats.c file does not use the dlopen() familly of functions, but
|
|
||||||
includes dlfcn.h, which is missing on uClibc when it is configured as
|
|
||||||
a static-only C library.
|
|
||||||
|
|
||||||
so, simply do not include dlfcn.h.
|
|
||||||
|
|
||||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
||||||
|
|
||||||
diff -durN clamav-0.98.5.orig/libclamav/stats.c clamav-0.98.5/libclamav/stats.c
|
|
||||||
--- clamav-0.98.5.orig/libclamav/stats.c 2014-11-13 23:30:43.000000000 +0100
|
|
||||||
+++ clamav-0.98.5/libclamav/stats.c 2014-11-25 19:57:14.344291266 +0100
|
|
||||||
@@ -41,7 +41,6 @@
|
|
||||||
#include <sys/sysctl.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
-#include <dlfcn.h>
|
|
||||||
#else
|
|
||||||
#include <Windows.h>
|
|
||||||
#include <tchar.h>
|
|
@ -1,2 +1,4 @@
|
|||||||
# From http://sourceforge.net/projects/clamav/files/clamav/0.98.7/
|
# From http://sourceforge.net/projects/clamav/files/clamav/0.99/
|
||||||
sha1 c9793d67c041e2b944116d912f8681c8bd6e4432 clamav-0.98.7.tar.gz
|
sha1 7834baf3ce4898dd856e652c9d0301a8e14b4615 clamav-0.99.tar.gz
|
||||||
|
# Locally computed
|
||||||
|
sha256 d2792c8cfadd685fffc40b2199679628815df031fd3149ccf961649fc8787ea9 clamav-0.99.tar.gz
|
||||||
|
@ -4,28 +4,31 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
CLAMAV_VERSION = 0.98.7
|
CLAMAV_VERSION = 0.99
|
||||||
CLAMAV_SITE = http://sourceforge.net/projects/clamav/files/clamav/$(CLAMAV_VERSION)
|
CLAMAV_SITE = http://sourceforge.net/projects/clamav/files/clamav/$(CLAMAV_VERSION)
|
||||||
CLAMAV_LICENSE = GPLv2
|
CLAMAV_LICENSE = GPLv2
|
||||||
CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
|
CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
|
||||||
COPYING.LGPL COPYING.llvm COPYING.lzma COPYING.regex COPYING.sha256 \
|
COPYING.LGPL COPYING.llvm COPYING.lzma COPYING.regex COPYING.sha256 \
|
||||||
COPYING.unrar COPYING.zlib
|
COPYING.unrar COPYING.zlib
|
||||||
# clamav-0002-static-linking.patch touches configure.ac
|
CLAMAV_DEPENDENCIES = \
|
||||||
CLAMAV_AUTORECONF = YES
|
host-pkgconf \
|
||||||
CLAMAV_DEPENDENCIES = openssl zlib $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
openssl \
|
||||||
|
zlib \
|
||||||
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
||||||
|
|
||||||
# mmap cannot be detected when cross-compiling, needed for mempool support
|
# mmap cannot be detected when cross-compiling, needed for mempool support
|
||||||
CLAMAV_CONF_ENV = \
|
CLAMAV_CONF_ENV = \
|
||||||
ac_cv_c_mmap_private=yes \
|
ac_cv_c_mmap_private=yes \
|
||||||
have_cv_ipv6=yes
|
have_cv_ipv6=yes
|
||||||
|
|
||||||
|
# UCLIBC_HAS_FTS is disabled, therefore disable fanotify (missing fts.h)
|
||||||
CLAMAV_CONF_OPTS = \
|
CLAMAV_CONF_OPTS = \
|
||||||
--with-dbdir=/var/lib/clamav \
|
--with-dbdir=/var/lib/clamav \
|
||||||
--with-openssl=$(STAGING_DIR)/usr \
|
--with-openssl=$(STAGING_DIR)/usr \
|
||||||
--with-zlib=$(STAGING_DIR)/usr \
|
--with-zlib=$(STAGING_DIR)/usr \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-clamuko \
|
|
||||||
--disable-clamav \
|
--disable-clamav \
|
||||||
|
--disable-fanotify \
|
||||||
--disable-milter \
|
--disable-milter \
|
||||||
--disable-llvm \
|
--disable-llvm \
|
||||||
--disable-clamdtop \
|
--disable-clamdtop \
|
||||||
@ -62,4 +65,11 @@ else
|
|||||||
CLAMAV_CONF_OPTS += --without-iconv
|
CLAMAV_CONF_OPTS += --without-iconv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||||
|
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
|
||||||
|
CLAMAV_DEPENDENCIES += pcre
|
||||||
|
else
|
||||||
|
CLAMAV_CONF_OPTS += --without-pcre
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user