From 05ed63373993d88b5e9b6d0931e85991ed0edc4b Mon Sep 17 00:00:00 2001 From: Deng Qingfang Date: Fri, 4 Jan 2019 00:01:35 +0800 Subject: [PATCH] shadowsocks-client: remove It hasn't been maintained for years and doesn't have recent features such as AEAD crypto and IPv6. (The "recent" update is fix compilation without deprecated OpenSSL APIs, which is made by Rosen Penev) It has been superseded by shadowsocks-libev, which is recently maintained by community and has LuCI frontend. Despite its smaller size, it depends on OpenSSL, which is way larger than MbedTLS, the one shadowsocks-libev used. Thus, it doesn't really fit in space-constrained devices. Signed-off-by: Deng Qingfang --- net/shadowsocks-client/Makefile | 38 --------------- net/shadowsocks-client/files/sslocal.config | 7 --- net/shadowsocks-client/files/sslocal.init | 52 --------------------- 3 files changed, 97 deletions(-) delete mode 100644 net/shadowsocks-client/Makefile delete mode 100644 net/shadowsocks-client/files/sslocal.config delete mode 100755 net/shadowsocks-client/files/sslocal.init diff --git a/net/shadowsocks-client/Makefile b/net/shadowsocks-client/Makefile deleted file mode 100644 index fab28fe4b..000000000 --- a/net/shadowsocks-client/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -include $(TOPDIR)/rules.mk - -PKG_NAME:=shadowsocks-client -PKG_VERSION:=0.6.1 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://codeload.github.com/zhao-gang/shadowsocks-tiny/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=a5083fd26054a7f0e597ead640dc97fc9d57f25f7607e9a582c74b2b4226c261 -PKG_BUILD_DIR:=$(BUILD_DIR)/shadowsocks-tiny-$(PKG_VERSION) - -PKG_MAINTAINER:=Gang Zhao -PKG_LICENSE:=MIT -PKG_LICENSE_FILES:=COPYING - -PKG_BUILD_PARALLEL:=1 - -include $(INCLUDE_DIR)/package.mk - -define Package/shadowsocks-client - SECTION:=net - CATEGORY:=Network - SUBMENU:=Web Servers/Proxies - TITLE:=shadowsocks client for router - URL:=https://github.com/zhao-gang/shadowsocks-tiny - DEPENDS:=+libopenssl -endef - -define Package/shadowsocks-client/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslocal $(1)/usr/bin/ - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_DATA) ./files/sslocal.config $(1)/etc/config/sslocal - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/sslocal.init $(1)/etc/init.d/sslocal -endef - -$(eval $(call BuildPackage,shadowsocks-client)) diff --git a/net/shadowsocks-client/files/sslocal.config b/net/shadowsocks-client/files/sslocal.config deleted file mode 100644 index 28dc261a4..000000000 --- a/net/shadowsocks-client/files/sslocal.config +++ /dev/null @@ -1,7 +0,0 @@ -config sslocal - option server_addr '' - option server_port '' - option local_addr '' - option local_port '' - option password '' - option method '' diff --git a/net/shadowsocks-client/files/sslocal.init b/net/shadowsocks-client/files/sslocal.init deleted file mode 100755 index ac845e5f3..000000000 --- a/net/shadowsocks-client/files/sslocal.init +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2006-2012 OpenWrt.org -# Copyright (C) 2014 Zhao, Gang - -START=99 - -USE_PROCD=1 -PROG=/usr/bin/sslocal - -validate_section_sslocal() { - uci_validate_section sslocal sslocal "${1}" \ - 'server_addr:host' \ - 'server_port:port' \ - 'local_addr:host' \ - 'local_port:port' \ - 'password:string' \ - 'method:string' \ - 'log_level:range(0,7):5' - - return $? -} - -sslocal_instance() { - local server_addr server_port local_addr local_port - local password method log_level - - validate_section_sslocal "${1}" || { - echo "validation failed" - return 1 - } - - procd_open_instance - procd_set_param command "$PROG" - procd_append_param command -s "${server_addr}" -p "${server_port}" - procd_append_param command -u "${local_addr}" -b "${local_port}" - procd_append_param command -k "${password}" -m "${method}" - procd_append_param command -l "${log_level}" - procd_set_param respawn - procd_close_instance -} - -start_service() { - config_load sslocal - - config_foreach sslocal_instance sslocal -} - -service_triggers() -{ - procd_add_reload_trigger "sslocal" - procd_add_validation validate_section_sslocal -}