treewide: add conffiles

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
This commit is contained in:
Huangbin Zhan
2020-05-09 05:43:57 +08:00
committed by zhanhb
parent 0206a87146
commit 0ec746ccb6
34 changed files with 168 additions and 37 deletions
+9 -4
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=clamav
PKG_VERSION:=0.102.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.clamav.net/downloads/production/
@@ -56,9 +56,6 @@ define Package/freshclam/description
Database updater for ClamAV
endef
define Package/clamav/conffiles
endef
CONFIGURE_ARGS += \
--sysconfdir=/etc/clamav/ \
--enable-milter \
@@ -89,6 +86,10 @@ CONFIGURE_VARS += $(if $(CONFIG_IPV6),have_cv_ipv6=yes)
TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(if $(CONFIG_USE_MUSL),-lfts)
define Package/clamav/conffiles
/etc/config/clamav
endef
define Package/clamav/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/clamd $(1)/usr/sbin/
@@ -113,6 +114,10 @@ define Package/clamav/install
$(CP) ./files/bytecode.cvd $(1)/usr/share/clamav/
endef
define Package/freshclam/conffiles
/etc/config/freshclam
endef
define Package/freshclam/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/freshclam $(1)/usr/sbin/