[Pkg-nagios-changes] [SCM] Debian packaging for check-multi (http://my-plugin.de/wiki/projects/check_multi/start) branch, master, updated. 55db4e5620d9bb691e6ec4da96fd87f7a04b632c

Stig Sandbeck Mathisen ssm at debian.org
Mon Oct 25 20:27:20 UTC 2010


The following commit has been merged in the master branch:
commit 0c656472ac281c8effc221fb8b8b2d520508800f
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date:   Mon Oct 25 22:21:50 2010 +0200

    Auto-generate a man page with help2man

diff --git a/debian/control b/debian/control
index 8b1004c..b727c82 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: nagios-plugin-check-multi
 Section: net
 Priority: extra
 Maintainer: Stig Sandbeck Mathisen <ssm at debian.org>
-Build-Depends: debhelper  (>= 7.0.50~), autotools-dev
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, help2man
 Standards-Version: 3.8.4
 Homepage: http://my-plugin.de/wiki/projects/check_multi/start
 
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..9f04a83
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/check_multi.8
diff --git a/debian/rules b/debian/rules
index b8d014d..6f9627b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_VERSION := $(shell dpkg-parsechangelog --format rfc822 | grep-dctrl -ensVersion -S .)
+
 %:
 	dh  $@
 
@@ -21,3 +23,8 @@ override_dh_auto_install:
 			    CFGDIR=/usr/share/doc/nagios-plugin-check-multi/examples
 	find $(CURDIR)/debian/nagios-plugin-check-multi/usr/share/doc/nagios-plugin-check-multi/examples \
 	     -type f -print0 | xargs -0 -r chmod 644
+	# Make a man page
+	help2man --no-info --section=8 --version-string="check_multi $(DEB_VERSION)" \
+		-n "nagios plugin to combine multiple service checks in one run" \
+		$(CURDIR)/debian/nagios-plugin-check-multi/usr/lib/nagios/plugins/check_multi \
+		> $(CURDIR)/debian/check_multi.8

-- 
Debian packaging for check-multi (http://my-plugin.de/wiki/projects/check_multi/start)



More information about the Pkg-nagios-changes mailing list