mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
treewide: add conffiles
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
This commit is contained in:
+9
-4
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user