mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ipt2socks
microsocks
: cleanup makefile (#8578)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
53227ee36a
commit
9d4eae4a8e
@ -1,10 +1,6 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021 ImmortalWrt
|
# Copyright (C) 2021 ImmortalWrt.org
|
||||||
# <https://immortalwrt.org>
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v3.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
@ -27,9 +23,13 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/ipt2socks
|
define Package/ipt2socks
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5
|
TITLE:=Convert iptables to socks5
|
||||||
URL:=https://github.com/zfl9/ipt2socks
|
URL:=https://github.com/zfl9/ipt2socks
|
||||||
DEPENDS:=+libpthread
|
DEPENDS:=+libpthread +libuv
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/ipt2socks/description
|
||||||
|
Utility for converting iptables (redirect/tproxy) to socks5.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC) -flto
|
TARGET_CFLAGS += $(FPIC) -flto
|
||||||
@ -40,4 +40,4 @@ define Package/ipt2socks/install
|
|||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/ipt2socks $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/ipt2socks $(1)/usr/bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ipt2socks))
|
$(eval $(call BuildPackage,ipt2socks))
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
#
|
||||||
|
# Copyright (C) 2021 ImmortalWrt.org
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=microsocks
|
PKG_NAME:=microsocks
|
||||||
@ -18,20 +22,22 @@ PKG_INSTALL:=1
|
|||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/microsocks
|
define Package/microsocks
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=Web Servers/Proxies
|
SUBMENU:=Web Servers/Proxies
|
||||||
TITLE:=microsocks for OpenWRT
|
TITLE:=Tiny, portable SOCKS5 server
|
||||||
DEPENDS:=+libpthread
|
URL:=https://github.com/rofl0r/microsocks
|
||||||
|
DEPENDS:=+libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/microsocks/description
|
define Package/microsocks/description
|
||||||
microsocks is a Tiny Proxy in C.
|
A SOCKS5 service that you can run on your remote boxes to tunnel connections
|
||||||
|
through them, if for some reason SSH doesn't cut it for you.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/microsocks/install
|
define Package/microsocks/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/microsocks $(1)/usr/bin/microsocks
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/microsocks $(1)/usr/bin/microsocks
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,microsocks))
|
$(eval $(call BuildPackage,microsocks))
|
||||||
|
Loading…
Reference in New Issue
Block a user