From 7cd687cb7ea576dda2a54114eb4f90838aa13580 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 28 Feb 2021 04:06:30 -0800 Subject: clamav: update to 0.103.1 Convert to using CMake in order to speed up compilation and to fix compilation under glibc. Add extra dependencies since they're now needed. Signed-off-by: Rosen Penev --- net/clamav/Makefile | 58 +++++++++++++++++++++++------------------------------ 1 file changed, 25 insertions(+), 33 deletions(-) (limited to 'net/clamav/Makefile') diff --git a/net/clamav/Makefile b/net/clamav/Makefile index 5e8321daa..3adb15316 100644 --- a/net/clamav/Makefile +++ b/net/clamav/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=clamav -PKG_VERSION:=0.103.0 +PKG_VERSION:=0.103.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.clamav.net/downloads/production/ -PKG_HASH:=32a9745277bfdda80e77ac9ca2f5990897418e9416880f3c31553ca673e80546 +PKG_HASH:=7308c47b89b268af3b9f36140528927a49ff3e633a9c9c0aac2712d81056e257 PKG_MAINTAINER:=Marko Ratkaj \ Lucian Cristian @@ -21,16 +21,16 @@ PKG_LICENSE:=GPL-2.0-only PKG_LICENSE_FILES:=COPYING* PKG_CPE_ID:=cpe:/a:clamav:clamav +PKG_BUILD_DEPENDS:=ncurses PKG_BUILD_PARALLEL:=1 -PKG_INSTALL:=1 -PKG_FIXUP:=autoreconf -include $(INCLUDE_DIR)/uclibc++.mk include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk +include $(INCLUDE_DIR)/nls.mk define Package/clamav/Default SECTION:=net - DEPENDS:=$(CXX_DEPENDS) +libpthread +zlib +libcurl +libjson-c +libmilter-sendmail +libopenssl +libltdl +libpcre2 +USE_MUSL:musl-fts + DEPENDS:=+libstdcpp +libpthread +zlib +libbz2 +libxml2 +libcurl +libjson-c +libmilter-sendmail +libopenssl +libltdl +libpcre2 CATEGORY:=Network SUBMENU:=Web Servers/Proxies TITLE:=ClamAV @@ -56,35 +56,27 @@ define Package/freshclam/description Database updater for ClamAV endef -CONFIGURE_ARGS += \ - --sysconfdir=/etc/clamav/ \ - --enable-milter \ - --disable-bzip2 \ - --disable-check \ - --disable-clamdtop \ - --disable-rpath \ - --disable-xml \ - --disable-zlib-vcheck \ - --with-user=nobody \ - --with-group=nogroup \ - --with-libcurl="$(STAGING_DIR)/usr/" \ - --with-libjson="$(STAGING_DIR)/usr/" \ - --with-openssl="$(STAGING_DIR)/usr/" \ - --with-pcre="$(STAGING_DIR)/usr/" \ - --with-zlib="$(STAGING_DIR)/usr/" \ - --without-iconv \ - --without-libncurses-prefix - -CONFIGURE_VARS += \ - ax_cv_uname_syscall=yes \ - ac_cv_c_mmap_private=yes \ - have_cv_gai=yes \ - ac_cv_sys_file_offset_bits=no - -CONFIGURE_VARS += $(if $(CONFIG_IPV6),have_cv_ipv6=yes) +CMAKE_OPTIONS += \ + -DENABLE_MILTER=ON \ + -DHAVE_ATTRIB_PACKED=ON \ + -DHAVE_ATTRIB_ALIGNED=ON \ + -Dtest_run_result=ON \ + -Dtest_run_result__TRYRUN_OUTPUT=ON \ + -DCLAMAV_USER=nobody \ + -DCLAMAV_GROUP=nogroup \ + -DMMAP_FOR_CROSSCOMPILING=ON \ + -DENABLE_CLAMONACC=ON \ + -DENABLE_DOCS=OFF \ + -DENABLE_DOXYGEN=OFF \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_UNRAR=OFF \ + -DENABLE_SYSTEMD=OFF \ + -DIconv_INCLUDE_DIR=$(ICONV_PREFIX)/include \ + -DIconv_LIBRARY=$(ICONV_PREFIX)/lib/libiconv.$(if $(ICONV_FULL),so,a) \ + -DHAVE_SYSTEM_LFS_FTS=O$(if $(CONFIG_USE_GLIBC),N,FF) TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto -TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(if $(CONFIG_USE_MUSL),-lfts) +TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed define Package/clamav/conffiles /etc/config/clamav -- cgit v1.2.3