1 |
dmorgan |
56593 |
Summary: A network traffic monitoring tool |
2 |
|
|
Name: tcpdump |
3 |
cjw |
847311 |
Version: 4.7.4 |
4 |
umeabot |
958985 |
Release: %mkrel 2 |
5 |
dmorgan |
56593 |
Epoch: 2 |
6 |
|
|
Group: Monitoring |
7 |
|
|
License: BSD |
8 |
|
|
URL: http://www.tcpdump.org/ |
9 |
|
|
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz |
10 |
|
|
Source1: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig |
11 |
luigiwalser |
280173 |
BuildRequires: pcap-devel >= 1.2.0 |
12 |
dmorgan |
56593 |
BuildRequires: openssl-devel |
13 |
|
|
BuildRequires: libsmi-devel |
14 |
|
|
|
15 |
|
|
%description |
16 |
|
|
Tcpdump is a command-line tool for monitoring network traffic. Tcpdump can |
17 |
|
|
capture and display the packet headers on a particular network interface or on |
18 |
|
|
all interfaces. Tcpdump can display all of the packet headers, or just the |
19 |
|
|
ones that match particular criteria. |
20 |
|
|
|
21 |
|
|
Install tcpdump if you need a program to monitor network traffic. |
22 |
|
|
|
23 |
|
|
%prep |
24 |
guillomovitch |
173743 |
%setup -q |
25 |
luigiwalser |
799520 |
%apply_patches |
26 |
dmorgan |
56593 |
|
27 |
|
|
%build |
28 |
cjw |
847311 |
autoreconf |
29 |
dmorgan |
56593 |
%serverbuild |
30 |
luigiwalser |
280173 |
export CFLAGS="%{optflags} -I. -DIP_MAX_MEMBERSHIPS=20" |
31 |
dmorgan |
56593 |
%configure2_5x \ |
32 |
|
|
--enable-ipv6 |
33 |
|
|
|
34 |
|
|
%make |
35 |
|
|
|
36 |
|
|
%install |
37 |
|
|
%makeinstall_std |
38 |
|
|
# (misc) remove the binary, has this only pollutes completion |
39 |
|
|
# and take useless space in the rpm |
40 |
luigiwalser |
280173 |
rm -f %{buildroot}/%{_sbindir}/%{name}.%{version} |
41 |
dmorgan |
56593 |
|
42 |
|
|
%files |
43 |
sander85 |
589873 |
%doc README.md CHANGES CREDITS LICENSE |
44 |
dmorgan |
56593 |
%{_sbindir}/%{name} |
45 |
|
|
%{_mandir}/man1/tcpdump.1* |