]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
tcpdump: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Feb 2010 17:36:11 +0000 (18:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Feb 2010 17:36:11 +0000 (18:36 +0100)
pkgs/core/tcpdump/patches/tcpdump-4.0.0-ipv6-build.patch [new file with mode: 0644]
pkgs/core/tcpdump/tcpdump.nm [new file with mode: 0644]

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 (file)
index 0000000..ebce9ee
--- /dev/null
@@ -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 (file)
index 0000000..a473bf0
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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