Post #21, above shows the patches (changes) that I made to the Makefile that refer to the newer sources. The lines that start with - are removed, the ones with + are added (but not the - or +). That version builds with the OpenSSL libraries, which it should build if needed when you build redsocks2.
Likely, yes -- Personally, I add openssl "first" when creating build configs. You'll probably need the luci-ssl-openssl collection, or at least the OpenSSL-based version of uhttpd (and probably things like curl/wget if you add those). I have found it easier to "start over" if I've got the "wrong" TLS package in my config, rather than try to figure out all the things to remove to get the dependencies right. For example, you probably can't remove mbedTLS until you remove a bunch of other things.
.....
make[3] -C package/openwrt-redsocks2 compile
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [world] Error 1
can compile with mbedTLS package? everything worked with mbedTLS OK.
makefile
#
# 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:=2018-09-27
PKG_RELEASE=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks
PKG_SOURCE_VERSION:=4133bcf5f9ee7dd7687ab55bd36c051d149eb3ea
PKG_SOURCE_DATE:=2018-09-27
# make package/openwrt-redsocks2/check
# WARNING: PKG_MIRROR_HASH is missing, set to f100249533ff792df5ed20e4f148d244e91ae2eb8a3edbc181e9481ee3f16ee3
PKG_MIRROR_HASH:=f100249533ff792df5ed20e4f148d244e91ae2eb8a3edbc181e9481ee3f16ee3
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Zhuofei Wang <SemigodKing@gmail.com>
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
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 Package/redsocks2/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/redsocks2.config $(1)/etc/config/redsocks2
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/redsocks2.init $(1)/etc/init.d/redsocks2
$(INSTALL_DIR) $(1)/etc/redsocks2
$(INSTALL_DATA) ./files/redsocks2.template $(1)/etc/redsocks2/config.template
endef
$(eval $(call BuildPackage,redsocks2))
diff --git a/Makefile b/Makefile
index b973745..baca193 100644
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,17 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=redsocks2
-PKG_VERSION:=0.60
-PKG_RELEASE=2
+PKG_VERSION:=2018-09-27
+PKG_RELEASE=1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/aa65535/openwrt-redsocks2/releases/download/v$(PKG_VERSION)
-PKG_MD5SUM:=b88bf23bf75fa7642f8d230db21f73b9
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/semigodking/redsocks
+PKG_SOURCE_VERSION:=4133bcf5f9ee7dd7687ab55bd36c051d149eb3ea
+PKG_SOURCE_DATE:=2018-09-27
+# make package/openwrt-redsocks2/check
+# WARNING: PKG_MIRROR_HASH is missing, set to f100249533ff792df5ed20e4f148d244e91ae2eb8a3edbc181e9481ee3f16ee3
+PKG_MIRROR_HASH:=f100249533ff792df5ed20e4f148d244e91ae2eb8a3edbc181e9481ee3f16ee3
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=LICENSE
@@ -28,7 +33,7 @@ define Package/redsocks2
CATEGORY:=Network
TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
URL:=https://github.com/semigodking/redsocks
- DEPENDS:=+libevent2
+ DEPENDS:=+libevent2 +libopenssl
endef
define Package/redsocks2/description
@@ -37,7 +42,7 @@ The name is changed to be REDSOCKS2 since this release to distinguish with origi
This variant is useful for anti-GFW (Great Fire Wall).
endef
-define Package/shadowsocks-libev-spec/conffiles
+define Package/redsocks2/conffiles
/etc/config/redsocks2
endef