# norootforbuild Name: netsniff-ng Version: 0.5.4 Release: 0 Summary: High Performance Network Sniffer for Packet Inspection # http://netsniff-ng.googlecode.com/files/netsniff-ng-%{version}.tar.gz Source: netsniff-ng-%{version}.tar.bz2 Patch1: netsniff-ng-fix_printf_format.patch Patch2: netsniff-ng-fix_buffer_overflow.patch URL: http://code.google.com/p/netsniff-ng/ Group: Productivity/Networking/Diagnostic License: GNU General Public License version 2 or later (GPL v2 or later) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: gcc make glibc-devel BuildRequires: autoconf automake libtool %if 0%{?suse_version} >= 1030 BuildRequires: licenses Requires: licenses %endif %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. Authors: -------- Daniel Borkmann Emmanuel Roullit %if 0%{?opensuse_bs} %debug_package %endif %prep %setup -q %patch1 %patch2 %build pushd src %__make %{?jobs:-j%{jobs}} \ CC="%__cc" \ CFLAGS="-Wall %{optflags}" \ BINDIR="%{_sbindir}" \ ETCDIR="%{_sysconfdir}" \ MANDIR="%{_mandir}/man8" popd #src %install pushd src %makeinstall \ CC="%__cc" \ CFLAGS="-Wall %{optflags}" \ BINDIR="%{_sbindir}" \ ETCDIR="%{_sysconfdir}" \ MANDIR="%{_mandir}/man8" popd #src %__chmod 0644 "%{buildroot}%{_mandir}"/*/* h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ") test -e "$h" && %__ln_s -f "$h" . %clean %__rm -rf "%{buildroot}" %files %defattr(-,root,root) %doc AUTHORS Changelog COPYING CREDITS README TODO %doc examples %config %{_sysconfdir}/netsniff-ng %{_sbindir}/netsniff-ng %doc %{_mandir}/man8/netsniff-ng.8* %changelog # vim: set sw=3 ts=3 noet: # Local Variables: # mode: rpm-spec # tab-width: 3 # End: