ngrep and libpcap from ports

Jeremie Le Hen jeremie at le-hen.org
Fri Jul 22 17:52:09 GMT 2005


Florent,

> 	Still won't work for you (or people who have libpcap installed 
> 	from ports and doesn't have WITH_PORTS_LIBPCAP).
> 
> 	Something like this would be more appropriate :
> 
> 	.if !defined(WITH_PORTS_LIBPCAP)
> 	# Default behavior
> 	CONFIGURE_ARGS+= --with-pcap-includes=/usr/include
> 	.else
> 	CONFIGURE_ARGS+= --with-pcap-includes=${PREFIX}/include
> 	LIB_DEPENDS=     pcap.2:${PORTSDIR}/net/libpcap
> 	.endif

Yes, of course. Shame on me :-).  I tested both this time, it's OK.
Thanks for your patience.

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/ngrep/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile	24 Feb 2005 06:28:20 -0000	1.18
+++ Makefile	22 Jul 2005 17:49:49 -0000
@@ -31,6 +31,13 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITH_PORTS_PCAP)
+CONFIGURE_ARGS+=--with-pcap-includes=/usr/include
+.else
+CONFIGURE_ARGS+=--with-pcap-includes=${PREFIX}/include
+LIB_DEPENDS=	pcap.2:${PORTSDIR}/net/libpcap
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}


More information about the freebsd-ports mailing list