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>
This commit is contained in:
Edmundo Ferreira 2020-12-15 17:36:10 +01:00 committed by Thomas Petazzoni
parent 4be06fa8aa
commit 7105e65cd6

View File

@ -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))