aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-common
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-05-15 07:37:48 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-05-15 07:37:48 +0000
commit08a174ad6459b08397be100e8228dd9449bce75f (patch)
treeb11ee838591d35e89960cee16673ec04d81ac167 /sysutils/munin-common
parentea3efa9c3d2975c1fce4680ec0cf179de3b5a73c (diff)
downloadports-08a174ad6459b08397be100e8228dd9449bce75f.tar.gz
ports-08a174ad6459b08397be100e8228dd9449bce75f.zip
On FreeBSD 10, sh handles ${foo:-} differently, and creates an empty
argument, which ping does not like. PR: 228149 Reported by: Niels Bakker Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=469997
Diffstat (limited to 'sysutils/munin-common')
-rw-r--r--sysutils/munin-common/files/patch-plugins_node.d_ping__.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/munin-common/files/patch-plugins_node.d_ping__.in b/sysutils/munin-common/files/patch-plugins_node.d_ping__.in
new file mode 100644
index 000000000000..9344e3a7c1fb
--- /dev/null
+++ b/sysutils/munin-common/files/patch-plugins_node.d_ping__.in
@@ -0,0 +1,11 @@
+Can be removed when 10.4 goes out of support.
+
+--- plugins/node.d/ping_.in.orig 2018-03-28 19:36:43 UTC
++++ plugins/node.d/ping_.in
+@@ -91,5 +91,5 @@ fi
+
+
+ # shellcheck disable=SC2086
+-"${ping:-$PING}" ${ping_args:-'-c 2'} "${host}" ${ping_args2:-} \
++"${ping:-$PING}" ${ping_args:-'-c 2'} "${host}" ${ping_args2:- } \
+ | perl -n -e 'print "ping.value ", $1 / 1000, "\n" if m@min/avg/max.*\s\d+(?:\.\d+)?/(\d+(?:\.\d+)?)/\d+(?:\.\d+)?@; print "packetloss.value $1\n" if /(\d+)% packet loss/;'