2013-06-12 14:43:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package netsniff-ng
|
|
|
|
#
|
2021-01-25 11:11:56 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-03-29 13:40:21 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-11-15 21:26:25 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-12 14:43:29 +02:00
|
|
|
#
|
2009-12-31 11:10:40 +01:00
|
|
|
|
2012-03-30 16:15:00 +02:00
|
|
|
|
2010-10-11 20:52:18 +02:00
|
|
|
Name: netsniff-ng
|
2021-01-25 11:11:56 +01:00
|
|
|
Version: 0.6.8
|
2010-10-11 20:52:18 +02:00
|
|
|
Release: 0
|
2017-05-26 21:46:38 +02:00
|
|
|
Summary: Network Sniffer for Packet Inspection
|
2018-11-15 21:26:25 +01:00
|
|
|
License: GPL-2.0-only
|
2013-06-12 14:43:29 +02:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2020-05-22 08:28:17 +02:00
|
|
|
URL: http://netsniff-ng.org/
|
2015-11-07 10:10:53 +01:00
|
|
|
Source: http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-%{version}.tar.xz
|
2013-06-12 14:43:29 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-03-30 16:15:00 +02:00
|
|
|
BuildRequires: bison
|
2013-06-12 14:43:29 +02:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcli-devel
|
2015-11-07 10:10:53 +01:00
|
|
|
BuildRequires: libnet-devel
|
2013-06-12 14:43:29 +02:00
|
|
|
BuildRequires: libnetfilter_conntrack-devel
|
2015-11-07 10:10:53 +01:00
|
|
|
BuildRequires: libnl3-devel
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsodium-devel
|
2013-06-12 14:43:29 +02:00
|
|
|
BuildRequires: libtool
|
2018-01-07 15:38:34 +01:00
|
|
|
BuildRequires: liburcu-devel
|
2013-06-12 14:43:29 +02:00
|
|
|
BuildRequires: make
|
2013-06-17 14:39:22 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-11-07 10:10:53 +01:00
|
|
|
BuildRequires: zlib-devel
|
2018-11-15 21:26:25 +01:00
|
|
|
BuildRequires: pkgconfig(ncursesw)
|
|
|
|
Patch0: netsniff-ng-ncursesw.patch
|
2015-11-07 10:10:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-12-31 11:10:40 +01:00
|
|
|
|
|
|
|
%description
|
2017-05-26 21:46:38 +02:00
|
|
|
netsniff-ng is a network sniffer for packet inspection. It is similar
|
|
|
|
to tcpdump, and likewise uses a memory mapped area for accessing
|
|
|
|
packets. 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.
|
2009-12-31 11:10:40 +01:00
|
|
|
|
2017-05-26 21:46:38 +02:00
|
|
|
The netsniff-ng toolkit consists of the following utilities:
|
2015-11-07 10:10:53 +01:00
|
|
|
|
2017-05-26 21:46:38 +02:00
|
|
|
* netsniff-ng, a zero-copy analyzer, pcap capturing and replaying tool
|
2015-11-07 10:10:53 +01:00
|
|
|
* 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
|
2017-05-26 21:46:38 +02:00
|
|
|
* curvetun, a curve25519-based IP tunnel
|
2015-11-07 10:10:53 +01:00
|
|
|
* astraceroute, an autonomous system (AS) trace route utility
|
|
|
|
|
2009-12-31 11:10:40 +01:00
|
|
|
%prep
|
2012-03-29 13:40:21 +02:00
|
|
|
%setup -q
|
2019-05-12 14:52:59 +02:00
|
|
|
%patch0 -p1
|
2009-12-31 11:10:40 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-07 10:10:53 +01:00
|
|
|
export NACL_LIB=sodium
|
|
|
|
export NACL_INC_DIR=/usr/include/sodium
|
2019-11-10 11:52:07 +01:00
|
|
|
./configure --disable-geoip
|
2021-01-25 11:11:56 +01:00
|
|
|
make %{?_smp_mflags} ETCDIR=%{_sysconfdir} Q= STRIP=: CFLAGS="%{optflags}"
|
2009-12-31 11:10:40 +01:00
|
|
|
|
|
|
|
%install
|
2015-11-07 10:10:53 +01:00
|
|
|
make install PREFIX=%{_prefix} ETCDIR=%{_sysconfdir} DESTDIR=%{buildroot}
|
2009-12-31 11:10:40 +01:00
|
|
|
|
|
|
|
%files
|
2019-05-12 14:52:59 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README REPORTING-BUGS
|
2015-11-07 10:10:53 +01:00
|
|
|
%dir %{_sysconfdir}/netsniff-ng
|
|
|
|
%config(noreplace) %{_sysconfdir}/netsniff-ng/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/*
|
2009-12-31 11:10:40 +01:00
|
|
|
|
2012-03-29 13:40:21 +02:00
|
|
|
%changelog
|