netsniff-ng/netsniff-ng.spec

69 lines
1.9 KiB
RPMSpec

# vim: set ts=4 sw=4 et:
# norootforbuild
Name: netsniff-ng
Version: 0.5.5.0
Release: 0
Summary: High Performance Network Sniffer for Packet Inspection
# http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
Source: netsniff-ng-%{version}.tar.bz2
Patch1: netsniff-ng-optflags.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
%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 <danborkmann@googlemail.com>
Emmanuel Roullit <emmanuel.roullit@googlemail.com>
%prep
%setup -q -n "%{name}"
%patch1
%build
%__make -C src \
OPTFLAGS="%{optflags} -Wall" \
LD_NORM="%__cc" \
CC_NORM="%__cc" \
CC_DEBUG="%__cc" \
all
%install
%__make -C src \
OPTFLAGS="%{optflags} -Wall" \
LD_NORM="%__cc" \
CC_NORM="%__cc" \
CC_DEBUG="%__cc" \
DESTDIR="%{buildroot}" \
install
%__chmod 0644 "%{buildroot}%{_mandir}"/*/*
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG CODING COPYING CREDITS HACKING README TODO
%config %{_sysconfdir}/netsniff-ng
%{_sbindir}/netsniff-ng
%doc %{_mandir}/man8/netsniff-ng.8%{ext_man}