From: Sebastian Harl Date: Sat, 19 May 2007 22:03:33 +0000 (+0200) Subject: rules: Check for plugin specific manpages and install them to correct package. X-Git-Tag: collectd-4.0.2-1~33 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31782de64ee0054b64b28fe59a85fa638e1a3a84;p=pkg-collectd.git 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. --- 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/