diff mbox

[032/131] tcpdump: Add version 4.5.1

Message ID 703a65f49c1e49c74f1517edce1bc4194c6b6055.1389702652.git.christian.braunersorensen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 14, 2014, 12:33 p.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/tcpdump/tcpdump-4.5.1/configure.patch  | 29 ++++++++++++++++++
 recipes/tcpdump/tcpdump-4.5.1/ipv6-cross.patch | 41 ++++++++++++++++++++++++++
 recipes/tcpdump/tcpdump_4.5.1.oe               |  5 ++++
 recipes/tcpdump/tcpdump_4.5.1.oe.sig           |  1 +
 4 files changed, 76 insertions(+)
 create mode 100644 recipes/tcpdump/tcpdump-4.5.1/configure.patch
 create mode 100644 recipes/tcpdump/tcpdump-4.5.1/ipv6-cross.patch
 create mode 100644 recipes/tcpdump/tcpdump_4.5.1.oe
 create mode 100644 recipes/tcpdump/tcpdump_4.5.1.oe.sig
diff mbox

Patch

diff --git a/recipes/tcpdump/tcpdump-4.5.1/configure.patch b/recipes/tcpdump/tcpdump-4.5.1/configure.patch
new file mode 100644
index 0000000..3697420
--- /dev/null
+++ b/recipes/tcpdump/tcpdump-4.5.1/configure.patch
@@ -0,0 +1,29 @@ 
+---
+ aclocal.m4   |    1 -
+ configure.in |    1 +
+ 2 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 40b5866..0c662b0 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -40,7 +40,6 @@ dnl
+ AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC,
+     [AC_PREREQ(2.50)
+     AC_BEFORE([$0], [AC_LBL_C_INIT])
+-    AC_BEFORE([$0], [AC_PROG_CC])
+     AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
+     AC_BEFORE([$0], [AC_LBL_DEVEL])
+     AC_ARG_WITH(gcc, [  --without-gcc           don't use gcc])
+diff --git a/configure.in b/configure.in
+index 11257c9..7f9591c 100644
+--- a/configure.in
++++ b/configure.in
+@@ -19,6 +19,7 @@ AC_REVISION($Revision: 1.204 $)
+ AC_PREREQ(2.50)
+ AC_INIT(tcpdump.c)
+ 
++AC_PROG_CC
+ AC_CANONICAL_HOST
+ 
+ AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS)
diff --git a/recipes/tcpdump/tcpdump-4.5.1/ipv6-cross.patch b/recipes/tcpdump/tcpdump-4.5.1/ipv6-cross.patch
new file mode 100644
index 0000000..7eba2c5
--- /dev/null
+++ b/recipes/tcpdump/tcpdump-4.5.1/ipv6-cross.patch
@@ -0,0 +1,41 @@ 
+---
+ configure.in |   12 ++++++++----
+ 1 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index eb3e5e8..11257c9 100644
+--- a/configure.in
++++ b/configure.in
+@@ -181,8 +181,9 @@ yes)   AC_MSG_RESULT(yes)
+        ipv6=no
+        ;;
+   esac ],
+-
+-  AC_TRY_RUN([ /* AF_INET6 available check */
++[
++  if test x"$cross_compiling" != "xyes"; then
++    AC_TRY_RUN([ /* AF_INET6 avalable check */
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ main()
+@@ -201,7 +202,10 @@ main()
+   ipv6=no],
+ [ AC_MSG_RESULT(no)
+   ipv6=no]
+-))
++  )
++else
++  AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.])
++fi])
+ 
+ ipv6type=unknown
+ ipv6lib=none
+@@ -316,7 +320,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
+ fi
+ 
+ 
+-if test "$ipv6" = "yes"; then
++if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then
+ 	#
+ 	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
+ 	# function in libc; there are "ngetaddrinfo()" and
diff --git a/recipes/tcpdump/tcpdump_4.5.1.oe b/recipes/tcpdump/tcpdump_4.5.1.oe
new file mode 100644
index 0000000..d4aefa8
--- /dev/null
+++ b/recipes/tcpdump/tcpdump_4.5.1.oe
@@ -0,0 +1,5 @@ 
+require ${PN}.inc
+
+SRC_URI += "file://ipv6-cross.patch \
+	file://configure.patch \
+"
diff --git a/recipes/tcpdump/tcpdump_4.5.1.oe.sig b/recipes/tcpdump/tcpdump_4.5.1.oe.sig
new file mode 100644
index 0000000..d151f95
--- /dev/null
+++ b/recipes/tcpdump/tcpdump_4.5.1.oe.sig
@@ -0,0 +1 @@ 
+46d5ec107c6a1b262ad8da799f74c5d01cce8815  tcpdump-4.5.1.tar.gz