1SUMMARY="A tool for network monitoring and data acquisition"
2DESCRIPTION="
3Tcpdump prints out a description of the contents of packets on a \
4network interface that match a boolean expression."
5HOMEPAGE="http://www.tcpdump.org"
6COPYRIGHT="
7	1998-2015 The TCPDUMP Project
8	1988-1997, 2000 The Regents of the University of California
9	2003, 2004 David Young
10	1997, 1998 The NetBSD Foundation, Inc.
11	2007 Paolo Abeni
12	2004 Michael Richardson
13	1995-1999 Andrew Tridgell
14	2001 Nickolai Zeldovich
15	2000-2001 William C. Fenner
16	2009 Bert Vermeulen
17	2000 Ben Smithurst
18	1998-2004 Hannes Gredler
19	1997 Yen Yen Lim and North Dakota State University
20	2000 Lennert Buytenhek
21	1990-1997 John Robert LoVerso
22	2001 NETLAB, Temple University
23	2001 Protocol Engineering Lab, University of Delaware
24	2000 United States Government as represented by the Secretary of the Navy
25	2007 Andrey "nording" Chernyak
26	2000 Alfredo Andres Omella
27	2009 Florian Forster
28	2013 Petar Alilovic, Faculty of Electrical Engineering and Computing, University of Zagreb
29	2013 Romain Francoise
30	2012 Gregory Detal
31	2012 Christoph Paasch
32	1995-1998, 2001-2002 WIDE Project
33"
34LICENSE="BSD (3-clause)"
35REVISION="1"
36SOURCE_URI="http://www.tcpdump.org/release/tcpdump-${portVersion}.tar.gz"
37CHECKSUM_SHA256="0232231bb2f29d6bf2426e70a08a7e0c63a0d59a9b44863b7f5e2357a6e49fea"
38PATCHES="tcpdump-$portVersion.patchset"
39
40ARCHITECTURES="all !x86_gcc2"
41SECONDARY_ARCHITECTURES="x86"
42
43PROVIDES="
44	tcpdump$secondaryArchSuffix = $portVersion
45	cmd:tcpdump
46	"
47REQUIRES="
48	haiku$secondaryArchSuffix
49	lib:libpcap$secondaryArchSuffix
50	"
51
52if [ $effectiveTargetArchitecture = x86 ]; then
53	REPLACES="
54		tcpdump
55		"
56fi
57
58BUILD_REQUIRES="
59	haiku${secondaryArchSuffix}_devel
60	devel:libpcap$secondaryArchSuffix
61	"
62BUILD_PREREQUIRES="
63	cmd:autoconf
64	cmd:automake
65	cmd:awk
66	cmd:gcc$secondaryArchSuffix
67	cmd:make
68	cmd:strip$secondaryArchSuffix
69	"
70
71BUILD()
72{
73	autoreconf -fi
74	runConfigure --omit-dirs binDir \
75		./configure --bindir="$prefix/bin"
76	make $jobArgs
77}
78
79INSTALL()
80{
81	make install
82	strip $prefix/bin/tcpdump
83	rm $prefix/bin/tcpdump.$portVersion
84}
85
86TEST()
87{
88	make check
89}
90