aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Edmundo Ferreira <fc.edmundo@gmail.com>2020-12-15 17:36:10 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-01-05 20:52:35 +0100
commit45f75fb3573ee11d96b8e7ebb09a69d22627779c (patch)
treed64971b715d93f6aa4f256e32e2d05bf0dbd76b4
parent7d7afdf58cedc4f8433ab37d8a686d7c197d227e (diff)
downloadbuildroot-45f75fb3573ee11d96b8e7ebb09a69d22627779c.tar.gz
buildroot-45f75fb3573ee11d96b8e7ebb09a69d22627779c.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> (cherry picked from commit 7105e65cd6b8f857bab54e4c0a8c57da776b0564) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-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 6a64e780c6..45acf335e3 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -68,4 +68,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))