ports/154932: add IPv6 support to net/trafshow port

Y.A. nexther0 at gmail.com
Mon Feb 21 11:50:11 UTC 2011


>Number:         154932
>Category:       ports
>Synopsis:       add IPv6 support to net/trafshow port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 21 11:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Y.A.
>Release:        7.3-RELEASE
>Organization:
>Environment:
>Description:
building net/trafshow with IPv6 support
>How-To-Repeat:
run trafshow and see only 'IPv6' string on this traffic type
>Fix:
apply patch

Patch attached with submission follows:

--- Makefile.orig	2009-09-11 17:24:22.000000000 +0300
+++ Makefile	2011-02-21 13:38:32.000000000 +0200
@@ -22,6 +22,8 @@
 
 MAN1=		trafshow.1
 
+OPTIONS=        IPV6           "Build with IPv6 support" off
+
 .include <bsd.port.pre.mk>
 
 post-patch:
@@ -32,6 +34,10 @@
 	@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-800074+
 .endif
 
+.if defined(WITH_IPV6)
+CFLAGS+=	-DINET6
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list