aboutsummaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorGravatar Edmundo Ferreira <fc.edmundo@gmail.com>2020-12-15 17:36:10 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-12-31 15:41:32 +0100
commit7105e65cd6b8f857bab54e4c0a8c57da776b0564 (patch)
treee790f5a203d8d0960a8f34b64851005397a9ffb8 /package/openvpn
parent4be06fa8aa054e59d97866dc5568f4e10762e353 (diff)
downloadbuildroot-7105e65cd6b8f857bab54e4c0a8c57da776b0564.tar.gz
buildroot-7105e65cd6b8f857bab54e4c0a8c57da776b0564.tar.bz2
package/openvpn: adds target install of systemd unit files
Signed-off-by: Edmundo Ferreira <fc.edmundo@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/openvpn')
-rw-r--r--package/openvpn/openvpn.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index 3efc9e2354..741da9784c 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -79,4 +79,11 @@ define OPENVPN_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S60openvpn
endef
+define OPENVPN_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 0644 $(@D)/distro/systemd/openvpn-client@.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/openvpn-client@.service
+ $(INSTALL) -D -m 0644 $(@D)/distro/systemd/openvpn-server@.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/openvpn-server@.service
+endef
+
$(eval $(autotools-package))