Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2015 17:29:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202366] [patch] net-mgmt/pktstat:  lo0 is supported now
Message-ID:  <bug-202366-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202366

            Bug ID: 202366
           Summary: [patch] net-mgmt/pktstat:  lo0 is supported now
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: freebsd@sosend.de
          Keywords: patch

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

-- 
You are receiving this mail because:
You are the assignee for the bug.



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