From 31782de64ee0054b64b28fe59a85fa638e1a3a84 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 20 May 2007 00:03:33 +0200 Subject: [PATCH] rules: Check for plugin specific manpages and install them to correct package. Some "special" plugins are documented in their own manpages. If such a manpape exists for any plugin being installed to its own package install the manpage to that package as well. --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index a0a5029..4fea9ab 100755 --- a/debian/rules +++ b/debian/rules @@ -85,8 +85,16 @@ install-arch: build for PLUGIN in apache dns mysql perl ping sensors; do \ plugin_dir=debian/collectd-$$PLUGIN/usr/lib/collectd/; \ + manpage=debian/collectd/usr/share/man/man5/collectd-$$PLUGIN.5; \ + man_dir=debian/collectd-$$PLUGIN/usr/share/man/man5/; \ + \ mkdir -p $$plugin_dir; \ mv debian/collectd/usr/lib/collectd/$$PLUGIN.so $$plugin_dir; \ + \ + if [ -e $$manpage ]; then \ + mkdir -p $$man_dir; \ + mv $$manpage $$man_dir; \ + fi \ done mkdir -p debian/collectd/usr/lib/collectd/utils/ -- 2.30.2