Subject: Re: CVS commit: pkgsrc/net/libpcap
To: Daniel Carosone <dan@geek.com.au>
From: Juan RP <juan@xtraeme.nopcode.org>
List: pkgsrc-changes
Date: 01/11/2005 21:50:56
--Signature=_Tue__11_Jan_2005_21_50_56_+0100_6oO177R+OYO7rEW7
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 12 Jan 2005 07:47:43 +1100
Daniel Carosone <dan@geek.com.au> wrote:

> On Tue, Jan 11, 2005 at 07:55:29PM +0000, Juan Romero Pardines wrote:
> > libpcap was updated to 0.8.3 in NetBSD-2.99.9 (more or less), so match
> > NetBSD<=2.99.8 as 0.7.2, also match future NetBSD versions as 0.8.3.
> 
> Just as a generic comment, you kinda need to be checking the library
> version installed, rather than the kernel version.  Not sure what the
> best way to do this is, either, as I think that was only bumped
> belatedly.

This is what libpcap-latest from pkgsrc-wip uses:

# libpcap>=0.8.1: pcap_get_selectable_fd added
_PCAP_081!=             \
	 ${GREP} -c pcap_get_selectable_fd ${_LIBPCAP_PCAP_H} || ${TRUE}
# libpcap>=0.8.0: pcap_datalink_val_to_description added
_PCAP_080!=             \
	${GREP} -c pcap_datalink_val_to_description ${_LIBPCAP_PCAP_H} || ${TRUE}
# libpcap>=0.7.0: pcap_setnonblock added
_PCAP_070!=             \
	 ${GREP} -c pcap_setnonblock ${_LIBPCAP_PCAP_H} || ${TRUE}
# libpcap>=0.6.0: prototype change for pcap_freecode
_PCAP_060!=             \
	${GREP} -c pcap_freecode.struct.bpf_program ${_LIBPCAP_PCAP_H} || ${TRUE}
# libpcap>=0.5.0: pcap_compile_nopcap added
_PCAP_050!=             \
	${GREP} -c pcap_compile_nopcap ${_LIBPCAP_PCAP_H} || ${TRUE}

.if ${_PCAP_081} == "1"
BUILTIN_PKG.libpcap=    libpcap-0.8.1
.elif ${_PCAP_080} == "1"
BUILTIN_PKG.libpcap=    libpcap-0.8.0
.elif ${_PCAP_070} == "1"
BUILTIN_PKG.libpcap=    libpcap-0.7.0
.elif ${_PCAP_060} == "1"
BUILTIN_PKG.libpcap=    libpcap-0.6.0
.elif ${_PCAP_050} == "1"
BUILTIN_PKG.libpcap=    libpcap-0.5.0
.else
BUILTIN_PKG.libpcap=    libpcap-0.4.0
.endif

Is that better than we are using right now?

--Signature=_Tue__11_Jan_2005_21_50_56_+0100_6oO177R+OYO7rEW7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iD8DBQFB5DwwypkLYVDran0RAm8fAJ9b6iF6jmnq7ZGfJx4z6+gV+FI7kgCeL8tO
FvIvx/4G88LgjlVbCU6l8hA=
=I2PL
-----END PGP SIGNATURE-----

--Signature=_Tue__11_Jan_2005_21_50_56_+0100_6oO177R+OYO7rEW7--