diff options
Diffstat (limited to 'meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb')
-rw-r--r-- | meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb b/meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb new file mode 100644 index 000000000..d3ca24f3e --- /dev/null +++ b/meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "A sophisticated network protocol analyzer" | ||
2 | HOMEPAGE = "http://www.tcpdump.org/" | ||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" | ||
5 | SECTION = "console/network" | ||
6 | DEPENDS = "libpcap" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | http://www.tcpdump.org/release/tcpdump-${PV}.tar.gz \ | ||
10 | file://tcpdump_configure_no_-O2.patch \ | ||
11 | file://0001-minimal-IEEE802.15.4-allowed.patch \ | ||
12 | file://ipv6-cross.patch \ | ||
13 | file://configure.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "a3fe4d30ac85ff5467c889ff46b7e1e8" | ||
16 | SRC_URI[sha256sum] = "efd08b610210d39977ec3175fa82dad9fbd33587930081be2a905a712dba4286" | ||
17 | |||
18 | inherit autotools | ||
19 | CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" | ||
20 | |||
21 | EXTRA_OECONF = "--without-crypto --disable-rpath \ | ||
22 | ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6', '--disable-ipv6', d)}" | ||
23 | |||
24 | EXTRA_AUTORECONF += " -I m4" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | mkdir -p ${S}/m4 | ||
28 | if [ -f aclocal.m4 ]; then | ||
29 | mv aclocal.m4 ${S}/m4 | ||
30 | fi | ||
31 | # AC_CHECK_LIB(dlpi.. was looking to host /lib | ||
32 | sed -i 's:-L/lib::g' ./configure.in | ||
33 | } | ||
34 | do_configure_append() { | ||
35 | sed -i 's:-L/usr/lib::' ./Makefile | ||
36 | sed -i 's:-Wl,-rpath,${STAGING_LIBDIR}::' ./Makefile | ||
37 | sed -i 's:-I/usr/include::' ./Makefile | ||
38 | } | ||
39 | |||
40 | do_install_append() { | ||
41 | # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 | ||
42 | rm -f ${D}${sbindir}/tcpdump.${PV} | ||
43 | } | ||