sing-box: add necessary dependencies and cleanup Makefile
authorVan Waholtz <brvphoenix@gmail.com>
Sun, 5 Mar 2023 12:31:39 +0000 (20:31 +0800)
committerTianling Shen <cnsztl@gmail.com>
Mon, 6 Mar 2023 05:23:06 +0000 (13:23 +0800)
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` (https://github.com/openwrt/openwrt/commit/8bc72ea7be3976711dacc09f0fdab061d6e5152a)

Signed-off-by: Van Waholtz <brvphoenix@gmail.com>
net/sing-box/Makefile

index 921f599cc1a9ea93613440fffdf4e01026431ae9..22b409bb9215886f455dd13af4b7a418ae554fab 100644 (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"