summaryrefslogtreecommitdiff
path: root/graphics/xplot
diff options
context:
space:
mode:
authorbad <bad>2006-10-14 09:13:14 +0000
committerbad <bad>2006-10-14 09:13:14 +0000
commitb5e45d17dd16d9a553f4dd9ca23430c2c8a16cb0 (patch)
treec6cd05c09feeaa9c656c2e44eb5d2b858d3fa4e9 /graphics/xplot
parent7aa2b9956b158deaaea1fa8e0d005786bb7f196a (diff)
downloadpkgsrc-b5e45d17dd16d9a553f4dd9ca23430c2c8a16cb0.tar.gz
Fixes to tcpdump2xplot:
- Strip output added by modern tcpdump versions in verbose mode from input lines (IP options, tcp checksum status). - Split sack ranges on consecutive spaces instead of just a single space.
Diffstat (limited to 'graphics/xplot')
-rw-r--r--graphics/xplot/Makefile4
-rw-r--r--graphics/xplot/distinfo4
-rw-r--r--graphics/xplot/patches/patch-ab25
3 files changed, 25 insertions, 8 deletions
diff --git a/graphics/xplot/Makefile b/graphics/xplot/Makefile
index bfe979ec00b..c36f88b9bec 100644
--- a/graphics/xplot/Makefile
+++ b/graphics/xplot/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2006/07/08 17:34:02 bad Exp $
+# $NetBSD: Makefile,v 1.23 2006/10/14 09:13:14 bad Exp $
DISTNAME= xplot-0.90.7.1
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= graphics x11
MASTER_SITES= http://www.xplot.org/xplot/
HOMEPAGE= http://www.xplot.org/
diff --git a/graphics/xplot/distinfo b/graphics/xplot/distinfo
index 705c8ce9ec4..66584883d2c 100644
--- a/graphics/xplot/distinfo
+++ b/graphics/xplot/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.7 2006/07/08 17:34:02 bad Exp $
+$NetBSD: distinfo,v 1.8 2006/10/14 09:13:14 bad Exp $
SHA1 (xplot-0.90.7.1.tar.gz) = 164074206addaeb971d2fa65069c7c7be654efc5
RMD160 (xplot-0.90.7.1.tar.gz) = 166915e138ea52e58a67e80cb20d42005fa54621
Size (xplot-0.90.7.1.tar.gz) = 60166 bytes
SHA1 (patch-aa) = 48a475a550a2ea9d2bc50f2782d598830802817e
-SHA1 (patch-ab) = bdc80f5e4c2e00f38e1d9a88f48687d5a85212c5
+SHA1 (patch-ab) = 97c7b292a1c1f8d9294c69d4cc2eacbbff411d2e
SHA1 (patch-ac) = 671b63a8db7c41df4e9f14147988d81ff921aca7
SHA1 (patch-ad) = fd19823030badf91734fde92b45fcaecc06cf0f8
diff --git a/graphics/xplot/patches/patch-ab b/graphics/xplot/patches/patch-ab
index 50f2af2b9a6..70769329cde 100644
--- a/graphics/xplot/patches/patch-ab
+++ b/graphics/xplot/patches/patch-ab
@@ -1,14 +1,31 @@
-$NetBSD: patch-ab,v 1.6 2006/07/08 17:34:02 bad Exp $
+$NetBSD: patch-ab,v 1.7 2006/10/14 09:13:14 bad Exp $
--- tcpdump2xplot.pl.orig 2000-05-03 20:08:19.000000000 +0200
-+++ tcpdump2xplot.pl 2006-07-08 19:23:12.000000000 +0200
-@@ -229,6 +229,9 @@
++++ tcpdump2xplot.pl
+@@ -226,9 +226,16 @@ for ($lineNo = 1; <$Tcpdump>; $lineNo++)
+ local(%opts);
+
+ chop;
++ # strip unwanted output added by modern tcdump versions in verbose mode
++ #
++ s/\(tos.*?\)//; # (tos 0x0, ttl ... length: \d+)
++ s/ \[(?:bad )?tcp (?:ck)?sum.*?\]//; # [tcp sum ok]/[bad tcp cksum ....]
$opts = $_; # save this for later
- split(/ /);
+- split(/ /);
++ split(/ +/);
+ # Sometime after version 3.7.1 tcpdump started to print 'IP'
+ # as the second field in the output. Get rid of it again.
+ splice @_, 1, 1 if $_[1] eq 'IP';
$time = $_[0];
$from = $_[1];
$to = $_[3];
+@@ -412,7 +419,7 @@ for ($lineNo = 1; <$Tcpdump>; $lineNo++)
+
+ # print stderr "SACKS after : $sacks \n";
+
+- @sacks = split(/ /, $sacks);
++ @sacks = split(/ +/, $sacks);
+
+ for ($i = 0; $i <= $#sacks; $i++) {
+ local($start);