From owner-freebsd-ports@FreeBSD.ORG Fri Jul 22 15:01:36 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 1496416A46D; Fri, 22 Jul 2005 15:01:36 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3404B43D8A; Fri, 22 Jul 2005 15:00:49 +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-1.free.fr (Postfix) with ESMTP id 3DF5E319D52; Fri, 22 Jul 2005 17:00:44 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id B84F6407E; Fri, 22 Jul 2005 17:00:32 +0200 (CEST) Date: Fri, 22 Jul 2005 17:00:32 +0200 From: Jeremie Le Hen To: edwin@FreeBSD.org Message-ID: <20050722150032.GP39292@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GyRA7555PLgSTuth" Content-Disposition: inline User-Agent: Mutt/1.5.9i Cc: freebsd-ports@FreeBSD.org Subject: 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 15:01:36 -0000 --GyRA7555PLgSTuth Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Edwin, I dare to write this small patch because I fail to build the ngrep port when the libpcap port is installe. The configure fails with the following message : %%% checking for a complete set of pcap headers... more than one set found in: /usr/local/include /usr/include please wipe out all unused pcap installations %%% This patch will link against the libpcap from ports if it exists. I'm not sure this is the correct way to write this, feel free to change it's needed. Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > --GyRA7555PLgSTuth 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 14:50:24 -0000 @@ -31,6 +31,11 @@ .include +.if exists(${PREFIX}/include/pcap.h) +CONFIGURE_ARGS+=--with-pcap-includes=${PREFIX}/include +LIB_DEPENDS= pcap.2:${PORTSDIR}/net/libpcap +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} --GyRA7555PLgSTuth--