diff options
author | John Marino <marino@FreeBSD.org> | 2014-07-27 09:05:49 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-07-27 09:05:49 +0000 |
commit | 243c0fd56d0b72bb0b973f756a6f4198d93255e7 (patch) | |
tree | cfedf2f0b4518f88fd0ee5132d25c317aa70d02d /sysutils/tcplist | |
parent | e891dad7f23c2ab54f71139b86a8f2dfde7e00f9 (diff) |
sysutils/tcplist: Fix compatiblity with sysutils/lsof
PR: 187240
Submitted by: Chris Hutchinson
Fix by: Ruslan
Notes
Notes:
svn path=/head/; revision=363030
Diffstat (limited to 'sysutils/tcplist')
-rw-r--r-- | sysutils/tcplist/Makefile | 2 | ||||
-rw-r--r-- | sysutils/tcplist/files/patch-03 | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/tcplist/Makefile b/sysutils/tcplist/Makefile index 82b79fb836be..704dfb0907c7 100644 --- a/sysutils/tcplist/Makefile +++ b/sysutils/tcplist/Makefile @@ -3,7 +3,7 @@ PORTNAME= tcplist PORTVERSION= 2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils net MASTER_SITES= ftp://ftp.cdf.toronto.edu/pub/jdd/tcplist/ EXTRACT_SUFX= .shar diff --git a/sysutils/tcplist/files/patch-03 b/sysutils/tcplist/files/patch-03 index 22d8942a3757..66fef3d7788d 100644 --- a/sysutils/tcplist/files/patch-03 +++ b/sysutils/tcplist/files/patch-03 @@ -1,11 +1,11 @@ ---- lsof.c.orig Tue Mar 9 11:49:40 1999 -+++ lsof.c Tue Mar 9 11:51:17 1999 +--- lsof.c.orig 2014-07-27 08:59:42.000000000 +0000 ++++ lsof.c @@ -27,7 +27,7 @@ #define LSOFCMD "lsof -HPsli TCP | awk '{print $3,$NF}' | sort | uniq" #else /* !OLDLSOF */ /* These use the current (as of 3.62W, at least) parameters for lsof */ -#define LSOFCMD "lsof -nPsli TCP | awk '{print $3,$NF}' | sort | uniq" -+#define LSOFCMD "lsof -nPsli TCP | awk '{print $3,$(NF - 1)}' | sort | uniq" ++#define LSOFCMD "lsof -nPls -iTCP | awk '{print $3,$(NF - 1)}' | tail -n+2 | sort | uniq" #endif /* !OLDLSOF */ #endif /* LSOFCMD */ |