Blame SPECS/netsniff-ng.spec

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