Subject: Re: CVS commit: pkgsrc/net/libpcap
To: None <dan@geek.com.au>
From: Juan RP <juan@xtraeme.nopcode.org>
List: pkgsrc-changes
Date: 01/11/2005 22:11:47
--Signature=_Tue__11_Jan_2005_22_11_47_+0100_WT_ceZOZLS_F9PVf
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 11 Jan 2005 21:50:56 +0100
Juan RP <juan@xtraeme.nopcode.org> wrote:

> 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

That's a better way to check the version, but we'd have to find a way to
know if the libpcap version is 0.8.3, otherwise it won't work for ntop
(which requires 0.8.3).



--Signature=_Tue__11_Jan_2005_22_11_47_+0100_WT_ceZOZLS_F9PVf
Content-Type: application/pgp-signature

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

iD8DBQFB5EETypkLYVDran0RAldmAJ0Ut1AFsEvqdk4/2wG9urviXv3X4wCgzEnC
HCg5kOlsALUi0WKcRWg7sqM=
=L6pu
-----END PGP SIGNATURE-----

--Signature=_Tue__11_Jan_2005_22_11_47_+0100_WT_ceZOZLS_F9PVf--