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-py
|
2026-02-16 18:21:55 +03:00
|
|
|
|
PKG_VERSION:=2.1.12
|
2026-03-04 16:22:22 +03:00
|
|
|
|
PKG_RELEASE:=3
|
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:=Python module for ruantiblock
|
|
|
|
|
|
URL:=https://github.com/gSpotx2f/ruantiblock_openwrt
|
|
|
|
|
|
PKGARCH:=all
|
|
|
|
|
|
DEPENDS:=+ruantiblock +python3 +python3-setuptools +python3-openssl
|
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.py $(1)/usr/libexec/ruantiblock/ruab_parser.py
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|