Code

Added migrate-hddtemp.dpatch to handle the migration of hddtemp data correctly.
authorSebastian Harl <sh@tokkee.org>
Sun, 17 Feb 2008 20:35:26 +0000 (21:35 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 17 Feb 2008 20:35:26 +0000 (21:35 +0100)
debian/patches/00list
debian/patches/migrate-hddtemp.dpatch [new file with mode: 0755]

index 1ebda453056455e92958f720ec4181369e4cfcb9..e208998eb94838b394f27a079e0fa0a691d6f04a 100644 (file)
@@ -1,3 +1,4 @@
 extractDS_path.dpatch
 collection_conf_path.dpatch
+migrate-hddtemp.dpatch
 
diff --git a/debian/patches/migrate-hddtemp.dpatch b/debian/patches/migrate-hddtemp.dpatch
new file mode 100755 (executable)
index 0000000..93aa325
--- /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); $_; },