diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-connectivity/libpcap/libpcap.inc | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap.inc')
-rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap.inc | 35 |
1 files changed, 35 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..a984e05ad4 --- /dev/null +++ b/meta/recipes-connectivity/libpcap/libpcap.inc | |||
@@ -0,0 +1,35 @@ | |||
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=34;md5=8d6cf7e17d5745010d633e30bc529ea9" | ||
11 | DEPENDS = "flex-native bison-native libnl" | ||
12 | |||
13 | PACKAGECONFIG ??= "${@base_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[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1" | ||
17 | |||
18 | INC_PR = "r5" | ||
19 | |||
20 | SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz" | ||
21 | |||
22 | inherit autotools binconfig | ||
23 | |||
24 | EXTRA_OECONF = "--with-pcap=linux" | ||
25 | |||
26 | CPPFLAGS_prepend = "-I${S} " | ||
27 | CFLAGS_prepend = "-I${S} " | ||
28 | CXXFLAGS_prepend = "-I${S} " | ||
29 | |||
30 | do_configure_prepend () { | ||
31 | if [ ! -e ${S}/acinclude.m4 ]; then | ||
32 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 | ||
33 | fi | ||
34 | sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in | ||
35 | } | ||