initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 52fda6e6689e22866a39ec4273713fb6035c38b2 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Mon, 7 May 2018 23:14:46 +0200
|
||||
Subject: [PATCH] clamdscan/proto.c: fix build error due to missing sockaddr_un
|
||||
definition
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
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)
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Upstream-status: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
|
||||
---
|
||||
clamdscan/proto.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/clamdscan/proto.c b/clamdscan/proto.c
|
||||
index 0205f6da0..d3396732f 100644
|
||||
--- a/clamdscan/proto.c
|
||||
+++ b/clamdscan/proto.c
|
||||
@@ -42,6 +42,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
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From 053bac34b9f0f947c58fcdf80ac03d5a6b05aa12 Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Mon, 7 May 2018 23:15:58 +0200
|
||||
Subject: [PATCH] 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>
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Bernd: rebased for 0.103.0]
|
||||
---
|
||||
libclamav/mbox.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libclamav/mbox.c b/libclamav/mbox.c
|
||||
index 71f540c0a..4851297a9 100644
|
||||
--- a/libclamav/mbox.c
|
||||
+++ b/libclamav/mbox.c
|
||||
@@ -91,7 +91,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
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_CLAMAV
|
||||
bool "clamav"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_LIBMSPACK
|
||||
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_ZLIB
|
||||
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/ C++, dynamic library, threads, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \
|
||||
|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
@@ -0,0 +1,14 @@
|
||||
# Locally calculated
|
||||
sha256 9f6e3d18449f3d1a3992771d696685249dfa12736fe2b2929858f2c7d8276ae9 clamav-0.103.3.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
|
||||
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# clamav
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CLAMAV_VERSION = 0.103.3
|
||||
CLAMAV_SITE = https://www.clamav.net/downloads/production
|
||||
CLAMAV_LICENSE = GPL-2.0
|
||||
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_CPE_ID_VENDOR = clamav
|
||||
CLAMAV_SELINUX_MODULES = clamav
|
||||
CLAMAV_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
libcurl \
|
||||
libmspack \
|
||||
openssl \
|
||||
zlib \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
# mmap cannot be detected when cross-compiling, needed for mempool support
|
||||
CLAMAV_CONF_ENV = \
|
||||
ac_cv_c_mmap_private=yes \
|
||||
have_cv_ipv6=yes \
|
||||
OBJC=$(TARGET_CC)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
CLAMAV_LIBS += -latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
||||
CLAMAV_DEPENDENCIES += musl-fts
|
||||
CLAMAV_LIBS += -lfts
|
||||
endif
|
||||
|
||||
CLAMAV_CONF_ENV += LIBS="$(CLAMAV_LIBS)"
|
||||
|
||||
CLAMAV_CONF_OPTS = \
|
||||
--with-dbdir=/var/lib/clamav \
|
||||
--with-libcurl=$(STAGING_DIR)/usr \
|
||||
--with-openssl=$(STAGING_DIR)/usr \
|
||||
--with-system-libmspack=$(STAGING_DIR)/usr \
|
||||
--with-zlib=$(STAGING_DIR)/usr \
|
||||
--disable-zlib-vcheck \
|
||||
--disable-rpath \
|
||||
--disable-clamav \
|
||||
--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_LIBICONV),y)
|
||||
CLAMAV_CONF_OPTS += --with-iconv
|
||||
CLAMAV_DEPENDENCIES += libiconv
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --without-iconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PCRE2),y)
|
||||
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
|
||||
CLAMAV_DEPENDENCIES += pcre2
|
||||
else ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
|
||||
CLAMAV_DEPENDENCIES += pcre
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --without-pcre
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
CLAMAV_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
CLAMAV_DEPENDENCIES += systemd
|
||||
else
|
||||
CLAMAV_CONF_OPTS += --with-systemdsystemunitdir=no
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user