-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0d2e17
commit fb5bc1f
Showing
5 changed files
with
195 additions
and
11 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
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,53 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=dns2socks | ||
PKG_VERSION:=2.1 | ||
PKG_RELEASE:=2 | ||
|
||
PKG_SOURCE:=SourceCode.zip | ||
PKG_SOURCE_URL:=@SF/dns2socks | ||
PKG_SOURCE_DATE:=2020-02-18 | ||
PKG_HASH:=406b5003523577d39da66767adfe54f7af9b701374363729386f32f6a3a995f4 | ||
|
||
PKG_MAINTAINER:=ghostmaker | ||
PKG_LICENSE:=BSD-3-Clause | ||
PKG_LICENSE_FILE:=LICENSE | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE) | ||
|
||
define Package/dns2socks | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=IP Addresses and Names | ||
TITLE:=DNS to SOCKS or HTTP proxy | ||
URL:=http://dns2socks.sourceforge.net/ | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/dns2socks/description | ||
This is a command line utility to resolve DNS requests via | ||
a SOCKS tunnel like Tor or a HTTP proxy. | ||
endef | ||
|
||
define Build/Compile | ||
$(TARGET_CC) \ | ||
$(TARGET_CFLAGS) \ | ||
$(TARGET_CPPFLAGS) \ | ||
$(FPIC) \ | ||
-o $(PKG_BUILD_DIR)/DNS2SOCKS/dns2socks \ | ||
$(PKG_BUILD_DIR)/DNS2SOCKS/DNS2SOCKS.c \ | ||
$(TARGET_LDFLAGS) -pthread | ||
endef | ||
|
||
define Package/dns2socks/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/DNS2SOCKS/dns2socks $(1)/usr/bin/dns2socks | ||
endef | ||
|
||
$(eval $(call BuildPackage,dns2socks)) |
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,45 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ipt2socks | ||
PKG_VERSION:=1.1.3 | ||
PKG_RELEASE:=3 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/zfl9/ipt2socks/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=73a2498dc95934c225d358707e7f7d060b5ce81aa45260ada09cbd15207d27d1 | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_LICENSE:=AGPL-3.0 | ||
PKG_LICENSE_FILE:=LICENSE | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ipt2socks | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=Convert iptables to socks5 | ||
URL:=https://github.com/zfl9/ipt2socks | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/ipt2socks/description | ||
Utility for converting iptables (redirect/tproxy) to socks5. | ||
endef | ||
|
||
TARGET_CFLAGS+= $(FPIC) -flto | ||
MAKE_FLAGS+= \ | ||
CFLAGS="-std=c99 -pthread $(TARGET_CFLAGS)" \ | ||
EVCFLAGS="$(TARGET_CFLAGS)" | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=microsocks | ||
PKG_VERSION:=1.0.3 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=6801559b6f8e17240ed8eef17a36eea8643412b5a7476980fd4e24b02a021b82 | ||
|
||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILES:=COPYING | ||
PKG_MAINTAINER:=lean | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_INSTALL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/microsocks | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=Web Servers/Proxies | ||
TITLE:=Tiny, portable SOCKS5 server | ||
URL:=https://github.com/rofl0r/microsocks | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/microsocks/description | ||
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 | ||
|
||
define Package/microsocks/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/microsocks $(1)/usr/bin/microsocks | ||
endef | ||
|
||
$(eval $(call BuildPackage,microsocks)) |
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,54 @@ | ||
# | ||
# Copyright (C) 2014 OpenWrt-dist | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
|
||
PKG_NAME:=redsocks2 | ||
PKG_VERSION:=0.67 | ||
PKG_RELEASE:=4 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
PKG_SOURCE_VERSION:=d94c245ea47859cda5b4b7373308589206b97bdc | ||
PKG_MIRROR_HASH:=938f859d1b55a91aa5cbcda3ddff1d04ccab292f784b0434060c73acab12c457 | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz | ||
PKG_MAINTAINER:=semigodking <[email protected]> | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/redsocks2 | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=Web Servers/Proxies | ||
TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server | ||
URL:=https://github.com/semigodking/redsocks | ||
DEPENDS:=+libevent2 +libopenssl | ||
endef | ||
|
||
define Package/redsocks2/description | ||
This is a modified version of original redsocks. \ | ||
The name is changed to be REDSOCKS2 since this release to distinguish with original redsocks. \ | ||
This variant is useful for anti-GFW (Great Fire Wall). | ||
endef | ||
|
||
define Package/redsocks2/conffiles | ||
/etc/config/redsocks2 | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/Default,DISABLE_SHADOWSOCKS=true) | ||
endef | ||
|
||
define Package/redsocks2/install | ||
$(INSTALL_DIR) $(1)/usr/sbin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin | ||
endef | ||
|
||
$(eval $(call BuildPackage,redsocks2)) |