aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsanpei <sanpei@FreeBSD.org>2009-03-10 07:10:05 +0800
committersanpei <sanpei@FreeBSD.org>2009-03-10 07:10:05 +0800
commit39ced59afa083946bae7e075e0cfb1ead8a93e4c (patch)
treeb87919a55180069b8591c12a2edee1ce9ad19a5b /net-mgmt
parent2429850c30472f1a6a2a475f717763e789e68843 (diff)
downloadfreebsd-ports-gnome-39ced59afa083946bae7e075e0cfb1ead8a93e4c.tar.gz
freebsd-ports-gnome-39ced59afa083946bae7e075e0cfb1ead8a93e4c.tar.zst
freebsd-ports-gnome-39ced59afa083946bae7e075e0cfb1ead8a93e4c.zip
fix regular expression for packet loss strings.
(/sbin/ping output was changed from "100% packet loss" to "100.0% packet loss") Submitted by: UEHIRA Kenji-san
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/mrtg-ping-probe/Makefile2
-rw-r--r--net-mgmt/mrtg-ping-probe/files/patch-aa13
2 files changed, 12 insertions, 3 deletions
diff --git a/net-mgmt/mrtg-ping-probe/Makefile b/net-mgmt/mrtg-ping-probe/Makefile
index 6b8c9f4fb050..36569868186d 100644
--- a/net-mgmt/mrtg-ping-probe/Makefile
+++ b/net-mgmt/mrtg-ping-probe/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mrtg-ping-probe
PORTVERSION= 2.2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.pwo.de/pub/pwo/mrtg/${PORTNAME}/
diff --git a/net-mgmt/mrtg-ping-probe/files/patch-aa b/net-mgmt/mrtg-ping-probe/files/patch-aa
index d9e81c42c8a7..600a64ec2fc9 100644
--- a/net-mgmt/mrtg-ping-probe/files/patch-aa
+++ b/net-mgmt/mrtg-ping-probe/files/patch-aa
@@ -1,8 +1,17 @@
---- mrtg-ping-probe.org Sat Jan 17 22:27:33 2004
-+++ mrtg-ping-probe Sat Jan 17 22:27:53 2004
+--- mrtg-ping-probe.orig 2003-09-14 03:20:24.000000000 +0900
++++ mrtg-ping-probe 2009-03-10 08:01:20.000000000 +0900
@@ -1,4 +1,4 @@
-#!/bin/perl
+#!%%PERL%%
##################################################################
# @(#) $Id: mrtg-ping-probe,v 2.5 2003/09/13 18:04:29 pwo Exp $
# @(#) mrtg-ping-probe release $Name: Release_2_2_0 $
+@@ -284,7 +284,7 @@
+
+ # try to find packet loss
+ # ToDo: only if requested?)
+- if ($ping_output =~ m@(\d+)% (?:packet )?loss(?:$|,)@m) {
++ if ($ping_output =~ m@(\d+(?:\.\d+)?)% (?:packet )?loss(?:$|,)@m) {
+ # Unix
+ $pt{loss} = $1;
+ }