From 54c0640f415bfff625490677c08fff65ad0c2870 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 21 Mar 2024 18:25:18 +0800 Subject: [PATCH] luci-app-ssr-plus: add ssl lib selection Signed-off-by: sbwml --- luci-app-ssr-plus/Makefile | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/luci-app-ssr-plus/Makefile b/luci-app-ssr-plus/Makefile index 184b7b919..17e6a6b7c 100644 --- a/luci-app-ssr-plus/Makefile +++ b/luci-app-ssr-plus/Makefile @@ -1,8 +1,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ssr-plus -PKG_VERSION:=187 -PKG_RELEASE:=2 +PKG_VERSION:=188 +PKG_RELEASE:=5 PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NONE_V2RAY \ @@ -32,10 +32,12 @@ PKG_CONFIG_DEPENDS:= \ LUCI_TITLE:=SS/SSR/V2Ray/Trojan/NaiveProxy/TUIC/ShadowTLS/Hysteria/Socks5/Tun LuCI interface LUCI_PKGARCH:=all LUCI_DEPENDS:= \ - @(PACKAGE_libustream-mbedtls||PACKAGE_libustream-openssl||PACKAGE_libustream-wolfssl) \ +coreutils +coreutils-base64 +dns2socks +dns2tcp +dnsmasq-full +ipset +kmod-ipt-nat \ - +ip-full +iptables +iptables-mod-tproxy +lua +lua-neturl +libuci-lua +luci-lib-ipkg +microsocks \ + +ip-full +iptables +iptables-mod-tproxy +lua +lua-neturl +libuci-lua +microsocks \ +tcping +resolveip +shadowsocksr-libev-ssr-check +uclient-fetch \ + +PACKAGE_$(PKG_NAME)_INCLUDE_libustream-mbedtls:libustream-mbedtls \ + +PACKAGE_$(PKG_NAME)_INCLUDE_libustream-openssl:libustream-openssl \ + +PACKAGE_$(PKG_NAME)_INCLUDE_libustream-wolfssl:libustream-wolfssl \ +PACKAGE_$(PKG_NAME)_INCLUDE_V2ray:curl \ +PACKAGE_$(PKG_NAME)_INCLUDE_V2ray:v2ray-core \ +PACKAGE_$(PKG_NAME)_INCLUDE_Xray:curl \ @@ -61,8 +63,23 @@ LUCI_DEPENDS:= \ +PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server:shadowsocksr-libev-ssr-server \ +PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan + define Package/$(PKG_NAME)/config +choice + prompt "Uclient SSL Lib Selection" + default PACKAGE_$(PKG_NAME)_INCLUDE_libustream-openssl + + config PACKAGE_$(PKG_NAME)_INCLUDE_libustream-mbedtls + bool "libustream-mbedtls" + + config PACKAGE_$(PKG_NAME)_INCLUDE_libustream-openssl + bool "libustream-openssl" + + config PACKAGE_$(PKG_NAME)_INCLUDE_PACKAGE_libustream-wolfssl + bool "libustream-wolfssl" +endchoice + choice prompt "Shadowsocks Client Selection" default PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client if aarch64||arm||i386||mips||mipsel||x86_64 @@ -179,8 +196,10 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan bool "Include Trojan" select PACKAGE_$(PKG_NAME)_INCLUDE_IPT2Socks default n + endef + define Package/$(PKG_NAME)/conffiles /etc/config/shadowsocksr /etc/ssrplus/