aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/mrtg-ping-probe
diff options
context:
space:
mode:
authorMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2009-03-09 23:10:05 +0000
committerMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2009-03-09 23:10:05 +0000
commitd70ff7a04e5b3a3354ab68d78cfd95591975f1a3 (patch)
tree49a1e0c4fe203979c290ae9be5d34d273d282bd2 /net-mgmt/mrtg-ping-probe
parent79b0151eb67d95fde9a6e2d8793fc83ed48d8d1d (diff)
downloadports-d70ff7a04e5b3a3354ab68d78cfd95591975f1a3.tar.gz
ports-d70ff7a04e5b3a3354ab68d78cfd95591975f1a3.zip
Notes
Diffstat (limited to 'net-mgmt/mrtg-ping-probe')
-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;
+ }