Merge pull request #18709 from paper42/tailscale-version

tailscale: fix --version
This commit is contained in:
Josef Schlehofer 2022-10-17 00:22:14 +02:00 committed by GitHub
commit 802818c7f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,8 @@ PKG_USE_MIPS16:=0
GO_PKG:=\
tailscale.com/cmd/tailscale \
tailscale.com/cmd/tailscaled
GO_PKG_LDFLAGS:=-X 'tailscale.com/version.Long=$(PKG_VERSION)-$(PKG_RELEASE) (OpenWrt)'
GO_PKG_LDFLAGS_X:=tailscale.com/version.Short=$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk

8
net/tailscale/test.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if command -v tailscale; then
tailscale version | grep "$2" || exit 1
fi
if command -v tailscaled; then
tailscaled -version | grep "$2"
fi