Skip to contentSkip to conversation

package/tailscale: new package

PATCH Superseded James Hilliard 2 participants 3 messages Aug 20, 2024 – Sep 30, 2024

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 package/tailscale: new package

---
Changes v4 -> v5:
- bump to version 1.72.0
- remove GOPROXY override
Changes v3 -> v4:
- restore GOPROXY override
Changes v2 -> v3:
- set required CONFIG_TUN kernel config option
Changes v1 -> v2:
- don't set GOPROXY

---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/tailscale/Config.in      |  8 ++++++++
 package/tailscale/tailscale.hash |  3 +++
 package/tailscale/tailscale.mk   | 22 ++++++++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/tailscale/Config.in
 create mode 100644 package/tailscale/tailscale.hash
 create mode 100644 package/tailscale/tailscale.mk
DEVELOPERS +1 -0
index d7d0af3543..a02bda2aca 100644
@@ -1503,6 +1503,7 @@ F:	package/serd/
 F:	package/sord/
 F:	package/sratom/
 F:	package/stb/
+F:	package/tailscale/
 F:	package/zchunk/
 F:	support/testing/tests/package/sample_python_rtoml.py
 F:	support/testing/tests/package/test_python_rtoml.py
package/Config.in +1 -0
index f2c63ffb6e..d44886b9db 100644
@@ -2625,6 +2625,7 @@ endif
 	source "package/stunnel/Config.in"
 	source "package/suricata/Config.in"
 	source "package/system-config-printer/Config.in"
+	source "package/tailscale/Config.in"
 	source "package/tcpdump/Config.in"
 	source "package/tcping/Config.in"
 	source "package/tcpreplay/Config.in"
package/tailscale/Config.in new file +8 -0
new file mode 100644
index 0000000000..c81a7134ee
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_TAILSCALE
+	bool "tailscale"
+	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+	select BR2_PACKAGE_HOST_GO
+	help
+	  The easiest, most secure way to use WireGuard and 2FA.
+
+	  https://github.com/tailscale/tailscale
package/tailscale/tailscale.hash new file +3 -0
new file mode 100644
index 0000000000..15c7a42f9f
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  2b08140f9391f51e83c0d8b430c33f240d50d1edeac969c124dec59af3e27054  tailscale-1.72.0-go2.tar.gz
+sha256  d1ee1c7947d4b2c1963ea214d5324f1d4c89f2f1d0f0224889b4dfb868dad725  LICENSE
package/tailscale/tailscale.mk new file +22 -0
new file mode 100644
index 0000000000..291ec49cbe
@@ -0,0 +1,22 @@
+################################################################################
+#
+# tailscale
+#
+################################################################################
+
+TAILSCALE_VERSION = 1.72.0
+TAILSCALE_SITE = $(call github,tailscale,tailscale,v$(TAILSCALE_VERSION))
+TAILSCALE_LICENSE = BSD-3-Clause
+TAILSCALE_LICENSE_FILES = LICENSE
+TAILSCALE_GOMOD = tailscale.com
+TAILSCALE_BUILD_TARGETS = cmd/tailscale cmd/tailscaled
+TAILSCALE_INSTALL_BINS = tailscale tailscaled
+TAILSCALE_LDFLAGS = \
+	-X tailscale.com/version.longStamp=$(TAILSCALE_VERSION) \
+	-X tailscale.com/version.shortStamp=$(TAILSCALE_VERSION)
+
+define TAILSCALE_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_TUN)
+endef
+
+$(eval $(golang-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by Christian Stewart on v5 1/1
#1 lore raw

James,

Quoted 10 lines · James Hilliard
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/tailscale/Config.in      |  8 ++++++++
 package/tailscale/tailscale.hash |  3 +++
 package/tailscale/tailscale.mk   | 22 ++++++++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/tailscale/Config.in
 create mode 100644 package/tailscale/tailscale.hash
 create mode 100644 package/tailscale/tailscale.mk

LGTM.

That said, the latest version is now v1.74.1

Quoted 1 line

+TAILSCALE_VERSION = 1.72.0

Best regards,
Christian Stewart
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 15 lines · Christian Stewart

James,

Quoted 10 lines · James Hilliard
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/tailscale/Config.in      |  8 ++++++++
 package/tailscale/tailscale.hash |  3 +++
 package/tailscale/tailscale.mk   | 22 ++++++++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/tailscale/Config.in
 create mode 100644 package/tailscale/tailscale.hash
 create mode 100644 package/tailscale/tailscale.mk
Quoted 6 lines

LGTM.

That said, the latest version is now v1.74.1

I don't think we have a golang that's new enough for that version yet:
https://github.com/tailscale/tailscale/blob/v1.74.1/go.mod#L3

Quoted 6 lines
Quoted 2 lines

+TAILSCALE_VERSION = 1.72.0

Best regards,
Christian Stewart

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot