mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 10:03:56 +08:00
update 2026-08-26 20:40:17
This commit is contained in:
1 parent
d64e131165
commit
1bfa02b7c5
397 files changed
+52332
-16577
No files matched your search
+18
-17
@@ -2,7 +2,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=appfilter
|
||||
PKG_VERSION:=6.1.8
|
||||
PKG_VERSION:=7.0.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
@@ -10,10 +10,10 @@ 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))
|
||||
|
||||
Reference in new issue
Block a user