Files
ruantiblock_openwrt/ruantiblock-mod-lua/Makefile
T

40 lines
968 B
Makefile
Raw Normal View History

2021-02-01 02:38:08 +03:00
#
2024-02-27 17:31:44 +03:00
# (с) 2024 gSpot (https://github.com/gSpotx2f/ruantiblock_openwrt)
2021-02-01 02:38:08 +03:00
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ruantiblock-mod-lua
2024-11-26 17:27:10 +03:00
PKG_VERSION:=2.1.1
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
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
$(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
2021-02-01 02:38:08 +03:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))