From: Edmundo Ferreira Date: Tue, 15 Dec 2020 16:36:10 +0000 (+0100) Subject: package/openvpn: adds target install of systemd unit files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7105e65cd6b8f857bab54e4c0a8c57da776b0564;p=buildroot.git package/openvpn: adds target install of systemd unit files Signed-off-by: Edmundo Ferreira Signed-off-by: Thomas Petazzoni --- 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))