James Findley ad81158
Name:		netsniff-ng
James Findley ad81158
Version:	0.5.5.0
bf1941c
Release:	4%{?dist}
James Findley ad81158
Summary:	A high performance network sniffer for packet inspection
James Findley ad81158
Group:		Applications/Internet
James Findley ad81158
License:	GPLv2+
James Findley 8b00b8c
URL:		http://netsniff-ng.org/
James Findley 108bb4e
Source0:	http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
James Findley ad81158
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
James Findley ad81158
James Findley ad81158
%description
James Findley ad81158
netsniff-ng is a high performance linux network sniffer for packet
James Findley ad81158
inspection. Basically, it is similar to tcpdump, but it doesn't need one
James Findley ad81158
syscall per packet. Instead, it uses an memory mapped area within kernelspace
James Findley ad81158
for accessing packets without copying them to userspace (zero-copy mechanism).
James Findley ad81158
James Findley ad81158
This tool is useful for debugging your network, measuring performance
James Findley ad81158
throughput or creating network statistics of incoming packets on central
James Findley ad81158
network nodes like routers or firewalls.
James Findley ad81158
James Findley ad81158
%prep
James Findley 108bb4e
%setup -q -n %{name}
James Findley ad81158
James Findley ad81158
%build
James Findley ad81158
pushd src
James Findley 108bb4e
make  %{?_smp_mflags}		\
James Findley 108bb4e
	CFLAGS="%{optflags}" \
James Findley ad81158
	BINDIR="%{_sbindir}"		\
James Findley ad81158
	ETCDIR="%{_sysconfdir}"		\
James Findley ad81158
	MANDIR="%{_mandir}/man8"
James Findley ad81158
popd
James Findley ad81158
James Findley ad81158
James Findley ad81158
%install
James Findley ad81158
rm -rf $RPM_BUILD_ROOT
James Findley ad81158
pushd src
James Findley ad81158
make DESTDIR="$RPM_BUILD_ROOT" install \
James Findley ad81158
	 CFLAGS="%{optflags}"		\
James Findley ad81158
	 BINDIR="%{_sbindir}"		\
James Findley ad81158
	 ETCDIR="%{_sysconfdir}"	\
James Findley ad81158
	 MANDIR="%{_mandir}/man8"
James Findley ad81158
chmod 0644 $RPM_BUILD_ROOT/%{_mandir}/man8/%{name}.8*
James Findley ad81158
popd
James Findley ad81158
James Findley ad81158
%clean
James Findley ad81158
rm -rf $RPM_BUILD_ROOT
James Findley ad81158
James Findley ad81158
%files
James Findley ad81158
%defattr(-, root, root, -)
James Findley 108bb4e
%doc AUTHORS CHANGELOG COPYING CREDITS README TODO
James Findley ad81158
%{_sbindir}/%{name}
James Findley ad81158
%dir %{_sysconfdir}/%{name}
James Findley ad81158
%dir %{_sysconfdir}/%{name}/rules
James Findley ad81158
%config(noreplace) %{_sysconfdir}/%{name}/rules/*.bpf
James Findley ad81158
%{_mandir}/man8/%{name}.8*
James Findley ad81158
James Findley ad81158
%changelog
bf1941c
* Wed Aug  8 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 0.5.5.0-4
bf1941c
- Removed code that handles drop of sysvinit script (obsoleted now)
bf1941c
  Resolves: rhbz#842793
bf1941c
8154c07
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5.0-3
8154c07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8154c07
James Findley 8b00b8c
* Wed Nov 03 2010 James Findley <sixy@gmx.com> - 0.5.5.0-2
James Findley 8b00b8c
- Fixed packaging bug
James Findley 8b00b8c
- Fixed URL
James Findley 8b00b8c
James Findley 108bb4e
* Tue Nov 02 2010 James Findley <sixy@gmx.com> - 0.5.5.0-1
James Findley 108bb4e
- Updated to 0.5.5.0 stable
James Findley 108bb4e
- This version has major changes, including the removal of  daemon mode.
James Findley 108bb4e
James Findley ad81158
* Tue Feb 23 2010 James Findley <sixy@gmx.com> - 0.5.5.0-0.4.211svn
James Findley ad81158
- Improved the way sources are provided
James Findley ad81158
- Used the upstream copy of 0.5.3 for check_packets, with a patch
James Findley ad81158
James Findley ad81158
* Wed Feb 17 2010 James Findley <sixy@gmx.com> - 0.5.5.0-0.3.211svn
James Findley ad81158
- Added the check_packets client app:
James Findley ad81158
 - This makes the unix domain socket actually useful
James Findley ad81158
 - This is taken from the 0.5.3 sources, but with a modified makefile
James Findley ad81158
James Findley ad81158
* Sun Feb 14 2010 James Findley <sixy@gmx.com> - 0.5.5.0-0.2.211svn
James Findley ad81158
- Patched the UDS server
James Findley ad81158
- Patched the help text to correctly mark features not yet implemented
James Findley ad81158
- Added BuildRequires and Requires
James Findley ad81158
James Findley ad81158
* Wed Jan 27 2010 James Findley <sixy@gmx.com> - 0.5.5.0-0.1.211svn
James Findley ad81158
- Prerelease of 0.5.0
James Findley ad81158
- Should now work properly on older (e.g. RHEL 5.x) OSes
James Findley ad81158
- Many new features added
James Findley ad81158
James Findley ad81158
* Fri Jan 08 2010 James Findley <sixy@gmx.com> - 0.5.4.1-5
James Findley ad81158
- Added -Wno-format to hide spurious gcc warnings on AMD64
James Findley ad81158
James Findley ad81158
* Thu Jan 07 2010 James Findley <sixy@gmx.com> - 0.5.4.1-4
James Findley ad81158
- Fixed a few typos in the spec
James Findley ad81158
- Zero padded changelog dates
James Findley ad81158
James Findley ad81158
* Thu Jan 07 2010 James Findley <sixy@gmx.com> - 0.5.4.1-3
James Findley ad81158
- Fixed a few more spec errors
James Findley ad81158
James Findley ad81158
* Thu Jan 07 2010 James Findley <sixy@gmx.com> - 0.5.4.1-2
James Findley ad81158
- Adapted for Fedora packaging policy
James Findley ad81158
- Added an initscript
James Findley ad81158
James Findley ad81158
* Wed Jan 06 2010 James Findley <sixy@gmx.com> - 0.5.4.1-1
James Findley ad81158
- Updated to latest stable upstream
James Findley ad81158
James Findley ad81158
* Mon Nov 27 2009 James Findley	<sixy@gmx.com> - 0.5.2-1
James Findley ad81158
- Initial Release
James Findley ad81158