tailscale: build with less features
authorZephyr Lykos <git@mochaa.ws>
Wed, 18 Sep 2024 06:29:20 +0000 (14:29 +0800)
committerTianling Shen <cnsztl@gmail.com>
Tue, 1 Oct 2024 10:34:20 +0000 (18:34 +0800)
Omit usually unused features:

- ipn.StateStore implementation using AWS SSM
- BIRD Internet Routing Daemon client
- tstun TAP device for bridging
- Kubernetes kubectl configuration utility
- Command line completion script generation

This shaves off about 500kb from the final executable.

Signed-off-by: Zephyr Lykos <git@mochaa.ws>
net/tailscale/Makefile

index 8e1c57e51f6f6e593c691d67b6db5279cc88fced..02659dc1fc4e1ded55f6f91fdaead561b4762e43 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tailscale
 PKG_VERSION:=1.72.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tailscale/tailscale/tar.gz/v$(PKG_VERSION)?
@@ -28,7 +28,7 @@ GO_PKG:=\
        tailscale.com/cmd/tailscaled
 GO_PKG_LDFLAGS:=-X 'tailscale.com/version.longStamp=$(PKG_VERSION)-$(PKG_RELEASE) (OpenWrt)'
 GO_PKG_LDFLAGS_X:=tailscale.com/version.shortStamp=$(PKG_VERSION)
-GO_PKG_TAGS:=ts_include_cli
+GO_PKG_TAGS:=ts_include_cli,ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube,ts_omit_completion
 
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/golang/golang-package.mk