Summary: High performance network sniffer for packet inspection Name: netsniff-ng Version: 0.5.4.1 Release: 1%{?dist} License: GPLv2+ Group: Applications/Internet URL: http://code.google.com/p/netsniff-ng/ Source0: http://netsniff-ng.googlecode.com/files/netsniff-ng-%{version}.tar.gz Source1: netsniff-ng.init Source2: netsniff-ng.syscfg Patch0: netsniff-ng-0.5.4.1-makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts %description netsniff-ng is a high performance Linux network sniffer for packet inspection. Basically, it is similar to tcpdump, but it doesn't need syscalls for fetching packets. Instead, it uses an memory mapped area within kernel space for accessing packets without the need of copying them to userspace ('zero-copy' mechanism). It can be used for protocol analysis and reverse engineering, network debugging, measurement of performance throughput, or network statistics creation of incoming packets on central network nodes like routers or firewalls. %prep %setup -q -n %{name}_%{version} %patch0 -p1 %build pushd src %{__make} %{?_smp_mflags} \ CC="%{__cc}" \ CFLAGS="%{optflags}" \ BINDIR="%{_sbindir}" \ ETCDIR="%{_sysconfdir}" \ MANDIR="%{_mandir}/man8" %install %{__rm} -rf %{buildroot} pushd src %{__make} DESTDIR="%{buildroot}" install \ CC="%{__cc}" \ CFLAGS="%{optflags}" \ BINDIR="%{_sbindir}" \ ETCDIR="%{_sysconfdir}" \ MANDIR="%{_mandir}/man8" %{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} %{__install} -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %clean %{__rm} -rf %{buildroot} %post /sbin/chkconfig --add %{name} %preun if [ $1 = 0 ] ; then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %files %defattr(-, root, root, -) %doc AUTHORS Changelog COPYING CREDITS README TODO %doc examples %{_sbindir}/%{name} %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/rules %{_initrddir}/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/%{name}/rules/*.bpf %{_mandir}/man8/%{name}.8* %changelog * Thu Jan 05 2010 Terje Rosten - 0.5.4.1-1 - Adapt to Fedora packaging policy * Sat Jan 02 2010 pascal.bleser@opensuse.org - update to 0.5.4.1: patches merged upstream * Fri Jan 01 2010 pascal.bleser@opensuse.org - fix segfault in buffer overflow patch * Thu Dec 31 2009 pascal.bleser@opensuse.org - new package (0.5.4)