svn commit: r320854 - in head/net/ipgrab: . files

William Grzybowski wg at FreeBSD.org
Thu Jun 13 23:46:31 UTC 2013


Author: wg
Date: Thu Jun 13 23:46:30 2013
New Revision: 320854
URL: http://svnweb.freebsd.org/changeset/ports/320854

Log:
  net/ipgrab: fix build with clang
  
  - Fix build with clang
  - NOPORTDOCS -> PORT_OPTIONS:MDOCS
  - Unmute install commands
  - Trim Makefile header
  
  Approved by:	culot / jpaetzel (mentors, implicit)

Added:
  head/net/ipgrab/files/
  head/net/ipgrab/files/patch-src_icmpv6.c   (contents, props changed)
Modified:
  head/net/ipgrab/Makefile

Modified: head/net/ipgrab/Makefile
==============================================================================
--- head/net/ipgrab/Makefile	Thu Jun 13 23:45:56 2013	(r320853)
+++ head/net/ipgrab/Makefile	Thu Jun 13 23:46:30 2013	(r320854)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	ipgrab
-# Date created:				23. January 2004
-# Whom:					Aaron Zauner <az_mail at gmx.at>
-#
+# Created by: Aaron Zauner <az_mail at gmx.at>
 # $FreeBSD$
-#
 
 PORTNAME=	ipgrab
 PORTVERSION=	0.9.10
@@ -16,6 +12,7 @@ COMMENT=	IPgrab is a verbose packet snif
 BUILD_DEPENDS=	${LOCALBASE}/include/pcap.h:${PORTSDIR}/net/libpcap
 
 GNU_CONFIGURE=	yes
+USE_CSTD=	gnu89
 INFO=		ipgrab
 MAN8=		ipgrab.8
 DOCS=		README AUTHORS COPYING ChangeLog \
@@ -26,13 +23,15 @@ PLIST_FILES=	bin/ipgrab
 PORTDOCS=	README AUTHORS COPYING ChangeLog DEVELOPER-HOWTO \
 		INSTALL NEWS TODO
 
+.include <bsd.port.options.mk>
+
 do-install:
-	@${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${MANPREFIX}/man/man8/
-	@${INSTALL_DATA} ${WRKSRC}/doc/ipgrab.info ${PREFIX}/info/
-	@${INSTALL_PROGRAM} ${WRKSRC}/src/ipgrab ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
+	${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${MANPREFIX}/man/man8/
+	${INSTALL_DATA} ${WRKSRC}/doc/ipgrab.info ${PREFIX}/info/
+	${INSTALL_PROGRAM} ${WRKSRC}/src/ipgrab ${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 .endif
 
 .include <bsd.port.mk>

Added: head/net/ipgrab/files/patch-src_icmpv6.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/ipgrab/files/patch-src_icmpv6.c	Thu Jun 13 23:46:30 2013	(r320854)
@@ -0,0 +1,13 @@
+diff --git src/icmpv6.c src/icmpv6.c
+index 90a41cc..9b123ce 100644
+--- src/icmpv6.c
++++ src/icmpv6.c
+@@ -205,7 +205,7 @@ void dump_icmpv6(packet_t *pkt)
+     case ICMPV6_TYPE_NEIGHBORSOLICIT:
+       /* Skip 4 unused bytes */
+       if ( skip_packet_bytes (pkt,4) == 0 )
+-         return 0;
++         return;
+ 
+       /* Next 16 bytes are an IPv6 address */
+       if (get_packet_bytes((u_int8_t *) &v6addr, pkt, 16) == 0)


More information about the svn-ports-all mailing list