netsniff-ng/netsniff-ng.spec
Marcus Meissner f6256a7c34 Accepting request 439074 from home:mnhauke
- update to 0.6.2
  - Many improvements to the trafgen protocol generation functions,
    e.g. the ability to increment/randomize protocol fields at runtime
    using dinc()/rnd(), new functions to generate IPv6, ICMPv4/v6, PFC,
    and IEEE 802.3X PAUSE headers. From Vadim Kochan and Tobias Klauser.
  - flowtop UI improvements. From Vadim Kochan.
  - Packet counting fixes, e.g. to not account for duplicate packets
    received over the loopüback interface. From Paolo Abeni.
  - Allow IPv6 ranges to be specified for source and dest addresses
    in mausezahn. From Tommy Beadle.
  - Build system improvements, allowing to specify more options to the
    configure script. See './configure --help' for details.
    From Vadim Kochan and Tobias Klauser.
  - Various compilation fixes, e.g. for warnings or build failure
    certain systems. From Yousong Zhou and arch3y.
  - Various documentation improvements and fixes. From Vadim Kochan,
    Hisao Tanabe, and Tobias Klauser.
  - add patch netsniff-ng-fix-ncurses.diff
    fix some ncurses related issues during compile time

OBS-URL: https://build.opensuse.org/request/show/439074
OBS-URL: https://build.opensuse.org/package/show/network:utilities/netsniff-ng?expand=0&rev=20
2016-11-17 17:20:50 +00:00

94 lines
3.3 KiB
RPMSpec

#
# spec file for package netsniff-ng
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: netsniff-ng
Version: 0.6.2
Release: 0
Summary: High Performance Network Sniffer for Packet Inspection
License: GPL-2.0+
Group: Productivity/Networking/Diagnostic
Url: http://netsniff-ng.org/
Source: http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-%{version}.tar.xz
Patch0: netsniff-ng-fix-ncurses.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libGeoIP-devel
BuildRequires: libcli-devel
BuildRequires: libnet-devel
BuildRequires: libnetfilter_conntrack-devel
BuildRequires: libnl3-devel
BuildRequires: libpcap-devel
BuildRequires: libsodium-devel
BuildRequires: liburcu-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
The netsniff-ng toolkit consists of the following utilities:
* netsniff-ng, a fast zero-copy analyzer, pcap capturing and replaying tool
* trafgen, a multithreaded low-level zero-copy network packet generator
* mausezahn, high-level packet generator for HW/SW appliances with Cisco-CLI
* bpfc, a Berkeley Packet Filter compiler, Linux BPF JIT disassembler
* ifpps, a top-like kernel networking statistics tool
* flowtop, a top-like netfilter connection tracking tool
* curvetun, a lightweight curve25519-based IP tunnel
* astraceroute, an autonomous system (AS) trace route utility
%prep
%setup -q
%patch0 -p1
%build
export NACL_LIB=sodium
export NACL_INC_DIR=/usr/include/sodium
./configure
make %{?_smp_mflags} ETCDIR=%{_sysconfdir} Q= STRIP=: CFLAGS="%{optflags}"
%install
make install PREFIX=%{_prefix} ETCDIR=%{_sysconfdir} DESTDIR=%{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README REPORTING-BUGS
%dir %{_sysconfdir}/netsniff-ng
%config(noreplace) %{_sysconfdir}/netsniff-ng/*
%{_sbindir}/*
%{_mandir}/man8/*
%changelog