2023-10-18 09:00:33 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2023 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=omr-bypass
|
|
|
|
PKG_VERSION:=0.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2023-10-19 05:15:43 +00:00
|
|
|
DEPENDS:=+curl +dnsmasq-full +sqlite3-cli +iptables +iptables-mod-extra +ipset
|
2023-10-18 09:00:33 +00:00
|
|
|
TITLE:=OMR-ByPass
|
|
|
|
endef
|
|
|
|
|
2024-01-10 16:33:00 +00:00
|
|
|
define Package/$(PKG_NAME)-nft
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2024-06-17 18:28:35 +00:00
|
|
|
DEPENDS:=+curl +dnsmasq-full +sqlite3-cli +firewall4 @!LINUX_5_4
|
2024-01-10 16:33:00 +00:00
|
|
|
TITLE:=OMR-ByPass NFT
|
|
|
|
endef
|
|
|
|
|
2023-10-18 09:00:33 +00:00
|
|
|
define Package/$(PKG_NAME)/description
|
|
|
|
OMR-ByPass
|
|
|
|
endef
|
|
|
|
|
2024-01-10 16:33:00 +00:00
|
|
|
define Package/$(PKG_NAME)/description
|
|
|
|
OMR-ByPass nft support
|
|
|
|
endef
|
|
|
|
|
2023-10-18 09:00:33 +00:00
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/install
|
2024-01-10 16:33:00 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
rm -f $(1)/etc/init.d/omr-bypass-nft
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)-nft/install
|
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
mv $(1)/etc/init.d/omr-bypass-nft $(1)/etc/init.d/omr-bypass
|
2023-10-18 09:00:33 +00:00
|
|
|
endef
|
|
|
|
|
2024-01-10 16:33:00 +00:00
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)-nft))
|