sing-box: update to 1.2.0
authorVan Waholtz <brvphoenix@gmail.com>
Fri, 24 Mar 2023 02:56:01 +0000 (10:56 +0800)
committerTianling Shen <cnsztl@gmail.com>
Fri, 24 Mar 2023 09:05:58 +0000 (17:05 +0800)
Changelogs: https://github.com/SagerNet/sing-box/releases/tag/v1.2.0
Signed-off-by: Van Waholtz <brvphoenix@gmail.com>
net/sing-box/Makefile

index 7103e36e12df5ae213a767ec4dcb33c86a3df06e..9150c06c5cfdf386686d1d656fde2d8e7732df3e 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sing-box
-PKG_VERSION:=1.1.6
+PKG_VERSION:=1.2.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/SagerNet/sing-box/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=2fdf93fd49c9375cd14b2fe2e2163cbad4b65d0cfa422c592855e7810036ef56
+PKG_HASH:=ec70c2eecf85788e82c29ec4ca129e25292d5fc66a510b4b713fe337650740a9
 
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_LICENSE_FILES:=LICENSE
@@ -19,6 +19,8 @@ PKG_USE_MIPS16:=0
 GO_PKG:=github.com/sagernet/sing-box
 GO_PKG_BUILD_PKG:=$(GO_PKG)/cmd/sing-box
 
+GO_PKG_LDFLAGS_X:=$(GO_PKG)/constant.Version=$(PKG_VERSION)
+
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/golang/golang-package.mk
 
@@ -47,6 +49,9 @@ define Package/sing-box/config
                        bool "Build with Clash API support"
                        default y
 
+               config SINGBOX_WITH_DHCP
+                       bool "Build with DHCP support, see DHCP DNS transport."
+
                config SINGBOX_WITH_ECH
                        bool "Build with TLS ECH extension support for TLS outbound"
 
@@ -67,6 +72,10 @@ define Package/sing-box/config
                        bool "Build with QUIC support"
                        default y
 
+               config SINGBOX_WITH_REALITY_SERVER
+                       bool "Build with reality TLS server support, see TLS."
+                       default y
+
                config SINGBOX_WITH_SHADOWSOCKSR
                        bool "Build with ShadowsocksR support"
 
@@ -86,12 +95,14 @@ endef
 PKG_CONFIG_DEPENDS:= \
        CONFIG_SINGBOX_WITH_ACME \
        CONFIG_SINGBOX_WITH_CLASH_API \
+       CONFIG_SINGBOX_WITH_DHCP \
        CONFIG_SINGBOX_WITH_ECH \
        CONFIG_SINGBOX_WITH_EMBEDDED_TOR \
        CONFIG_SINGBOX_WITH_GRPC \
        CONFIG_SINGBOX_WITH_GVISOR \
        CONFIG_SINGBOX_WITH_LWIP \
        CONFIG_SINGBOX_WITH_QUIC \
+       CONFIG_SINGBOX_WITH_REALITY_SERVER \
        CONFIG_SINGBOX_WITH_SHADOWSOCKSR \
        CONFIG_SINGBOX_WITH_UTLS \
        CONFIG_SINGBOX_WITH_V2RAY_API \
@@ -100,6 +111,7 @@ PKG_CONFIG_DEPENDS:= \
 GO_PKG_TAGS:=$(subst $(space),$(comma),$(strip \
        $(if $(CONFIG_SINGBOX_WITH_ACME),with_acme) \
        $(if $(CONFIG_SINGBOX_WITH_CLASH_API),with_clash_api) \
+       $(if $(CONFIG_SINGBOX_WITH_DHCP),with_dhcp) \
        $(if $(CONFIG_SINGBOX_WITH_ECH),with_ech) \
        $(if $(CONFIG_SINGBOX_WITH_EMBEDDED_TOR),with_embedded_tor) \
        $(if $(CONFIG_SINGBOX_WITH_GRPC),with_grpc) \
@@ -107,6 +119,7 @@ GO_PKG_TAGS:=$(subst $(space),$(comma),$(strip \
        $(if $(CONFIG_SINGBOX_WITH_LWIP),with_lwip) \
        $(if $(CONFIG_SINGBOX_WITH_QUIC),with_quic) \
        $(if $(CONFIG_SINGBOX_WITH_SHADOWSOCKSR),with_shadowsocksr) \
+       $(if $(CONFIG_SINGBOX_WITH_REALITY_SERVER),with_reality_server) \
        $(if $(CONFIG_SINGBOX_WITH_UTLS),with_utls) \
        $(if $(CONFIG_SINGBOX_WITH_V2RAY_API),with_v2ray_api) \
        $(if $(CONFIG_SINGBOX_WITH_WIREGUARD),with_wireguard) \