sing-box: add necessary dependencies and cleanup Makefile

1. Add `kmod-inet-diag` as a dependency since it is needed for https://sing-box.sagernet.org/configuration/dns/rule/#process_name
2. Remove redundant `default n` (8bc72ea7be)

Signed-off-by: Van Waholtz <brvphoenix@gmail.com>
This commit is contained in:
Van Waholtz 2023-03-05 20:31:39 +08:00 committed by Tianling Shen
parent a79df49a5f
commit 5c2bd22cb2

View file

@ -27,7 +27,7 @@ define Package/sing-box
SECTION:=net
CATEGORY:=Network
URL:=https://sing-box.sagernet.org
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle +kmod-tun
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle +kmod-inet-diag +kmod-tun
USERID:=sing-box=5566:sing-box=5566
endef
@ -42,7 +42,6 @@ define Package/sing-box/config
config SINGBOX_WITH_ACME
bool "Build with ACME TLS certificate issuer support"
default n
config SINGBOX_WITH_CLASH_API
bool "Build with Clash API support"
@ -50,15 +49,12 @@ define Package/sing-box/config
config SINGBOX_WITH_ECH
bool "Build with TLS ECH extension support for TLS outbound"
default n
config SINGBOX_WITH_EMBEDDED_TOR
bool "Build with embedded Tor support"
default n
config SINGBOX_WITH_GRPC
bool "Build with standard gRPC support"
default n
config SINGBOX_WITH_GVISOR
bool "Build with gVisor support"
@ -66,7 +62,6 @@ define Package/sing-box/config
config SINGBOX_WITH_LWIP
bool "Build with LWIP Tun stack support"
default n
config SINGBOX_WITH_QUIC
bool "Build with QUIC support"
@ -74,7 +69,6 @@ define Package/sing-box/config
config SINGBOX_WITH_SHADOWSOCKSR
bool "Build with ShadowsocksR support"
default n
config SINGBOX_WITH_UTLS
bool "Build with uTLS support for TLS outbound"
@ -82,7 +76,6 @@ define Package/sing-box/config
config SINGBOX_WITH_V2RAY_API
bool "Build with V2Ray API support"
default n
config SINGBOX_WITH_WIREGUARD
bool "Build with WireGuard support"