diff options
author | Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com> | 2017-01-10 12:54:56 +0100 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-02-22 08:31:58 -0500 |
commit | 681df62a30e53e1681fdb2bf6be0fa6276496e50 (patch) | |
tree | f7de9818e34f9ce14f79a934717a70ebe95d9e15 /meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb | |
parent | a2e075ba656a89da58ca4f849c2f08ec6d50a96f (diff) | |
download | meta-openembedded-contrib-681df62a30e53e1681fdb2bf6be0fa6276496e50.tar.gz |
tcpdump: upgrade to 4.8.1
Upgraded tcpdump to version 4.8.1 and removed deprecated ipv6 configure
flag.
Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb')
-rw-r--r-- | meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb new file mode 100644 index 0000000000..35a5cfed17 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.8.1.bb @@ -0,0 +1,50 @@ +SUMMARY = "A sophisticated network protocol analyzer" +HOMEPAGE = "http://www.tcpdump.org/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" +SECTION = "net" +DEPENDS = "libpcap" + +SRC_URI = " \ + http://www.tcpdump.org/release/${BP}.tar.gz \ + file://unnecessary-to-check-libpcap.patch \ + file://tcpdump-configure-dlpi.patch \ + file://add-ptest.patch \ + file://run-ptest \ +" +SRC_URI[md5sum] = "32f57943649f276e09236ba66622bb0c" +SRC_URI[sha256sum] = "20e4341ec48fcf72abcae312ea913e6ba6b958617b2f3fb496d51f0ae88d831c" +export LIBS=" -lpcap" + +inherit autotools-brokensep ptest +CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" + +PACKAGECONFIG ??= "openssl" +PACKAGECONFIG[openssl] = "--with-crypto=yes, --without-openssl --without-crypto, openssl" +PACKAGECONFIG[smi] = "--with-smi, --without-smi,libsmi" +PACKAGECONFIG[libcap-ng] = "--with-cap-ng=yes,--with-cap-ng=no,libcap-ng" + +EXTRA_AUTORECONF += " -I m4" + +do_configure_prepend() { + mkdir -p ${S}/m4 + if [ -f aclocal.m4 ]; then + mv aclocal.m4 ${S}/m4 + fi + # AC_CHECK_LIB(dlpi.. was looking to host /lib + sed -i 's:-L/lib::g' ./configure.in +} +do_configure_append() { + sed -i 's:-L/usr/lib::' ./Makefile + sed -i 's:-Wl,-rpath,${STAGING_LIBDIR}::' ./Makefile + sed -i 's:-I/usr/include::' ./Makefile +} + +do_install_append() { + # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 + rm -f ${D}${sbindir}/tcpdump.${PV} +} + +do_compile_ptest() { + oe_runmake buildtest-TESTS +} |