-#
+#
# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
include $(TOPDIR)/rules.mk
PKG_NAME:=tcpdump
-PKG_VERSION:=3.9.8
-PKG_RELEASE:=3
+PKG_VERSION:=4.0.0
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
http://ftp.gwdg.de/pub/misc/tcpdump/ \
http://www.at.tcpdump.org/ \
http://www.br.tcpdump.org/
-PKG_MD5SUM:=c491a78c52fe73f1f7271aa5d8c6ab2e
+PKG_MD5SUM:=b22ca72890df2301d922c9f2d17867f9
include $(INCLUDE_DIR)/package.mk
-diff -urN tcpdump-3.9.8.orig/tcpdump.c tcpdump-3.9.8/tcpdump.c
---- tcpdump-3.9.8.orig/tcpdump.c
-+++ tcpdump-3.9.8/tcpdump.c
-@@ -765,20 +765,6 @@
+--- a/tcpdump.c
++++ b/tcpdump.c
+@@ -826,20 +826,6 @@ main(int argc, char **argv)
error("invalid data link type %s", gndo->ndo_dltname);
break;
- }
- break;
-#endif
- case 'Z':
+ case 'z':
if (optarg) {
- username = strdup(optarg);
+ zflag = strdup(optarg);
-tcpdump explicitly checks for a static version of libpcap in
-../libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)? relative to its build dir
-if found, tcpdump is linked statically against this lib
-
-The patch removes the check for the static lib and headers in this relative
-location for tcpdump's configure script.
-
-Index: tcpdump-3.9.8/configure
-===================================================================
---- tcpdump-3.9.8.orig/configure 2007-09-25 19:16:50.000000000 -0700
-+++ tcpdump-3.9.8/configure 2009-05-21 17:17:07.000000000 -0700
-@@ -9278,26 +9278,6 @@
+--- a/configure
++++ b/configure
+@@ -9280,26 +9280,6 @@ echo "${ECHO_T}Using $pfopen" >&6; }
LIBS="$LIBS $pfopen"
fi
fi
{ echo "$as_me:$LINENO: checking for main in -lpcap" >&5
echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
if test "${ac_cv_lib_pcap_main+set}" = set; then
-@@ -9362,40 +9342,6 @@
+@@ -9364,40 +9344,6 @@ fi
echo "$as_me: error: see the INSTALL doc for more info" >&2;}
{ (exit 1); exit 1; }; }
fi
-- { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
+- { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
-echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
- if test \( ! -r /usr/local/include/pcap.h \) -a \
- \( ! -r /usr/include/pcap.h \); then
--- /dev/null
+--- a/print-enc.c
++++ b/print-enc.c
+@@ -77,9 +77,11 @@ enc_if_print(const struct pcap_pkthdr *h
+ case AF_INET:
+ ip_print(gndo, p, length);
+ break;
++#ifdef INET6
+ case AF_INET6:
+ ip6_print(p, length);
+ break;
++#endif /*INET6*/
+ }
+
+ out: