🦄 Sync 2026-08-26 20:42:53

This commit is contained in:
github-actions[bot] committed 2026-08-26 20:42:53 +08:00
1 parent 53bb25bf38
commit e7a277e681
487 files changed
+55081 -19590

No files matched your search

+19 -18
View File
@@ -2,18 +2,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=appfilter
PKG_VERSION:=6.1.8
PKG_RELEASE:=2
PKG_VERSION:=7.0.1
PKG_RELEASE:=3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS +=-Werror=implicit-function-declaration
define Package/appfilter
SECTION:=TT Apps
CATEGORY:=TT Apps
DEPENDS:=+libubox +libubus +libuci +libpthread +libjson-c +libblobmsg-json
TITLE:=OAF client and config service
SECTION:=Base system
CATEGORY:=Base system
DEPENDS:=+libubox +libubus +libuci +libpthread +libjson-c +libblobmsg-json +libuci-lua +libsqlite3 +libcurl
TITLE:=OAF service
endef
define Build/Prepare
@@ -25,7 +25,7 @@ define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/ \
CC="$(TARGET_CROSS)gcc" \
CFLAGS="$(TARGET_CFLAGS)" \
LIBS="$(TARGET_LDFLAGS) -lm -lpthread -lubox -luci -lubus -ljson-c -lblobmsg_json" \
LIBS="$(TARGET_LDFLAGS) -lm -lpthread -lubox -luci -lubus -ljson-c -lblobmsg_json -lsqlite3 -lcurl" \
all
endef
@@ -35,28 +35,29 @@ define Build/Compile/Default
endef
define Package/appfilter/description
openappfilter app
OAF service
endef
define Package/appfilter/conffiles
/etc/config/appfilter
/etc/config/user_info
/etc/fwxd/custom_feature.cfg
/etc/config/fwx
endef
define Package/appfilter/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/appfilter
$(INSTALL_DIR) $(1)/etc/fwxd
$(INSTALL_DIR) $(1)/etc/config
$(CP) ./files/*.cfg $(1)/etc/appfilter/
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d/
$(INSTALL_DATA) ./files/feature.bin $(1)/etc/fwxd/feature.bin
$(INSTALL_DATA) ./files/custom_feature.cfg $(1)/etc/fwxd/custom_feature.cfg
$(INSTALL_BIN) ./files/appfilter.init $(1)/etc/init.d/appfilter
$(INSTALL_BIN) ./files/oaf_rule $(1)/usr/bin
$(INSTALL_BIN) ./files/gen_class.sh $(1)/usr/bin
$(INSTALL_DATA) ./files/appfilter.config $(1)/etc/config/appfilter
$(INSTALL_DATA) ./files/user_info.config $(1)/etc/config/user_info
$(INSTALL_BIN) $(PKG_BUILD_DIR)/oafd $(1)/usr/bin
$(INSTALL_BIN) ./files/hnat.sh $(1)/usr/bin
$(INSTALL_BIN) ./files/rule_manager.lua $(1)/usr/bin/rule_manager
$(INSTALL_BIN) ./files/hnat.sh $(1)/usr/bin/hnat.sh
$(INSTALL_DATA) ./files/oaf_version $(1)/etc/oaf_version
$(INSTALL_DATA) ./files/luci-app-oaf.json $(1)/usr/share/rpcd/acl.d/
endef
$(eval $(call BuildPackage,appfilter))