diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/tcpdump |
Initial import
Diffstat (limited to 'package/tcpdump')
-rw-r--r-- | package/tcpdump/Config.in | 10 | ||||
-rw-r--r-- | package/tcpdump/Makefile | 34 | ||||
-rw-r--r-- | package/tcpdump/ipkg/tcpdump.control | 5 | ||||
-rw-r--r-- | package/tcpdump/patches/patch-print-enc_c | 19 |
4 files changed, 68 insertions, 0 deletions
diff --git a/package/tcpdump/Config.in b/package/tcpdump/Config.in new file mode 100644 index 000000000..482a477fd --- /dev/null +++ b/package/tcpdump/Config.in @@ -0,0 +1,10 @@ +config ADK_PACKAGE_TCPDUMP + prompt "tcpdump........................... Network monitoring and data acquisition tool" + tristate + default n + select ADK_PACKAGE_LIBPCAP + help + A tool for network monitoring and data acquisition. + + http://www.tcpdump.org/ + diff --git a/package/tcpdump/Makefile b/package/tcpdump/Makefile new file mode 100644 index 000000000..2295f73f8 --- /dev/null +++ b/package/tcpdump/Makefile @@ -0,0 +1,34 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= tcpdump +PKG_VERSION:= 4.0.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= b22ca72890df2301d922c9f2d17867f9 +MASTER_SITES:= http://www.tcpdump.org/release/ \ + http://www.sfr-fresh.com/unix/misc/ \ + http://www.at.tcpdump.org/ \ + http://www.br.tcpdump.org/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,TCPDUMP,tcpdump,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${HOSTCC} \ + ac_cv_linux_vers=2 \ + td_cv_buggygetaddrinfo="no" +CONFIGURE_ARGS+= --without-crypto +BUILD_STYLE:= auto +INSTALL_STYLE:= auto +XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" INCLS="-I. -I${STAGING_DIR}/usr/include" + +post-install: + ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin + ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/tcpdump/ipkg/tcpdump.control b/package/tcpdump/ipkg/tcpdump.control new file mode 100644 index 000000000..ca3616976 --- /dev/null +++ b/package/tcpdump/ipkg/tcpdump.control @@ -0,0 +1,5 @@ +Package: tcpdump +Priority: optional +Section: net +Description: A tool for network monitoring and data acquisition. +Depends: libpcap diff --git a/package/tcpdump/patches/patch-print-enc_c b/package/tcpdump/patches/patch-print-enc_c new file mode 100644 index 000000000..d1e6f3460 --- /dev/null +++ b/package/tcpdump/patches/patch-print-enc_c @@ -0,0 +1,19 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ + +* already fixed in git head + http://sourceforge.net/tracker/?func=detail&aid=2679354&group_id=53066&atid=469575 + +--- tcpdump-4.0.0.orig/print-enc.c 2008-09-01 04:44:22.000000000 +0200 ++++ tcpdump-4.0.0/print-enc.c 2009-04-17 19:52:13.071285657 +0200 +@@ -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 + } + + out: |