All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/openvpn: adds target install of systemd unit files
@ 2020-12-15 16:36 Edmundo Ferreira
  2020-12-31 14:43 ` Thomas Petazzoni
  2021-01-05 19:55 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Edmundo Ferreira @ 2020-12-15 16:36 UTC (permalink / raw)
  To: buildroot

From: Edmundo Ferreira <fc.edmundo@gmail.com>

Signed-off-by: Edmundo Ferreira <fc.edmundo@gmail.com>
---
 package/openvpn/openvpn.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index 3efc9e2354..399cbf7a85 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -79,4 +79,12 @@ 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))
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-05 19:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 16:36 [Buildroot] [PATCH 1/1] package/openvpn: adds target install of systemd unit files Edmundo Ferreira
2020-12-31 14:43 ` Thomas Petazzoni
2020-12-31 16:31   ` Thomas Petazzoni
2021-01-01 21:22     ` Edmundo Ferreira
2021-01-05 19:55     ` Peter Korsgaard
2021-01-05 19:55 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.