From owner-freebsd-ports@FreeBSD.ORG Fri Jul 22 17:52:09 2005 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E48716A424; Fri, 22 Jul 2005 17:52:09 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71CD644E8D; Fri, 22 Jul 2005 17:52:08 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 9263F323450; Fri, 22 Jul 2005 19:52:07 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 6358A407E; Fri, 22 Jul 2005 19:51:56 +0200 (CEST) Date: Fri, 22 Jul 2005 19:51:56 +0200 From: Jeremie Le Hen To: Florent Thoumie Message-ID: <20050722175156.GT39292@obiwan.tataz.chchile.org> References: <20050722150032.GP39292@obiwan.tataz.chchile.org> <1122050545.97024.2.camel@cream.xbsd.org> <20050722173215.GR39292@obiwan.tataz.chchile.org> <1122054396.97024.7.camel@cream.xbsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="4eRLI4hEmsdu6Npr" Content-Disposition: inline In-Reply-To: <1122054396.97024.7.camel@cream.xbsd.org> User-Agent: Mutt/1.5.9i Cc: Jeremie Le Hen , freebsd-ports@FreeBSD.org, edwin@FreeBSD.org Subject: Re: ngrep and libpcap from ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 17:52:09 -0000 --4eRLI4hEmsdu6Npr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > --4eRLI4hEmsdu6Npr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ngrep_libpcap_port.patch" 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 +.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} --4eRLI4hEmsdu6Npr--