forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luci-app-ssr-plus: use ipt2socks to support trojan UDP relay
- Loading branch information
1 parent
fee61c8
commit d7e1d8f
Showing
3 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ipt2socks | ||
PKG_VERSION:=1.0.2 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/zfl9/ipt2socks.git | ||
PKG_SOURCE_VERSION:=e6c9b60444bfe2f30830619aacbc67d26ee1015e | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION) | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION) | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_BUILD_DEPENDS:=libuv | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_LICENSE:=GPLv3 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ipt2socks | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5 | ||
URL:=https://github.com/zfl9/ipt2socks.git | ||
endef | ||
|
||
define Package/ipt2socks/description | ||
Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5. | ||
endef | ||
|
||
define Package/ipt2socks/conffiles | ||
/etc/config/ipt2socks | ||
endef | ||
|
||
MAKE_FLAGS += LIBS="-l:libuv_a.a" | ||
|
||
define Package/ipt2socks/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt2socks $(1)/usr/bin | ||
endef | ||
|
||
$(eval $(call BuildPackage,ipt2socks)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters