xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Interface for user-level network packet capture"
2*4882a593SmuzhiyunDESCRIPTION = "Libpcap provides a portable framework for low-level network \
3*4882a593Smuzhiyunmonitoring.  Libpcap can provide network statistics collection, \
4*4882a593Smuzhiyunsecurity monitoring and network debugging."
5*4882a593SmuzhiyunHOMEPAGE = "http://www.tcpdump.org/"
6*4882a593SmuzhiyunBUGTRACKER = "http://sourceforge.net/tracker/?group_id=53067&atid=469577"
7*4882a593SmuzhiyunSECTION = "libs/network"
8*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=5eb289217c160e2920d2e35bddc36453 \
10*4882a593Smuzhiyun                    file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2"
11*4882a593SmuzhiyunDEPENDS = "flex-native bison-native"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "https://www.tcpdump.org/release/${BP}.tar.gz"
14*4882a593SmuzhiyunSRC_URI[sha256sum] = "ed285f4accaf05344f90975757b3dbfe772ba41d1c401c2648b7fa45b711bdd4"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyuninherit autotools binconfig-disabled pkgconfig
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunBINCONFIG = "${bindir}/pcap-config"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Explicitly disable dag support. We don't have recipe for it and if enabled here,
21*4882a593Smuzhiyun# configure script poisons the include dirs with /usr/local/include even when the
22*4882a593Smuzhiyun# support hasn't been detected. Do the same thing for DPDK.
23*4882a593SmuzhiyunEXTRA_OECONF = " \
24*4882a593Smuzhiyun                 --with-pcap=linux \
25*4882a593Smuzhiyun                 --without-dag \
26*4882a593Smuzhiyun                 --without-dpdk \
27*4882a593Smuzhiyun                 "
28*4882a593SmuzhiyunEXTRA_AUTORECONF += "--exclude=aclocal"
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
31*4882a593Smuzhiyun                   ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
32*4882a593Smuzhiyun"
33*4882a593SmuzhiyunPACKAGECONFIG[bluez5] = "--enable-bluetooth,--disable-bluetooth,bluez5"
34*4882a593SmuzhiyunPACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
35*4882a593SmuzhiyunPACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
36*4882a593SmuzhiyunPACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
37*4882a593Smuzhiyun
38*4882a593Smuzhiyundo_configure:prepend () {
39*4882a593Smuzhiyun    #remove hardcoded references to /usr/include
40*4882a593Smuzhiyun    sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.ac
41*4882a593Smuzhiyun}
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunBBCLASSEXTEND = "native"
44