blob: 6635779247f91bf55227a81adff154808104d752 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Interface for user-level network packet capture"
2DESCRIPTION = "Libpcap provides a portable framework for low-level network \
3monitoring. Libpcap can provide network statistics collection, \
4security monitoring and network debugging."
5HOMEPAGE = "http://www.tcpdump.org/"
6BUGTRACKER = "http://sourceforge.net/tracker/?group_id=53067&atid=469577"
7SECTION = "libs/network"
8LICENSE = "BSD"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009LIC_FILES_CHKSUM = "file://LICENSE;md5=5eb289217c160e2920d2e35bddc36453 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010 file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2"
11DEPENDS = "flex-native bison-native"
12
13INC_PR = "r5"
14
15SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz"
16
17BINCONFIG = "${bindir}/pcap-config"
18
19inherit autotools binconfig-disabled pkgconfig bluetooth
20
21EXTRA_OECONF = "--with-pcap=linux"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022EXTRA_AUTORECONF += "--exclude=aclocal"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
Patrick Williamsc0f7c042017-02-23 20:41:17 -060024PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
28# Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap.
29PACKAGECONFIG[bluez5] = ",,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060031PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
33
34CPPFLAGS_prepend = "-I${S} "
35CFLAGS_prepend = "-I${S} "
36CXXFLAGS_prepend = "-I${S} "
37
38do_configure_prepend () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in
40}