2021-02-01 02:38:08 +03:00
|
|
|
|
#
|
2025-04-14 19:05:04 +03:00
|
|
|
|
# (с) 2025 gSpot (https://github.com/gSpotx2f/ruantiblock_openwrt)
|
2021-02-01 02:38:08 +03:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=ruantiblock-mod-lua
|
2025-12-31 03:15:47 +03:00
|
|
|
|
PKG_VERSION:=2.1.11
|
2024-11-26 17:27:10 +03:00
|
|
|
|
PKG_RELEASE:=1
|
2021-02-01 02:38:08 +03:00
|
|
|
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
|
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
2021-12-17 17:01:46 +03:00
|
|
|
|
SECTION:=net
|
|
|
|
|
|
CATEGORY:=Network
|
|
|
|
|
|
TITLE:=Lua module for ruantiblock
|
|
|
|
|
|
URL:=https://github.com/gSpotx2f/ruantiblock_openwrt
|
|
|
|
|
|
PKGARCH:=all
|
|
|
|
|
|
DEPENDS:=+ruantiblock +lua +luasocket +luasec +luabitop +iconv +idn
|
2025-01-21 23:33:51 +03:00
|
|
|
|
#DEPENDS:=+ruantiblock +lua +luasocket +luasec +luabitop +iconv +idn +lua-lzlib
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
2021-12-17 17:01:46 +03:00
|
|
|
|
endef
|
2021-02-01 02:38:08 +03:00
|
|
|
|
|
2021-12-17 17:01:46 +03:00
|
|
|
|
define Build/Configure
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
2021-12-17 17:01:46 +03:00
|
|
|
|
define Build/Compile
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/install
|
2021-12-11 21:07:38 +03:00
|
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec/ruantiblock
|
2021-12-17 17:01:46 +03:00
|
|
|
|
$(INSTALL_BIN) ./files/usr/libexec/ruantiblock/ruab_parser.lua $(1)/usr/libexec/ruantiblock/ruab_parser.lua
|
2024-08-09 23:37:35 +03:00
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
|
|
$(INSTALL_DATA) ./files/usr/lib/lua/iptool.lua $(1)/usr/lib/lua/iptool.lua
|
2025-09-04 18:29:31 +03:00
|
|
|
|
$(INSTALL_DATA) ./files/usr/lib/lua/idn.lua $(1)/usr/lib/lua/idn.lua
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|