summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/libpcap/libpcap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap.inc')
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap.inc41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
new file mode 100644
index 0000000..a12eb16
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -0,0 +1,41 @@
1SUMMARY = "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"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \
10 file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2"
11DEPENDS = "flex-native bison-native"
12
13PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluetooth', '', d)}"
14PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4"
15PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
16PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
17
18INC_PR = "r5"
19
20SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz"
21
22BINCONFIG = "${bindir}/pcap-config"
23
24inherit autotools binconfig-disabled
25
26EXTRA_OECONF = "--with-pcap=linux"
27
28PACKAGECONFIG ??= ""
29PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
30PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
31
32CPPFLAGS_prepend = "-I${S} "
33CFLAGS_prepend = "-I${S} "
34CXXFLAGS_prepend = "-I${S} "
35
36do_configure_prepend () {
37 if [ ! -e ${S}/acinclude.m4 ]; then
38 cat ${S}/aclocal.m4 > ${S}/acinclude.m4
39 fi
40 sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in
41}