update buildroot to 2017.02.11
This commit is contained in:
21
bsp/buildroot-2017.02.11/package/clamav/0001-clamdscan.patch
Normal file
21
bsp/buildroot-2017.02.11/package/clamav/0001-clamdscan.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
Fixes build error
|
||||
|
||||
proto.c: In function ‘dconnect’:
|
||||
proto.c:86:67: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
|
||||
if (connect(sockd, (struct sockaddr *)&nixsock, sizeof(nixsock)) == 0)
|
||||
|
||||
Patch sent upstream: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff -uNr clamav-0.98.3.org/clamdscan/proto.c clamav-0.98.3/clamdscan/proto.c
|
||||
--- clamav-0.98.3.org/clamdscan/proto.c 2014-05-06 20:39:56.000000000 +0200
|
||||
+++ clamav-0.98.3/clamdscan/proto.c 2014-05-10 10:41:44.000000000 +0200
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/un.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
@@ -0,0 +1,22 @@
|
||||
mbox: do not use backtrace if using uClibc without backtrace support
|
||||
|
||||
Since uClibc can be configured without support for backtrace, disable
|
||||
the backtrace if we are building with a uClibc that was built without
|
||||
backtrace.
|
||||
|
||||
This is a bit hacky, and would greatly benefit from a test in ./configure
|
||||
instead, but does nicely as a quick fix for now.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
diff -durN clamav-0.98.4.orig/libclamav/mbox.c clamav-0.98.4/libclamav/mbox.c
|
||||
--- clamav-0.98.4.orig/libclamav/mbox.c 2014-05-21 17:25:05.000000000 +0200
|
||||
+++ clamav-0.98.4/libclamav/mbox.c 2014-11-16 17:21:04.885383286 +0100
|
||||
@@ -83,7 +83,7 @@
|
||||
#include <features.h>
|
||||
#endif
|
||||
|
||||
-#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
|
||||
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
|
||||
#define HAVE_BACKTRACE
|
||||
#endif
|
||||
#endif
|
||||
17
bsp/buildroot-2017.02.11/package/clamav/Config.in
Normal file
17
bsp/buildroot-2017.02.11/package/clamav/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_CLAMAV
|
||||
bool "clamav"
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
select BR2_PACKAGE_LIBTOOL
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_ZLIB
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
ClamAV is an open source antivirus engine for detecting trojans,
|
||||
viruses, malware & other malicious threats.
|
||||
|
||||
http://www.clamav.net
|
||||
|
||||
comment "clamav needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
14
bsp/buildroot-2017.02.11/package/clamav/clamav.hash
Normal file
14
bsp/buildroot-2017.02.11/package/clamav/clamav.hash
Normal file
@@ -0,0 +1,14 @@
|
||||
# Locally calculated
|
||||
sha256 d72ac3273bde8d2e5e28ec9978373ee3ab4529fd868bc3fc4d2d2671228f2461 clamav-0.99.4.tar.gz
|
||||
sha256 0c4fd2fa9733fc9122503797648710851e4ee6d9e4969dd33fcbd8c63cd2f584 COPYING
|
||||
sha256 d72a145c90918184a05ef65a04c9e6f7466faa59bc1b82c8f6a8ddc7ddcb9bed COPYING.bzip2
|
||||
sha256 dfb818a0d41411c6fb1c193c68b73018ceadd1994bda41ad541cbff292894bc6 COPYING.file
|
||||
sha256 6dce638b76399e7521ad8e182d3e33e4496c85b3b69b6ff434b53017101e82ad COPYING.getopt
|
||||
sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING.LGPL
|
||||
sha256 e3a9b913515a42f8ff3ef1551c3a2cdba383c39ed959729e0e2911219496ad74 COPYING.llvm
|
||||
sha256 d96d71b66aa32c4a2d1619b9ca3347dafa9460bcf0fb5ac2408916067ad31dfc COPYING.lzma
|
||||
sha256 accdcf2455c07b99abea59016b3663eaef926a92092d103bfaa25fed27cf6b24 COPYING.pcre
|
||||
sha256 e2c1395a3d9fea6d5d25847c9d783db6e2cc8b085b4025861f459139c5dfd90b COPYING.regex
|
||||
sha256 1faccc6b5c7b958fb807a3f573d5be9bf7889fe898f7e0617c544b05a81bfd00 COPYING.unrar
|
||||
sha256 a20d6317c5384e8d4c05f9c31097878675d9429ec46090656166039cc10bc957 COPYING.YARA
|
||||
sha256 c2f77553f8d870c5635b0dace0519253233f172b33ce1fdf6578610706294eee COPYING.zlib
|
||||
86
bsp/buildroot-2017.02.11/package/clamav/clamav.mk
Normal file
86
bsp/buildroot-2017.02.11/package/clamav/clamav.mk
Normal file
@@ -0,0 +1,86 @@
|
||||
################################################################################
|
||||
#
|
||||
# clamav
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CLAMAV_VERSION = 0.99.4
|
||||
CLAMAV_SITE = https://www.clamav.net/downloads/production
|
||||
CLAMAV_LICENSE = GPLv2
|
||||
CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
|
||||
COPYING.LGPL COPYING.llvm COPYING.lzma COPYING.pcre COPYING.regex \
|
||||
COPYING.unrar COPYING.zlib
|
||||
CLAMAV_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
libtool \
|
||||
openssl \
|
||||
zlib \
|
||||
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
||||
|
||||
# mmap cannot be detected when cross-compiling, needed for mempool support
|
||||
CLAMAV_CONF_ENV = \
|
||||
ac_cv_c_mmap_private=yes \
|
||||
have_cv_ipv6=yes
|
||||
|
||||
# UCLIBC_HAS_FTS is disabled, therefore disable fanotify (missing fts.h)
|
||||
CLAMAV_CONF_OPTS = \
|
||||
--with-dbdir=/var/lib/clamav \
|
||||
--with-ltdl-include=$(STAGING_DIR)/usr/include \
|
||||
--with-ltdl-lib=$(STAGING_DIR)/usr/lib \
|
||||
--with-openssl=$(STAGING_DIR)/usr \
|
||||
--with-zlib=$(STAGING_DIR)/usr \
|
||||
--disable-zlib-vcheck \
|
||||
--disable-rpath \
|
||||
--disable-clamav \
|
||||
--disable-fanotify \
|
||||
--disable-milter \
|
||||
--disable-llvm \
|
||||
--disable-clamdtop \
|
||||
--enable-mempool
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
CLAMAV_DEPENDENCIES += bzip2
|
||||
# autodetection gets confused if host has bzip2, so force it
|
||||
CLAMAV_CONF_ENV += \
|
||||
ac_cv_libbz2_libs=-lbz2 \
|
||||
ac_cv_libbz2_ltlibs=-lbz2
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --disable-bzip2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
||||
CLAMAV_CONF_OPTS += --with-libjson=$(STAGING_DIR)/usr
|
||||
CLAMAV_DEPENDENCIES += json-c
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --without-libjson
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
|
||||
CLAMAV_DEPENDENCIES += libxml2
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --disable-xml
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
CLAMAV_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
|
||||
CLAMAV_DEPENDENCIES += libcurl
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --without-libcurl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
CLAMAV_CONF_OPTS += --with-iconv
|
||||
CLAMAV_DEPENDENCIES += libiconv
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --without-iconv
|
||||
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))
|
||||
Reference in New Issue
Block a user