aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2014-08-18 09:24:14 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-08-21 21:35:06 +0200
commite697845cc91244e397eff34fe9153bedf91beb0f (patch)
treee66add73740321e9c72a83f6a18bf468c9a8a9c0 /meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
parent2139d9034d036e92566adf2fff75fa49cd531ab1 (diff)
downloadmeta-openembedded-contrib-e697845cc91244e397eff34fe9153bedf91beb0f.tar.gz
meta-openembedded-contrib-e697845cc91244e397eff34fe9153bedf91beb0f.tar.bz2
meta-openembedded-contrib-e697845cc91244e397eff34fe9153bedf91beb0f.zip
tcpdump: uprev it to 4.6.1
1. uprev to 4.6.1 2. remove three obsolete patches 3. use PACKAGECONFIG, and the default value is ipv6 openssl Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb')
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
new file mode 100644
index 0000000000..58bcb980f5
--- /dev/null
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
@@ -0,0 +1,45 @@
+SUMMARY = "A sophisticated network protocol analyzer"
+HOMEPAGE = "http://www.tcpdump.org/"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867"
+SECTION = "console/network"
+DEPENDS = "libpcap"
+
+SRC_URI = " \
+ http://www.tcpdump.org/release/${BP}.tar.gz \
+ file://configure.patch \
+ file://unnecessary-to-check-libpcap.patch \
+ file://tcpdump-configure-dlpi.patch \
+ file://tcpdump-cross-getaddrinfo.patch \
+"
+SRC_URI[md5sum] = "dab267ec30216a069747d10314079ec7"
+SRC_URI[sha256sum] = "4c88c2a9aeb4047074f344fc9b2b6577b219972d359e192f6d12ccf983a13fd7"
+export LIBS=" -lpcap"
+
+inherit autotools-brokensep
+CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}"
+
+PACKAGECONFIG ??= "openssl ipv6"
+PACKAGECONFIG[openssl] = "--with-crypto=yes, --without-openssl --without-crypto, openssl"
+PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6,"
+
+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}
+}