Blame SPECS/netsniff-ng.spec

82fb90
Name:		netsniff-ng
82fb90
Version:	0.5.8
f45ed8
Release:	6%{?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
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}
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
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.