mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -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>
This commit is contained in:
committed by
Thomas Petazzoni
parent
0ba6de8a0c
commit
f027e7c5b3
@@ -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