2021-02-01 02:38:08 +03:00
|
|
|
|
#
|
|
|
|
|
|
# (с) 2020 gSpot (https://github.com/gSpotx2f/ruantiblock_openwrt)
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=ruantiblock-mod-py
|
2023-02-06 17:27:15 +03:00
|
|
|
|
PKG_VERSION:=1.0
|
2022-12-25 19:45:07 +03:00
|
|
|
|
PKG_RELEASE:=0
|
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
|
2022-09-08 15:52:21 +03:00
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/python3.10
|
|
|
|
|
|
$(INSTALL_DATA) ./files/usr/lib/python3.10/ruab_sum_ip.py $(1)/usr/lib/python3.10/ruab_sum_ip.py
|
2023-01-09 18:11:41 +03:00
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
|
|
$(INSTALL_DATA) ./files/etc/uci-defaults/ruantiblock-mod-py $(1)/etc/uci-defaults/ruantiblock-mod-py
|
2021-02-01 02:38:08 +03:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|