Dear port users! Currently pktstat is incapable to open lo0: $ sudo pktstat -i lo0 -nTtB -w 1 pktstat: unknown datalink type 0 The following patch fixes it: <patch> Index: Makefile =================================================================== --- Makefile (Revision 394397) +++ Makefile (Arbeitskopie) @@ -3,7 +3,7 @@ PORTNAME= pktstat PORTVERSION= 1.8.5 -DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= freebsd@sosend.de @@ -16,6 +16,7 @@ USE_GITHUB= yes GH_ACCOUNT= dleonard0 +GH_TAGNAME= 46935839b USES= autoreconf GNU_CONFIGURE= yes @@ -22,8 +23,4 @@ PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz -post-patch: - @${REINPLACE_CMD} '/struct arphdr/d' ${WRKSRC}/ether.c - @${REINPLACE_CMD} -e 's/IPPORT_USERRESERVED/IPPORT_RESERVED/' ${WRKSRC}/tcp.c - .include <bsd.port.mk> Index: distinfo =================================================================== --- distinfo (Revision 394397) +++ distinfo (Arbeitskopie) @@ -1,2 +1,2 @@ -SHA256 (dleonard0-pktstat-v1.8.5_GH0.tar.gz) = 9a365668d9c5d22484702a858ad1892ae6c7b904b5d0bc9ae075bd88a145b9cd -SIZE (dleonard0-pktstat-v1.8.5_GH0.tar.gz) = 41971 +SHA256 (dleonard0-pktstat-1.8.5-46935839b_GH0.tar.gz) = 9eb2ed137f26a20e681cd85ae1eb7b1bb8ec95a286061f1c167a4db670501835 +SIZE (dleonard0-pktstat-1.8.5-46935839b_GH0.tar.gz) = 42397 </patch> I am not sure if the usage of PORTREVISION is correct here. Cheers Martin
A commit references this bug: Author: robak Date: Mon Nov 30 18:07:34 UTC 2015 New revision: 402693 URL: https://svnweb.freebsd.org/changeset/ports/402693 Log: net-mgmt/pktstat: update to 1.8.5 commit 46935839b - Adds lo0 support PR: 202366 Submitted by: Martin Kulas <freebsd@sosend.de> (maintainer) Changes: head/net-mgmt/pktstat/Makefile head/net-mgmt/pktstat/distinfo
Committed, thanks!