Code

rules: Check for plugin specific manpages and install them to correct package.
authorSebastian Harl <sh@tokkee.org>
Sat, 19 May 2007 22:03:33 +0000 (00:03 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 19 May 2007 22:03:33 +0000 (00:03 +0200)
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

index a0a50295c8886dadca95911947fb5969ae9ebf28..4fea9abf6085156732724e743fe18c3fd76d85c7 100755 (executable)
@@ -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/