1 | --- Portfile 2012-09-21 22:24:06.000000000 +0200 |
---|
2 | +++ Portfile 2012-11-02 16:32:52.000000000 +0100 |
---|
3 | @@ -36,7 +36,8 @@ |
---|
4 | use_parallel_build no |
---|
5 | patchfiles patch-Makefile-javaplugin \ |
---|
6 | patch-Makefile.config \ |
---|
7 | - patch-munin-node.conf.in |
---|
8 | + patch-munin-node.conf.in \ |
---|
9 | + patch-load.plugin.echofix.diff |
---|
10 | post-patch { |
---|
11 | reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|" \ |
---|
12 | ${worksrcpath}/master/_bin/munin-update.in \ |
---|
13 | diff -ruN munin/files/patch-load.plugin.echofix.diff /tmp/munin.portdir/files/patch-load.plugin.echofix.diff |
---|
14 | --- files/patch-load.plugin.echofix.diff 1970-01-01 01:00:00.000000000 +0100 |
---|
15 | +++ files/patch-load.plugin.echofix.diff 2012-11-02 16:32:52.000000000 +0100 |
---|
16 | @@ -0,0 +1,9 @@ |
---|
17 | +--- plugins/node.d.darwin/load.in 2012-11-02 16:27:47.000000000 +0100 |
---|
18 | ++++ plugins/node.d.darwin/load.in 2012-11-02 16:28:19.000000000 +0100 |
---|
19 | +@@ -93,5 +93,5 @@ |
---|
20 | + # real work - i.e. display the data. Almost always this will be |
---|
21 | + # "value" subfield for every data field. |
---|
22 | + |
---|
23 | +-echo -n "load.value " |
---|
24 | ++echo "load.value \c" |
---|
25 | + uptime | sed -e 's/^.*load averages: [^ ]* //' -e 's/ [^ ]*$//' |
---|