[Buildroot] [PATCH 1/1] package/tailscale: install service files
TIAN Yuanhao
tianyuanhao3 at 163.com
Fri Apr 11 11:37:31 UTC 2025
Install tailscaled to /usr/sbin, as the service file references that
location.
Signed-off-by: TIAN Yuanhao <tianyuanhao3 at 163.com>
Cc: James Hilliard <james.hilliard1 at gmail.com>
---
package/tailscale/tailscale.mk | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/package/tailscale/tailscale.mk b/package/tailscale/tailscale.mk
index 55f8ac4ab9..c974c0fd6b 100644
--- a/package/tailscale/tailscale.mk
+++ b/package/tailscale/tailscale.mk
@@ -15,6 +15,27 @@ TAILSCALE_LDFLAGS = \
-X tailscale.com/version.longStamp=$(TAILSCALE_VERSION) \
-X tailscale.com/version.shortStamp=$(TAILSCALE_VERSION)
+define TAILSCALE_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/bin/tailscale \
+ $(TARGET_DIR)/usr/bin/tailscale
+ $(INSTALL) -D -m 0755 $(@D)/bin/tailscaled \
+ $(TARGET_DIR)/usr/sbin/tailscaled
+endef
+
+define TAILSCALE_INSTALL_INIT_OPENRC
+ $(INSTALL) -D -m 0644 $(@D)/cmd/tailscaled/tailscaled.defaults \
+ $(TARGET_DIR)/etc/default/tailscaled
+ $(INSTALL) -D -m 0755 $(@D)/cmd/tailscaled/tailscaled.openrc \
+ $(TARGET_DIR)/etc/init.d/S60tailscaled
+endef
+
+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_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_TUN)
endef
--
2.46.1
More information about the buildroot
mailing list