Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 09:05:49 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363030 - in head/sysutils/tcplist: . files
Message-ID:  <201407270905.s6R95n6W085241@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Jul 27 09:05:49 2014
New Revision: 363030
URL: http://svnweb.freebsd.org/changeset/ports/363030
QAT: https://qat.redports.org/buildarchive/r363030/

Log:
  sysutils/tcplist: Fix compatiblity with sysutils/lsof
  
  PR:		187240
  Submitted by:	Chris Hutchinson
  Fix by:		Ruslan

Modified:
  head/sysutils/tcplist/Makefile
  head/sysutils/tcplist/files/patch-03

Modified: head/sysutils/tcplist/Makefile
==============================================================================
--- head/sysutils/tcplist/Makefile	Sun Jul 27 08:51:37 2014	(r363029)
+++ head/sysutils/tcplist/Makefile	Sun Jul 27 09:05:49 2014	(r363030)
@@ -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

Modified: head/sysutils/tcplist/files/patch-03
==============================================================================
--- head/sysutils/tcplist/files/patch-03	Sun Jul 27 08:51:37 2014	(r363029)
+++ head/sysutils/tcplist/files/patch-03	Sun Jul 27 09:05:49 2014	(r363030)
@@ -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 */
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407270905.s6R95n6W085241>