aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Schug2024-03-08 15:03:46 +0100
committerGert Doering2024-03-08 16:59:01 +0100
commitc6a61b84fdec825b0b4855d8cd12afa9ebeec43e (patch)
treeef17f792f0ed649f23c53919a4002f571cbc9bb2
parentf6c894bd7db0fdfcb32f6ff9571569c5bff392c6 (diff)
downloadopenvpn-c6a61b84fdec825b0b4855d8cd12afa9ebeec43e.zip
openvpn-c6a61b84fdec825b0b4855d8cd12afa9ebeec43e.tar.gz
Update documentation references in systemd unit files
The systemd unit files for both client and server were referencing outdated documentation as they were hard-coded to the OpenVPN 2.4.x release branch. Github: closes OpenVPN/openvpn#457 Change-Id: Iee289aa5df9ee0e9a03c0dc562e45dd39836e794 Signed-off-by: Christoph Schug <com+github@schug.net> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20240308140346.4058419-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28369.html Signed-off-by: Gert Doering <gert@greenie.muc.de> (cherry picked from commit f65c656ac034a99cca09557eeb9337e7c00a7e73)
-rw-r--r--distro/systemd/Makefile.am5
-rw-r--r--distro/systemd/openvpn-client@.service.in2
-rw-r--r--distro/systemd/openvpn-server@.service.in2
3 files changed, 6 insertions, 3 deletions
diff --git a/distro/systemd/Makefile.am b/distro/systemd/Makefile.am
index 7e8f475..d1c903f 100644
--- a/distro/systemd/Makefile.am
+++ b/distro/systemd/Makefile.am
@@ -9,7 +9,10 @@
#
%.service: %.service.in Makefile
- $(AM_V_GEN)sed -e 's|\@sbindir\@|$(sbindir)|' \
+ $(AM_V_GEN)sed \
+ -e 's|\@OPENVPN_VERSION_MAJOR\@|$(OPENVPN_VERSION_MAJOR)|g' \
+ -e 's|\@OPENVPN_VERSION_MINOR\@|$(OPENVPN_VERSION_MINOR)|g' \
+ -e 's|\@sbindir\@|$(sbindir)|g' \
$< > $@.tmp && mv $@.tmp $@
EXTRA_DIST = \
diff --git a/distro/systemd/openvpn-client@.service.in b/distro/systemd/openvpn-client@.service.in
index 8e18629..ae62e8c 100644
--- a/distro/systemd/openvpn-client@.service.in
+++ b/distro/systemd/openvpn-client@.service.in
@@ -3,7 +3,7 @@ Description=OpenVPN tunnel for %I
After=network-online.target
Wants=network-online.target
Documentation=man:openvpn(8)
-Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
+Documentation=https://openvpn.net/community-resources/reference-manual-for-openvpn-@OPENVPN_VERSION_MAJOR@-@OPENVPN_VERSION_MINOR@/
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
[Service]
diff --git a/distro/systemd/openvpn-server@.service.in b/distro/systemd/openvpn-server@.service.in
index 8752440..5123e07 100644
--- a/distro/systemd/openvpn-server@.service.in
+++ b/distro/systemd/openvpn-server@.service.in
@@ -3,7 +3,7 @@ Description=OpenVPN service for %I
After=network-online.target
Wants=network-online.target
Documentation=man:openvpn(8)
-Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
+Documentation=https://openvpn.net/community-resources/reference-manual-for-openvpn-@OPENVPN_VERSION_MAJOR@-@OPENVPN_VERSION_MINOR@/
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
[Service]