summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9cb3f3c)
raw | patch | inline | side by side (parent: 9cb3f3c)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 12 Mar 2008 09:39:18 +0000 (10:39 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 12 Mar 2008 11:14:56 +0000 (12:14 +0100) |
debian/patches/00list | patch | blob | history | |
debian/patches/collection_conf_path.dpatch | patch | blob | history | |
debian/patches/extractDS_path.dpatch | [deleted file] | patch | blob | history |
debian/patches/rrd_filter_path.dpatch | [new file with mode: 0755] | patch | blob |
debian/rules | patch | blob | history |
diff --git a/debian/patches/00list b/debian/patches/00list
index 1ebda453056455e92958f720ec4181369e4cfcb9..332b35c8333c22b54c6ead8e9d0f6750c3bfbc7f 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
-extractDS_path.dpatch
+rrd_filter_path.dpatch
collection_conf_path.dpatch
diff --git a/debian/patches/collection_conf_path.dpatch b/debian/patches/collection_conf_path.dpatch
index c4f5b9baaf9be0e2a1e82478d2a9973f131af0ac..bb0f3f99874df599c48342dc0c7f3f83b5ac5f79 100755 (executable)
#!/bin/sh /usr/share/dpatch/dpatch-run
-## extractDS_path.dpatch by Sebastian Harl <sh@tokkee.org>
+## collection_conf_path.dpatch by Sebastian Harl <sh@tokkee.org>
##
## DP: Set the path of collection.conf to /etc/collectd/.
diff --git a/debian/patches/extractDS_path.dpatch b/debian/patches/extractDS_path.dpatch
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh /usr/share/dpatch/dpatch-run
-## extractDS_path.dpatch by Sebastian Harl <sh@tokkee.org>
-##
-## DP: Set the path of extractDS.px to /usr/lib/collectd/utils/.
-
-@DPATCH@
-
-diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
---- a/contrib/migrate-3-4.px
-+++ b/contrib/migrate-3-4.px
-@@ -165,7 +165,7 @@ for (@Files)
- my $src_ds = $src_dses->[$i];
- $dest->{'type_instance'} = $type_instances->[$i];
- $dest_filename = get_filename ($dest);
-- print "./extractDS.px -i '$InDir/$orig_filename' -s '$src_ds' -o '$OutDir/$dest_filename' -d '$dst_ds'\n";
-+ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s '$src_ds' -o '$OutDir/$dest_filename' -d '$dst_ds'\n";
- }
- }
- elsif (exists ($TypeRename{$orig->{'type'}}))
-@@ -360,17 +360,17 @@ sub special_disk
- $OutDirs{$dest_directory} = 1;
- }
-
-- print "./extractDS.px -i '$InDir/$orig_filename' -s 'rmerged' -s 'wmerged' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-+ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rmerged' -s 'wmerged' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-
- $dest->{'type'} = 'disk_octets';
- $dest_filename = get_filename ($dest);
-- print "./extractDS.px -i '$InDir/$orig_filename' -s 'rbytes' -s 'wbytes' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-+ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rbytes' -s 'wbytes' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-
- $dest->{'type'} = 'disk_ops';
- $dest_filename = get_filename ($dest);
-- print "./extractDS.px -i '$InDir/$orig_filename' -s 'rcount' -s 'wcount' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-+ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rcount' -s 'wcount' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-
- $dest->{'type'} = 'disk_time';
- $dest_filename = get_filename ($dest);
-- print "./extractDS.px -i '$InDir/$orig_filename' -s 'rtime' -s 'wtime' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
-+ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rtime' -s 'wtime' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
- }
diff --git a/debian/patches/rrd_filter_path.dpatch b/debian/patches/rrd_filter_path.dpatch
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## rrd_filter_path.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: Set the path of rrd_filter.px to /usr/lib/collectd/utils/.
+
+@DPATCH@
+
+diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
+--- a/contrib/migrate-3-4.px
++++ b/contrib/migrate-3-4.px
+@@ -166,7 +166,7 @@ for (@Files)
+ my $src_ds = $src_dses->[$i];
+ $dest->{'type_instance'} = $type_instances->[$i];
+ $dest_filename = get_filename ($dest);
+- print "./rrd_filter.px -i '$InDir/$orig_filename' -m '${src_ds}:${dst_ds}' -o '$OutDir/$dest_filename'\n";
++ print "/usr/lib/collectd/utils/rrd_filter.px -i '$InDir/$orig_filename' -m '${src_ds}:${dst_ds}' -o '$OutDir/$dest_filename'\n";
+ }
+ }
+ elsif (exists ($TypeRename{$orig->{'type'}}))
+@@ -361,19 +361,19 @@ sub special_disk
+ $OutDirs{$dest_directory} = 1;
+ }
+
+- print "./rrd_filter.px -i '$InDir/$orig_filename' -m 'rmerged:read' -m 'wmerged:write' -o '$OutDir/$dest_filename'\n";
++ print "/usr/lib/collectd/utils/rrd_filter.px -i '$InDir/$orig_filename' -m 'rmerged:read' -m 'wmerged:write' -o '$OutDir/$dest_filename'\n";
+
+ $dest->{'type'} = 'disk_octets';
+ $dest_filename = get_filename ($dest);
+- print "./rrd_filter.px -i '$InDir/$orig_filename' -m 'rbytes:read' -m 'wbytes:write' -o '$OutDir/$dest_filename'\n";
++ print "/usr/lib/collectd/utils/rrd_filter.px -i '$InDir/$orig_filename' -m 'rbytes:read' -m 'wbytes:write' -o '$OutDir/$dest_filename'\n";
+
+ $dest->{'type'} = 'disk_ops';
+ $dest_filename = get_filename ($dest);
+- print "./rrd_filter.px -i '$InDir/$orig_filename' -m 'rcount:read' -m 'wcount:write' -o '$OutDir/$dest_filename'\n";
++ print "/usr/lib/collectd/utils/rrd_filter.px -i '$InDir/$orig_filename' -m 'rcount:read' -m 'wcount:write' -o '$OutDir/$dest_filename'\n";
+
+ $dest->{'type'} = 'disk_time';
+ $dest_filename = get_filename ($dest);
+- print "./rrd_filter.px -i '$InDir/$orig_filename' -m 'rtime:read' -m 'wtime:write' -o '$OutDir/$dest_filename'\n";
++ print "/usr/lib/collectd/utils/rrd_filter.px -i '$InDir/$orig_filename' -m 'rtime:read' -m 'wtime:write' -o '$OutDir/$dest_filename'\n";
+ }
+
+ sub exit_usage
diff --git a/debian/rules b/debian/rules
index 9e16d997400f52ea259173b088f53adc1269eccb..83334b62fa12bbed0d5e65a38c124a54676673d6 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
debian/collectd/etc/collectd/thresholds.conf
mkdir -p debian/collectd/usr/lib/collectd/utils/
- for UTIL in extractDS.px migrate-3-4.px; do \
+ for UTIL in rrd_filter.px migrate-3-4.px; do \
cp contrib/$$UTIL debian/collectd/usr/lib/collectd/utils/; \
done