swanctl: Generate swanctl.conf(5) man page
authorTobias Brunner <tobias@strongswan.org>
Thu, 17 Apr 2014 17:23:48 +0000 (19:23 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 13:48:16 +0000 (15:48 +0200)
configure.ac
src/swanctl/.gitignore
src/swanctl/Makefile.am
src/swanctl/swanctl.conf.5.head.in [new file with mode: 0644]
src/swanctl/swanctl.conf.5.tail.in [new file with mode: 0644]

index 6c056cf..26065b1 100644 (file)
@@ -1639,6 +1639,8 @@ AC_CONFIG_FILES([
        src/pki/man/pki---signcrl.1
        src/pki/man/pki---acert.1
        src/pki/man/pki---verify.1
+       src/swanctl/swanctl.conf.5.head
+       src/swanctl/swanctl.conf.5.tail
 ])
 
 AC_OUTPUT
index a37446e..b92b502 100644 (file)
@@ -1,2 +1,6 @@
 swanctl
 swanctl.conf
+swanctl.conf.5
+swanctl.conf.5.main
+swanctl.conf.5.head
+swanctl.conf.5.tail
\ No newline at end of file
index f899c97..a232487 100644 (file)
@@ -29,8 +29,12 @@ AM_CPPFLAGS = \
        -DSWANCTLDIR=\""${swanctldir}\"" \
        -DPLUGINS=\""${s_plugins}\""
 
+man_MANS = \
+       swanctl.conf.5
+
 BUILT_SOURCES = swanctl.conf swanctl.conf.5.main
 EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main
+CLEANFILES = $(man_MANS)
 
 .opt.conf:
        $(AM_V_GEN) \
@@ -40,6 +44,10 @@ swanctl.conf.5.main: swanctl.opt
        $(AM_V_GEN) \
        $(PYTHON) $(top_srcdir)/conf/format-options.py -f man $< > $(srcdir)/$@
 
+swanctl.conf.5: swanctl.conf.5.head swanctl.conf.5.main swanctl.conf.5.tail
+       $(AM_V_GEN) \
+       cat swanctl.conf.5.head $(srcdir)/swanctl.conf.5.main swanctl.conf.5.tail > $@
+
 maintainer-clean-local:
        cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main
 
diff --git a/src/swanctl/swanctl.conf.5.head.in b/src/swanctl/swanctl.conf.5.head.in
new file mode 100644 (file)
index 0000000..070c858
--- /dev/null
@@ -0,0 +1,12 @@
+.TH SWANCTL.CONF 5 "" "@PACKAGE_VERSION@" "strongSwan"
+.SH NAME
+swanctl.conf \- swanctl configuration file
+.SH DESCRIPTION
+Bla bla
+
+For a description of the syntax refer to
+.BR strongswan.conf (5).
+
+.SH SETTINGS
+The following settings can be used to configure IKE and CHILD SAs and
+credentials.
diff --git a/src/swanctl/swanctl.conf.5.tail.in b/src/swanctl/swanctl.conf.5.tail.in
new file mode 100644 (file)
index 0000000..4d24608
--- /dev/null
@@ -0,0 +1,10 @@
+.SH FILES
+.
+.nf
+.na
+/etc/swanctl/swanctl.conf       configuration file
+.ad
+.fi
+.
+.SH SEE ALSO
+.BR swanctl (8)