From 7105e65cd6b8f857bab54e4c0a8c57da776b0564 Mon Sep 17 00:00:00 2001 From: Edmundo Ferreira Date: Tue, 15 Dec 2020 17:36:10 +0100 Subject: [PATCH] package/openvpn: adds target install of systemd unit files Signed-off-by: Edmundo Ferreira Signed-off-by: Thomas Petazzoni --- package/openvpn/openvpn.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- 2.30.2