mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/tailscale: install systemd service files
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Cc: James Hilliard <james.hilliard1@gmail.com>
Cc: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit f027e7c5b3)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
5dc3ea34e7
commit
5ef9d07760
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user