Blame SPECS/netsniff-ng.spec

82fb90
Name:		netsniff-ng
82fb90
Version:	0.5.8
0a13d0
Release:	10%{?dist}
82fb90
Summary:	Packet sniffing beast
82fb90
Group:		Applications/Internet
82fb90
License:	GPLv2
82fb90
URL:		http://netsniff-ng.org/
82fb90
Source0:        https://github.com/borkmann/netsniff-ng/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
82fb90
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
82fb90
BuildRequires:	ncurses-devel libnl3-devel libpcap-devel GeoIP-devel zlib-devel flex bison
82fb90
0a13d0
Patch0: 0001-netsniff-ng-add-packet-fanout-support.patch
0a13d0
Patch1: 0002-doc-authors-add-Michal-as-contributor.patch
0a13d0
Patch2: 0003-man-netsniff-ng-document-fanout-options.patch
0a13d0
Patch3: 0004-netsniff-ng-add-example-for-fanout-into-man-page.patch
0a13d0
Patch4: 0005-netsniff-ng-Fix-compiler-warning-introduced-by-fanou.patch
0a13d0
Patch5: 0006-netsniff-ng-Skip-duplicated-packets-on-loopback-device.patch
0a13d0
Patch6: 0007-netsniff-ng-Account-skipped-packets-as-seen-and-drop.patch
0a13d0
82fb90
%description
82fb90
The netsniff-ng toolkit currently consists of the following utilities:
82fb90
82fb90
* netsniff-ng: the zero-copy sniffer, pcap capturer and replayer itself.
82fb90
* trafgen: a high performance zero-copy network packet generator.
82fb90
* astraceroute: an autonomous system (AS) and geo-ip trace route utility.
82fb90
* ifpps: a top-like kernel networking and system statistics tool.
82fb90
* bpfc: a tiny Berkeley Packet Filter compiler supporting Linux extensions.
82fb90
82fb90
%global commit a225505ea3fd319db87f0828ead3a653f020c4bf
82fb90
%global shortcommit %(c=%{commit}; echo ${c:0:7})
82fb90
82fb90
%prep
82fb90
%setup -qn %{name}-%{commit}
0a13d0
%patch0 -p1 -b .add-packet-fanout-support
0a13d0
%patch1 -p1 -b .add-michal-contrib
0a13d0
%patch2 -p1 -b .document-fanout-options
0a13d0
%patch3 -p1 -b .example-fanout
0a13d0
%patch4 -p1 -b .fanout-compile-warning
0a13d0
%patch5 -p1 -b .skip-loopback-duplicates
0a13d0
%patch6 -p1 -b .account-skipped-packets
82fb90
82fb90
%build
82fb90
./configure
82fb90
make DISTRO=1 %{?_smp_mflags}
82fb90
82fb90
%install
82fb90
make PREFIX="%{buildroot}" install
82fb90
82fb90
%clean
82fb90
rm -rf $RPM_BUILD_ROOT
82fb90
82fb90
%files
82fb90
%defattr(-, root, root, -)
82fb90
%doc AUTHORS COPYING README
82fb90
%{_sbindir}/*
82fb90
%config(noreplace) %dir %{_sysconfdir}/%{name}
82fb90
%config(noreplace) %{_sysconfdir}/%{name}/*
82fb90
%{_mandir}/man8/*
82fb90
82fb90
%changelog
0a13d0
* Tue Aug 02 2016 Eric Garver <egarver@redhat.com> - 0.5.8-10
0a13d0
- netsniff-ng: Account skipped packets as 'seen' and 'dropped'
0a13d0
0a13d0
* Thu Jul 21 2016 Eric Garver <egarver@redhat.com> - 0.5.8-9
0a13d0
- netsniff-ng: Skip duplicated packets on loopback device
0a13d0
0a13d0
* Tue May 31 2016 Eric Garver <egarver@redhat.com> - 0.5.8-8
0a13d0
- netsniff-ng: Fix compiler warning introduced by fanout backport
0a13d0
0a13d0
* Mon May 16 2016 Eric Garver - 0.5.8-7
0a13d0
- netsniff-ng: add packet fanout support
0a13d0
- doc: authors: add Michal as contributor
0a13d0
- man: netsniff-ng: document fanout options
0a13d0
- netsniff-ng: add example for fanout into man page
0a13d0
f45ed8
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.5.8-6
f45ed8
- Mass rebuild 2014-01-24
f45ed8
f45ed8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.8-5
f45ed8
- Mass rebuild 2013-12-27
f45ed8
82fb90
* Mon Aug 26 2013 Daniel Borkmann <dborkman@redhat.com> - 0.5.8-4
82fb90
- GeoIP was added to RHEL7, so we can make use of that to enable
82fb90
  astraceroute and features in netsniff-ng.
82fb90
- For this we also need zlib in order to make the updater work.
82fb90
82fb90
* Mon Aug 05 2013 Daniel Borkmann <dborkman@redhat.com> - 0.5.8-3
82fb90
- Package Wrangler feedback from Thomas Graf
82fb90
- Note: %configure does not work with upstream's build system here as CFLAGS
82fb90
  will be overwritten. Changes would need to be proposed to upstream first.
82fb90
82fb90
* Wed Jul 31 2013 Daniel Borkmann <dborkman@redhat.com> - 0.5.8-2
82fb90
- Rebased on 0.5.8-rc2 release.
82fb90
82fb90
* Tue Jul 23 2013 Daniel Borkmann <dborkman@redhat.com> - 0.5.8-1
82fb90
- Initial netsniff-ng spec file for RHEL, import of 0.5.8-rc1. Note that
82fb90
  RHEL packaging differs significantly from Fedora as we only do a partial
82fb90
  build and have a small fraction of dependencies that are available on
82fb90
  RHEL.