Andreas Stieger
392452ab1c
- update to 4.7.3 - fixes four security bugs: * CVE-2015-0261 - IPv6 mobility printer (bnc#922220) * CVE-2015-2153 - tcp printer (bnc#922221) * CVE-2015-2154 - ethernet printer (bnc#922222) * CVE-2015-2155 - force printer (bnc#922223) - drop patches with security fixes (upstream): * tcpdump-CVE-2014-8767.patch * tcpdump-CVE-2014-8768.patch * tcpdump-CVE-2014-8769.patch * 0001-Clean-up-error-message-printing.patch OBS-URL: https://build.opensuse.org/request/show/290624 OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpdump?expand=0&rev=25
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package tcpdump
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# from http://upstream-tracker.org/versions/libpcap.html
|
|
# for pcap_set_tstamp_precision()
|
|
%define min_libpcap_version 1.7.2
|
|
Name: tcpdump
|
|
Version: 4.7.3
|
|
Release: 0
|
|
Summary: A Packet Sniffer
|
|
License: BSD-3-Clause
|
|
Group: Productivity/Networking/Diagnostic
|
|
Url: http://www.tcpdump.org/
|
|
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
|
Source1: tcpdump-qeth
|
|
Source2: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig
|
|
Source3: http://www.tcpdump.org/tcpdump-workers.asc#/%{name}.keyring
|
|
BuildRequires: libpcap-devel >= %{min_libpcap_version}
|
|
BuildRequires: libsmi-devel
|
|
BuildRequires: openssl-devel
|
|
Requires: libpcap >= %{min_libpcap_version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This program can "read" all or only certain packets going over the
|
|
ethernet. It can be used to debug specific network problems.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing"
|
|
%configure \
|
|
--enable-ipv6
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
%ifarch s390 s390x
|
|
install -D -m 755 ${SOURCE1} %{buildroot}%{_sbindir}
|
|
%endif
|
|
rm %{buildroot}/%{_sbindir}/tcpdump.%{version}
|
|
|
|
%check
|
|
make check %{?_smp_mflags}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc CHANGES CREDITS LICENSE README* *.awk
|
|
%doc %{_mandir}/man?/*
|
|
%{_sbindir}/tcpdump
|
|
|
|
%changelog
|