[Buildroot] [git commit] package/tailscale: install systemd service files
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat Apr 19 14:33:27 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=f027e7c5b3b84ab920f0ded6f3e2f298b7ad4f55
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: TIAN Yuanhao <tianyuanhao3 at 163.com>
Cc: James Hilliard <james.hilliard1 at gmail.com>
Cc: Yann E. MORIN <yann.morin at orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/tailscale/tailscale.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/package/tailscale/tailscale.mk b/package/tailscale/tailscale.mk
index 55f8ac4ab9..7019b9afc9 100644
--- a/package/tailscale/tailscale.mk
+++ b/package/tailscale/tailscale.mk
@@ -15,6 +15,18 @@ TAILSCALE_LDFLAGS = \
-X tailscale.com/version.longStamp=$(TAILSCALE_VERSION) \
-X tailscale.com/version.shortStamp=$(TAILSCALE_VERSION)
+define TAILSCALE_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 0644 $(@D)/cmd/tailscaled/tailscaled.defaults \
+ $(TARGET_DIR)/etc/default/tailscaled
+ $(INSTALL) -D -m 0644 $(@D)/cmd/tailscaled/tailscaled.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/tailscaled.service
+endef
+
+define TAILSCALE_INSTALL_SYMLINK
+ ln -f -s ../bin/tailscaled $(TARGET_DIR)/usr/sbin/tailscaled
+endef
+TAILSCALE_POST_INSTALL_TARGET_HOOKS += TAILSCALE_INSTALL_SYMLINK
+
define TAILSCALE_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_TUN)
endef
More information about the buildroot
mailing list