68c4d1014f
Changes: Support link types that use 802.2 always, never, and sometimes. Don't decrease the size of the BPF buffer from the default. Support frame relay. Handle 32-bit timestamps in DLPI, and pass the right buffer size. Handle Linux systems with modern kernel but without SOL_PACKET in the userland headers. Linux support for ARPHRD_RAWHDLC. Handle 32-bit timestamps in snoop. Support eg (Octane/O2xxx/O3xxx Gigabit) devices. Add new reserved DLT types.
32 lines
786 B
Makefile
32 lines
786 B
Makefile
# $NetBSD: buildlink2.mk,v 1.3 2003/03/25 10:51:13 wiz Exp $
|
|
|
|
.if !defined(LIBPCAP_BUILDLINK2_MK)
|
|
LIBPCAP_BUILDLINK2_MK= # defined
|
|
|
|
BUILDLINK_DEPENDS.libpcap?= libpcap>=0.7.2
|
|
BUILDLINK_PKGSRCDIR.libpcap?= ../../net/libpcap
|
|
|
|
.if exists(/usr/include/pcap.h)
|
|
_NEED_LIBPCAP= NO
|
|
.else
|
|
_NEED_LIBPCAP= YES
|
|
.endif
|
|
|
|
.if ${_NEED_LIBPCAP} == "YES"
|
|
BUILDLINK_PACKAGES+= libpcap
|
|
EVAL_PREFIX+= BUILDLINK_PREFIX.libpcap=libpcap
|
|
BUILDLINK_PREFIX.libpcap_DEFAULT= ${LOCALBASE}
|
|
.else
|
|
BUILDLINK_PREFIX.libpcap= /usr
|
|
.endif
|
|
|
|
BUILDLINK_FILES.libpcap= include/pcap.h
|
|
BUILDLINK_FILES.libpcap+= include/pcap-namedb.h
|
|
BUILDLINK_FILES.libpcap+= include/net/bpf.h
|
|
BUILDLINK_FILES.libpcap+= lib/libpcap.*
|
|
|
|
BUILDLINK_TARGETS+= libpcap-buildlink
|
|
|
|
libpcap-buildlink: _BUILDLINK_USE
|
|
|
|
.endif # LIBPCAP_BUILDLINK2_MK
|