summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/tcpdump
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
parent2139d9034d036e92566adf2fff75fa49cd531ab1 (diff)
downloadmeta-openembedded-e697845cc91244e397eff34fe9153bedf91beb0f.tar.gz
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')
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch22
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch41
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch27
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/configure.patch (renamed from meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch)0
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-configure-dlpi.patch (renamed from meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch)0
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-cross-getaddrinfo.patch (renamed from meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch)0
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/unnecessary-to-check-libpcap.patch (renamed from meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch)0
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb (renamed from meta-networking/recipes-support/tcpdump/tcpdump_4.5.1.bb)14
8 files changed, 6 insertions, 98 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch
deleted file mode 100644
index 9d3d60d4d..000000000
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1From: Sergey Lapin <slapin@slind.org>
2Date: Wed, 28 Jan 2009 16:34:15 +0300
3Subject: [PATCH] minimal IEEE802.15.4 allowed
4
5---
6 tcpdump.c | 3 +++
7 1 files changed, 3 insertions(+), 0 deletions(-)
8
9diff --git a/tcpdump.c b/tcpdump.c
10index 06683af..fbc944c 100644
11--- a/tcpdump.c
12+++ b/tcpdump.c
13@@ -282,6 +282,9 @@ static struct printer printers[] = {
14 #ifdef DLT_MFR
15 { mfr_if_print, DLT_MFR },
16 #endif
17+#ifdef DLT_IEEE802_15_4
18+ { raw_if_print, DLT_IEEE802_15_4 },
19+#endif
20 #if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H)
21 { bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR},
22 #endif
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch
deleted file mode 100644
index 7eba2c5a6..000000000
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1---
2 configure.in | 12 ++++++++----
3 1 files changed, 8 insertions(+), 4 deletions(-)
4
5diff --git a/configure.in b/configure.in
6index eb3e5e8..11257c9 100644
7--- a/configure.in
8+++ b/configure.in
9@@ -181,8 +181,9 @@ yes) AC_MSG_RESULT(yes)
10 ipv6=no
11 ;;
12 esac ],
13-
14- AC_TRY_RUN([ /* AF_INET6 available check */
15+[
16+ if test x"$cross_compiling" != "xyes"; then
17+ AC_TRY_RUN([ /* AF_INET6 avalable check */
18 #include <sys/types.h>
19 #include <sys/socket.h>
20 main()
21@@ -201,7 +202,10 @@ main()
22 ipv6=no],
23 [ AC_MSG_RESULT(no)
24 ipv6=no]
25-))
26+ )
27+else
28+ AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.])
29+fi])
30
31 ipv6type=unknown
32 ipv6lib=none
33@@ -316,7 +320,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
34 fi
35
36
37-if test "$ipv6" = "yes"; then
38+if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then
39 #
40 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
41 # function in libc; there are "ngetaddrinfo()" and
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch
deleted file mode 100644
index b2296bc52..000000000
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1---
2 configure | 4 ++--
3 1 file changed, 2 insertions(+), 2 deletions(-)
4
5diff --git a/configure b/configure
6index 468a517..a890728 100755
7--- a/configure
8+++ b/configure
9@@ -3036,13 +3036,13 @@ if test "$ac_test_CFLAGS" = set; then
10 CFLAGS=$ac_save_CFLAGS
11 elif test $ac_cv_prog_cc_g = yes; then
12 if test "$GCC" = yes; then
13- CFLAGS="-g -O2"
14+ CFLAGS="-g"
15 else
16 CFLAGS="-g"
17 fi
18 else
19 if test "$GCC" = yes; then
20- CFLAGS="-O2"
21+ CFLAGS=
22 else
23 CFLAGS=
24 fi
25--
261.7.9.5
27
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/configure.patch
index 3697420fd..3697420fd 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch
+++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/configure.patch
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-configure-dlpi.patch
index 50e2d5439..50e2d5439 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch
+++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-configure-dlpi.patch
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-cross-getaddrinfo.patch
index b414b72e9..b414b72e9 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch
+++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/tcpdump-cross-getaddrinfo.patch
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/unnecessary-to-check-libpcap.patch
index d7a3ac23b..d7a3ac23b 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch
+++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/unnecessary-to-check-libpcap.patch
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.5.1.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
index 9ce02d626..58bcb980f 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump_4.5.1.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
@@ -6,24 +6,22 @@ SECTION = "console/network"
6DEPENDS = "libpcap" 6DEPENDS = "libpcap"
7 7
8SRC_URI = " \ 8SRC_URI = " \
9 http://www.tcpdump.org/release/tcpdump-${PV}.tar.gz \ 9 http://www.tcpdump.org/release/${BP}.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 \ 10 file://configure.patch \
14 file://unnecessary-to-check-libpcap.patch \ 11 file://unnecessary-to-check-libpcap.patch \
15 file://tcpdump-configure-dlpi.patch \ 12 file://tcpdump-configure-dlpi.patch \
16 file://tcpdump-cross-getaddrinfo.patch \ 13 file://tcpdump-cross-getaddrinfo.patch \
17" 14"
18SRC_URI[md5sum] = "973a2513d0076e34aa9da7e15ed98e1b" 15SRC_URI[md5sum] = "dab267ec30216a069747d10314079ec7"
19SRC_URI[sha256sum] = "14ab39657128f3a650aed4cf455f76c7590601087b6101c253d698f6e73f0b96" 16SRC_URI[sha256sum] = "4c88c2a9aeb4047074f344fc9b2b6577b219972d359e192f6d12ccf983a13fd7"
20export LIBS=" -lpcap" 17export LIBS=" -lpcap"
21 18
22inherit autotools-brokensep 19inherit autotools-brokensep
23CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" 20CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}"
24 21
25EXTRA_OECONF = "--without-crypto \ 22PACKAGECONFIG ??= "openssl ipv6"
26 ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6', '--disable-ipv6', d)}" 23PACKAGECONFIG[openssl] = "--with-crypto=yes, --without-openssl --without-crypto, openssl"
24PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6,"
27 25
28EXTRA_AUTORECONF += " -I m4" 26EXTRA_AUTORECONF += " -I m4"
29 27