]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Move examples into openvpn-examples(5) man page
authorArne Schwabe <arne@rfc2549.org>
Thu, 20 May 2021 15:09:31 +0000 (17:09 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 2 Jul 2021 09:50:11 +0000 (11:50 +0200)
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20210520150932.2565217-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22414.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.gitignore
doc/Makefile.am
doc/openvpn-examples.5.rst [new file with mode: 0644]
doc/openvpn.8.rst

index 25d06235b0399c3b4cf9e4ebb62037b3ff13ce95..178076edec8b2c4b4a75d0e6d3389a509a2bf549 100644 (file)
@@ -49,6 +49,8 @@ version.sh
 msvc-env-local.bat
 config-msvc-local.h
 config-msvc-version.h
+doc/openvpn-examples.5
+doc/openvpn-examples.5.html
 doc/openvpn.8
 doc/openvpn.8.html
 /doc/doxygen/html/
index a58a141b957cee605a88f803cb16068a8e9e043c..9f1c2fc9e7e42fd175176374e446f9c994ebd190 100644 (file)
@@ -20,6 +20,7 @@ dist_doc_DATA = \
 dist_noinst_DATA = \
        README.plugins interactive-service-notes.rst \
        openvpn.8.rst \
+       openvpn-examples.5.rst \
        man-sections/advanced-options.rst \
        man-sections/client-options.rst \
        man-sections/connection-profiles.rst \
@@ -52,6 +53,14 @@ else
        @echo "Missing python-docutils - skipping man page generation"
 endif
 
+openvpn-examples.5 :
+if HAVE_PYDOCUTILS
+       $(RST2MAN) $(srcdir)/$@.rst > $@
+else
+       @echo "Missing python-docutils - skipping man page generation"
+endif
+
+
 openvpn.8.html:
 if HAVE_PYDOCUTILS
        $(RST2HTML) $(srcdir)/openvpn.8.rst > $@
@@ -59,19 +68,27 @@ else
        @echo "Missing python-docutils - skipping man/html page generation"
 endif
 
+openvpn-examples.5.html:
+if HAVE_PYDOCUTILS
+       $(RST2HTML) $(srcdir)/openvpn-examples.5.rst > $@
+else
+       @echo "Missing python-docutils - skipping man/html page generation"
+endif
+
+
 if HAVE_PYDOCUTILS
-dist_noinst_DATA += openvpn.8
-dist_html_DATA = openvpn.8.html
+dist_noinst_DATA += openvpn.8 openvpn-examples.5
+dist_html_DATA = openvpn.8.html openvpn-examples.5.html
 
 # Failsafe - do not delete these files unless we can recreate them
 CLEANFILES = \
-        openvpn.8 openvpn.8.html
+        openvpn.8 openvpn.8.html openvpn-examples.5 openvpn-examples.5.html
 
 endif
 
 if WIN32
 else
-dist_man_MANS = openvpn.8
+dist_man_MANS = openvpn.8 openvpn-examples.5
 endif
 
-dist-hook : openvpn.8 openvpn.8.html
+dist-hook : openvpn.8 openvpn.8.html openvpn-examples.5 openvpn-examples.5.html
diff --git a/doc/openvpn-examples.5.rst b/doc/openvpn-examples.5.rst
new file mode 100644 (file)
index 0000000..988b602
--- /dev/null
@@ -0,0 +1,17 @@
+===============================
+ openvpn examples
+===============================
+-------------------------
+ Secure IP tunnel daemon
+-------------------------
+
+:Manual section: 5
+:Manual group: Configuration files
+
+
+INTRODUCTION
+============
+
+This man page gives a few simple examples to create OpenVPN setups and configuration files.
+
+.. include:: man-sections/examples.rst
index db81274fa564b09a5bbd046ee6bb7f33819e899a..99546747864918b9b6bb94869cf587225448458b 100644 (file)
@@ -86,7 +86,6 @@ placed in a configuration file.
 .. include:: man-sections/connection-profiles.rst
 .. include:: man-sections/inline-files.rst
 .. include:: man-sections/signals.rst
-.. include:: man-sections/examples.rst
 
 
 FAQ
@@ -134,6 +133,7 @@ Report all bugs to the OpenVPN team info@openvpn.net
 SEE ALSO
 ========
 
+``openvpn-examples``\(5),
 ``dhcpcd``\(8),
 ``ifconfig``\(8),
 ``openssl``\(1),