summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe90b52)
raw | patch | inline | side by side (parent: fe90b52)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 17 Feb 2008 20:35:26 +0000 (21:35 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 17 Feb 2008 20:35:26 +0000 (21:35 +0100) |
debian/patches/00list | patch | blob | history | |
debian/patches/migrate-hddtemp.dpatch | [new file with mode: 0755] | patch | blob |
diff --git a/debian/patches/00list b/debian/patches/00list
index 1ebda453056455e92958f720ec4181369e4cfcb9..e208998eb94838b394f27a079e0fa0a691d6f04a 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
extractDS_path.dpatch
collection_conf_path.dpatch
+migrate-hddtemp.dpatch
diff --git a/debian/patches/migrate-hddtemp.dpatch b/debian/patches/migrate-hddtemp.dpatch
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## migrate-hddtemp.dpatch by Florian Forster <octo@verplant.org>
+##
+## DP: contrib/migrate-3-4.px: Handle `hddtemp' graphs correctly.
+
+@DPATCH@
+
+--- a/contrib/migrate-3-4.px
++++ b/contrib/migrate-3-4.px
+@@ -95,6 +95,7 @@ our %Subdirs =
+ our %TypeTranslate =
+ (
+ cpu => sub { $_ = shift; $_->{'plugin_instance'} = $_->{'type_instance'}; $_->{'type_instance'} = undef; $_; },
++ hddtemp => sub { $_ = shift; $_->{'plugin'} = 'hddtemp'; $_->{'type'} = 'temperature'; $_->{'type_instance'} = $_->{'type_instance'}; $_; },
+ if_errors => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; },
+ if_packets => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; },
+ nfs2_procedures => sub { $_ = shift; @$_{qw(plugin plugin_instance type type_instance)} = ('nfs', 'v2' . $_->{'type_instance'}, 'nfs_procedure', undef); $_; },