diff options
author | drochner <drochner@pkgsrc.org> | 2006-02-27 11:54:26 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2006-02-27 11:54:26 +0000 |
commit | 05760ee5dfa8a1b76c9fb60927550b546951d828 (patch) | |
tree | 827be549e6c679289654a4c869418ae2144e5a82 /net | |
parent | e1be00a0d4fc33d816a2371e84da587feccfd3bb (diff) | |
download | pkgsrc-05760ee5dfa8a1b76c9fb60927550b546951d828.tar.gz |
recognize libpcap>=0.9.3
Diffstat (limited to 'net')
-rw-r--r-- | net/libpcap/builtin.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/libpcap/builtin.mk b/net/libpcap/builtin.mk index a3aae31647e..961d672abcc 100644 --- a/net/libpcap/builtin.mk +++ b/net/libpcap/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.10 2005/06/01 18:03:07 jlam Exp $ +# $NetBSD: builtin.mk,v 1.11 2006/02/27 11:54:26 drochner Exp $ BUILTIN_PKG:= libpcap @@ -26,6 +26,10 @@ MAKEVARS+= IS_BUILTIN.libpcap .if !defined(BUILTIN_PKG.libpcap) && \ !empty(IS_BUILTIN.libpcap:M[yY][eE][sS]) && \ exists(${H_LIBPCAP}) +# libpcap>=0.9.3: pcap_setdirection added (don't use pcap_inject, this +# was hacked into the NetBSD version of 0.8.3) +_BLTN_PCAP_093!= \ + ${GREP} -c pcap_setdirection ${H_LIBPCAP} || ${TRUE} # libpcap>=0.8.3: MODE_MON added _BLTN_PCAP_083!= \ ${GREP} -c MODE_MON ${H_LIBPCAP} || ${TRUE} @@ -45,7 +49,9 @@ _BLTN_PCAP_060!= \ _BLTN_PCAP_050!= \ ${GREP} -c pcap_compile_nopcap ${H_LIBPCAP} || ${TRUE} -. if ${_BLTN_PCAP_083} == "1" +. if ${_BLTN_PCAP_093} == "1" +BUILTIN_VERSION.libpcap= 0.9.3 +. elif ${_BLTN_PCAP_083} == "1" BUILTIN_VERSION.libpcap= 0.8.3 . elif ${_BLTN_PCAP_081} == "1" BUILTIN_VERSION.libpcap= 0.8.1 |