Code

Readded the "sensors" plugin's dependency on "lm-sensors".
authorSebastian Harl <sh@tokkee.org>
Mon, 25 Feb 2008 11:07:02 +0000 (12:07 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 25 Feb 2008 11:07:02 +0000 (12:07 +0100)
"lm-sensors" has been added to README.Debian.plugins and the list of
recommended packages of the collectd binary package. This obviously got
lost when merging the plugin packages.

debian/bin/gen_plugin_deps.pl
debian/control

index 77ea6d36ad730c18e653be2e442e21f0e706fa10..fb22c7342fbbae1364517b048108ccb4f550dbae 100755 (executable)
 use strict;
 use warnings;
 
+my $extra_deps = {
+       sensors => [ 'lm-sensors' ],
+};
+
 my $infile  = "debian/README.Debian.plugins.in";
 my $outfile = "debian/README.Debian.plugins";
 
@@ -84,6 +88,11 @@ sub print_plugin_deps
                        ++$i;
 
                        print $fh "$name:\n";
+
+                       if (defined $extra_deps->{$name}) {
+                               unshift @deps, @{$extra_deps->{$name}};
+                       }
+
                        foreach my $dep (@deps) {
                                print $fh " * $dep\n";
                        }
index f06f68a323e9185dba992042064bb5e3c6fdcea0..d2b875a8aa4c144fcab0ba364bec912739abdc21 100644 (file)
@@ -12,7 +12,7 @@ Vcs-Browser: http://git.tokkee.org/?p=pkg-collectd.git
 Package: collectd
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Recommends: perl, rrdtool, ${shlibs:Recommends}
+Recommends: perl, rrdtool, lm-sensors, ${shlibs:Recommends}
 Suggests: collectd-dev, librrds-perl, liburi-perl, libhtml-parser-perl,
  libregexp-common-perl, httpd-cgi, hddtemp, mbmon
 Conflicts: collectd-apache, collectd-dns, collectd-hddtemp, collectd-mysql,