From 76a370ef2d6ec00b7cbac334813b1eeaa0cdebdb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 8 Feb 2010 18:36:11 +0100 Subject: [PATCH] tcpdump: New package. --- .../patches/tcpdump-4.0.0-ipv6-build.patch | 16 +++++++ pkgs/core/tcpdump/tcpdump.nm | 48 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 pkgs/core/tcpdump/patches/tcpdump-4.0.0-ipv6-build.patch create mode 100644 pkgs/core/tcpdump/tcpdump.nm diff --git a/pkgs/core/tcpdump/patches/tcpdump-4.0.0-ipv6-build.patch b/pkgs/core/tcpdump/patches/tcpdump-4.0.0-ipv6-build.patch new file mode 100644 index 000000000..ebce9ee72 --- /dev/null +++ b/pkgs/core/tcpdump/patches/tcpdump-4.0.0-ipv6-build.patch @@ -0,0 +1,16 @@ +=== modified file 'print-enc.c' +--- a/print-enc.c 2008-11-04 16:24:30 +0000 ++++ b/print-enc.c 2008-11-04 16:45:04 +0000 +@@ -77,9 +77,11 @@ + case AF_INET: + ip_print(gndo, p, length); + break; ++#ifdef INET6 + case AF_INET6: + ip6_print(p, length); + break; ++#endif /*INET6*/ + } + + out: + diff --git a/pkgs/core/tcpdump/tcpdump.nm b/pkgs/core/tcpdump/tcpdump.nm new file mode 100644 index 000000000..a473bf050 --- /dev/null +++ b/pkgs/core/tcpdump/tcpdump.nm @@ -0,0 +1,48 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = tcpdump +PKG_VER = 4.0.0 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Networking/Sniffer +PKG_URL = http://www.tcpdump.org/ +PKG_LICENSE = BSD with advertising +PKG_SUMMARY = A network traffic monitoring tool. + +PKG_DEPS += libpcap openssl + +define PKG_DESCRIPTION + Tcpdump is a command-line tool for monitoring network traffic. \ + Tcpdump can capture and display the packet headers on a particular \ + network interface or on all interfaces. Tcpdump can display all of \ + the packet headers, or just the ones that match particular criteria. +endef + +PKG_TARBALL = $(THISAPP).tar.gz + +CFLAGS += -fno-strict-aliasing -- 2.47.3