[Buildroot] [git commit] package/openvpn: adds target install of systemd unit files
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Dec 31 14:41:32 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=7105e65cd6b8f857bab54e4c0a8c57da776b0564
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Edmundo Ferreira <fc.edmundo at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
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 at .service \
+ $(TARGET_DIR)/usr/lib/systemd/system/openvpn-client at .service
+ $(INSTALL) -D -m 0644 $(@D)/distro/systemd/openvpn-server at .service \
+ $(TARGET_DIR)/usr/lib/systemd/system/openvpn-server at .service
+endef
+
$(eval $(autotools-package))
More information about the buildroot
mailing list