2020-02-01 02:36:42 +08:00
|
|
|
#
|
2021-01-29 21:07:22 +08:00
|
|
|
# Copyright (C) 2021 CTCGFW Project-OpenWrt
|
|
|
|
# <https://project-openwrt.eu.org>
|
2020-02-01 02:36:42 +08:00
|
|
|
#
|
2021-01-29 21:07:22 +08:00
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
2020-02-01 02:36:42 +08:00
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=redsocks2
|
|
|
|
PKG_VERSION:=0.67
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_RELEASE:=5
|
2020-02-01 02:36:42 +08:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_SOURCE_DATE:=2020-05-10
|
2020-07-01 20:57:18 +08:00
|
|
|
PKG_SOURCE_VERSION:=d94c245ea47859cda5b4b7373308589206b97bdc
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_MIRROR_HASH:=5ca32b2f849af7ebda2cab90bbe286bfd97a69de1a85dac09c8df2fbdd8c947c
|
2020-02-01 02:36:42 +08:00
|
|
|
|
2020-04-23 10:34:44 +08:00
|
|
|
PKG_MAINTAINER:=semigodking <semigodking@gmail.com>
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2020-04-23 10:34:44 +08:00
|
|
|
|
2020-02-01 02:36:42 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/redsocks2
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
|
|
|
|
URL:=https://github.com/semigodking/redsocks
|
2020-04-23 10:34:44 +08:00
|
|
|
DEPENDS:=+libevent2 +libopenssl
|
2020-02-01 02:36:42 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/redsocks2/description
|
2021-01-29 21:07:22 +08:00
|
|
|
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).
|
2020-02-01 02:36:42 +08:00
|
|
|
endef
|
|
|
|
|
2021-01-29 21:07:22 +08:00
|
|
|
MAKE_VARS += DISABLE_SHADOWSOCKS=true
|
2020-06-29 23:26:33 +08:00
|
|
|
|
2020-02-01 02:36:42 +08:00
|
|
|
define Package/redsocks2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/redsocks2
|
|
|
|
$(INSTALL_DATA) ./files/redsocks2.template $(1)/etc/redsocks2/config.template
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,redsocks2))
|