diff options
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap.inc')
-rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap.inc | 41 |
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 0000000000..a12eb16615 --- /dev/null +++ b/meta/recipes-connectivity/libpcap/libpcap.inc | |||
@@ -0,0 +1,41 @@ | |||
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" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \ | ||
10 | file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2" | ||
11 | DEPENDS = "flex-native bison-native" | ||
12 | |||
13 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluetooth', '', d)}" | ||
14 | PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4" | ||
15 | PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb" | ||
16 | PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl" | ||
17 | |||
18 | INC_PR = "r5" | ||
19 | |||
20 | SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz" | ||
21 | |||
22 | BINCONFIG = "${bindir}/pcap-config" | ||
23 | |||
24 | inherit autotools binconfig-disabled | ||
25 | |||
26 | EXTRA_OECONF = "--with-pcap=linux" | ||
27 | |||
28 | PACKAGECONFIG ??= "" | ||
29 | PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1" | ||
30 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" | ||
31 | |||
32 | CPPFLAGS_prepend = "-I${S} " | ||
33 | CFLAGS_prepend = "-I${S} " | ||
34 | CXXFLAGS_prepend = "-I${S} " | ||
35 | |||
36 | do_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 | } | ||