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