Merge pull request #9671 from BKPepe/clamav1806
[OpenWrt 18.06] clamav: update to version 0.100.3
This commit is contained in:
commit
f496ed58d3
1 changed files with 35 additions and 31 deletions
|
@ -8,16 +8,18 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=clamav
|
||||
PKG_VERSION:=0.100.0
|
||||
PKG_VERSION:=0.100.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr> \
|
||||
Lucian Cristian <lucian.cristian@gmail.com>
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://www.clamav.net/downloads/production/
|
||||
PKG_HASH:=c5c5edaf75a3c53ac0f271148fd6447310bce53f448ec7e6205124a25918f65c
|
||||
PKG_HASH:=5160cdf876c761a7d611f158b7c774ebbbe25856b7c230d9c4e142015e8d3024
|
||||
|
||||
PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr> \
|
||||
Lucian Cristian <lucian.cristian@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING*
|
||||
PKG_CPE_ID:=cpe:/a:clamav:clamav
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
@ -31,7 +33,7 @@ define Package/clamav/Default
|
|||
CATEGORY:=Network
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=ClamAV
|
||||
URL:=http://www.clamav.net/
|
||||
URL:=https://www.clamav.net/
|
||||
endef
|
||||
|
||||
define Package/clamav
|
||||
|
@ -56,33 +58,35 @@ endef
|
|||
define Package/clamav/conffiles
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--sysconfdir=/etc/clamav/ \
|
||||
--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-xml \
|
||||
--without-iconv \
|
||||
--without-libncurses-prefix
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
INCLUDES="" \
|
||||
CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
|
||||
$(if $(CONFIG_USE_MUSL),LIBS="-lpthread -lfts",LIBS="-lpthread") \
|
||||
ax_cv_uname_syscall=yes \
|
||||
ac_cv_c_mmap_private=yes \
|
||||
have_cv_gai=yes \
|
||||
ac_cv_sys_file_offset_bits=no
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--sysconfdir=/etc/clamav/ \
|
||||
--prefix=/usr/ \
|
||||
--exec-prefix=/usr/ \
|
||||
--disable-xml \
|
||||
--disable-bzip2 \
|
||||
--with-user nobody \
|
||||
--with-group nogroup \
|
||||
--with-pcre="$(STAGING_DIR)/usr/" \
|
||||
--with-openssl="$(STAGING_DIR)/usr/" \
|
||||
--with-zlib="$(STAGING_DIR)/usr/" \
|
||||
--disable-zlib-vcheck \
|
||||
--disable-clamdtop \
|
||||
)
|
||||
endef
|
||||
CONFIGURE_VARS += $(if $(CONFIG_IPV6),have_cv_ipv6=yes)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install
|
||||
endef
|
||||
TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(if $(CONFIG_USE_MUSL),-lfts)
|
||||
|
||||
define Package/clamav/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
|
|
Loading…
Reference in a new issue