1 |
Summary: A network traffic monitoring tool |
2 |
Name: tcpdump |
3 |
Epoch: 2 |
4 |
Version: 4.99.2 |
5 |
Release: %mkrel 1 |
6 |
Group: Monitoring |
7 |
License: BSD |
8 |
URL: https://www.tcpdump.org/ |
9 |
Source0: https://www.tcpdump.org/release/%{name}-%{version}.tar.gz |
10 |
Patch0: tcpdump-CVE-2018-19519.patch |
11 |
BuildRequires: pkgconfig(libpcap) |
12 |
BuildRequires: pkgconfig(openssl) |
13 |
BuildRequires: pkgconfig(libsmi) |
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 |
%setup -q |
25 |
%autopatch -p1 |
26 |
|
27 |
%build |
28 |
autoreconf |
29 |
%serverbuild |
30 |
export CFLAGS="%{optflags} -I. -DIP_MAX_MEMBERSHIPS=20" |
31 |
%configure \ |
32 |
--enable-ipv6 |
33 |
|
34 |
%make_build |
35 |
|
36 |
%install |
37 |
%make_install |
38 |
# (misc) remove the binary, has this only pollutes completion |
39 |
# and take useless space in the rpm |
40 |
rm -f %{buildroot}%{_bindir}/%{name}.%{version} |
41 |
|
42 |
%files |
43 |
%doc README.md CHANGES CREDITS LICENSE |
44 |
%{_bindir}/%{name} |
45 |
%{_mandir}/man1/tcpdump.1* |