2021-02-01 02:38:08 +03:00
|
|
|
|
#
|
|
|
|
|
|
# (с) 2020 gSpot (https://github.com/gSpotx2f/ruantiblock_openwrt)
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=ruantiblock-mod-lua
|
2021-12-11 21:07:38 +03:00
|
|
|
|
PKG_VERSION:=0.9.1
|
2022-03-17 18:48:18 +03:00
|
|
|
|
PKG_RELEASE:=2
|
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
|
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
|
2021-02-01 02:38:08 +03:00
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2021-12-17 17:01:46 +03:00
|
|
|
|
$(INSTALL_DATA) ./files/usr/lib/lua/ruab_sum_ip.lua $(1)/usr/lib/lua/ruab_sum_ip.lua
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|