All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tailscale: install service files
@ 2025-04-11 11:37 TIAN Yuanhao
  2025-04-11 14:56 ` yann.morin
  2025-04-14 15:07 ` [Buildroot] [PATCH v2 1/1] package/tailscale: install systemd " TIAN Yuanhao
  0 siblings, 2 replies; 9+ messages in thread
From: TIAN Yuanhao @ 2025-04-11 11:37 UTC (permalink / raw)
  To: buildroot; +Cc: TIAN Yuanhao, James Hilliard

Install tailscaled to /usr/sbin, as the service file references that
location.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Cc: James Hilliard <james.hilliard1@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

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-05-02 10:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 11:37 [Buildroot] [PATCH 1/1] package/tailscale: install service files TIAN Yuanhao
2025-04-11 14:56 ` yann.morin
2025-04-12  9:14   ` TIAN Yuanhao
2025-04-16 12:06     ` yann.morin
2025-04-14 15:07 ` [Buildroot] [PATCH v2 1/1] package/tailscale: install systemd " TIAN Yuanhao
2025-04-16 13:37   ` yann.morin
2025-04-17 11:22   ` [Buildroot] [PATCH v3 " TIAN Yuanhao
2025-04-19 14:33     ` Thomas Petazzoni via buildroot
2025-05-02 10:36     ` Arnout Vandecappelle via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.