2010-09-28 14:30:42 +00:00
|
|
|
SUMMARY = "Interface for user-level network packet capture"
|
2013-03-05 17:56:40 +00:00
|
|
|
DESCRIPTION = "Libpcap provides a portable framework for low-level network \
|
2010-09-28 14:30:42 +00:00
|
|
|
monitoring. Libpcap can provide network statistics collection, \
|
|
|
|
security monitoring and network debugging."
|
2010-02-23 15:19:41 +00:00
|
|
|
HOMEPAGE = "http://www.tcpdump.org/"
|
2010-06-30 02:31:47 +00:00
|
|
|
BUGTRACKER = "http://sourceforge.net/tracker/?group_id=53067&atid=469577"
|
2010-02-23 15:19:41 +00:00
|
|
|
SECTION = "libs/network"
|
|
|
|
LICENSE = "BSD"
|
2015-11-18 09:34:36 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=5eb289217c160e2920d2e35bddc36453 \
|
2014-08-29 13:10:41 +00:00
|
|
|
file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2"
|
2014-07-08 04:40:06 +00:00
|
|
|
DEPENDS = "flex-native bison-native"
|
2010-02-23 15:19:41 +00:00
|
|
|
|
2013-03-05 17:56:40 +00:00
|
|
|
INC_PR = "r5"
|
2011-11-16 22:05:30 +00:00
|
|
|
|
2014-08-29 13:10:41 +00:00
|
|
|
SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz"
|
2010-02-23 15:19:41 +00:00
|
|
|
|
2014-05-22 09:59:33 +00:00
|
|
|
BINCONFIG = "${bindir}/pcap-config"
|
|
|
|
|
2015-04-06 18:13:21 +00:00
|
|
|
inherit autotools binconfig-disabled pkgconfig bluetooth
|
2010-02-23 15:19:41 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF = "--with-pcap=linux"
|
2016-11-08 11:52:48 +00:00
|
|
|
EXTRA_AUTORECONF += "--exclude=aclocal"
|
2010-02-23 15:19:41 +00:00
|
|
|
|
2016-08-22 09:05:56 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \
|
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
|
|
|
|
"
|
2015-04-06 18:13:21 +00:00
|
|
|
PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
|
2015-06-11 02:10:13 +00:00
|
|
|
# Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap.
|
|
|
|
PACKAGECONFIG[bluez5] = ",,"
|
2014-07-16 15:46:14 +00:00
|
|
|
PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
|
2016-08-22 09:05:56 +00:00
|
|
|
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
2015-04-06 18:13:21 +00:00
|
|
|
PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
|
2014-06-16 13:49:19 +00:00
|
|
|
|
2010-02-23 15:19:41 +00:00
|
|
|
CPPFLAGS_prepend = "-I${S} "
|
|
|
|
CFLAGS_prepend = "-I${S} "
|
|
|
|
CXXFLAGS_prepend = "-I${S} "
|
|
|
|
|
|
|
|
do_configure_prepend () {
|
2012-07-20 17:20:33 +00:00
|
|
|
sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in
|
2010-02-23 15:19:41 +00:00
|
|
|
}
|