]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Update documentation references in systemd unit files
authorChristoph Schug <com+github@schug.net>
Fri, 8 Mar 2024 14:03:46 +0000 (15:03 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 8 Mar 2024 15:58:23 +0000 (16:58 +0100)
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>
distro/systemd/Makefile.am
distro/systemd/openvpn-client@.service.in
distro/systemd/openvpn-server@.service.in

index 7e8f475355c5b05d9bf541c60b923da74f85eeb3..d1c903f20e9231c4f091e6491f296bcab2bc77f5 100644 (file)
@@ -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 = \
index 8e18629bc284bfe9ee5a5665ef310a79e0517c6c..ae62e8c76fc9a2d7450a7b1be61d20942671a098 100644 (file)
@@ -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]
index 8752440f18614a0c11ccb8475580931be639e31a..5123e0725994629d69eadda22fa8a45c7a2568b0 100644 (file)
@@ -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]