]>
Commit | Line | Data |
---|---|---|
ac292e06 | 1 | Summary: A Swiss army knife for network plumbing |
5fb20796 | 2 | Summary(pl.UTF-8): "Szwajcarski scyzoryk" do napraw sieci |
ac292e06 | 3 | Name: netsniff-ng |
9a3541b8 | 4 | Version: 0.6.7 |
5d3d7e57 | 5 | Release: 3 |
ac292e06 TP |
6 | License: GPL v2 |
7 | Group: Networking/Utilities | |
8 | Source0: http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz | |
9a3541b8 | 9 | # Source0-md5: 2aba9835923c30721fa891a9dc59507c |
c3b22c6d | 10 | Patch0: %{name}-opt.patch |
ac292e06 | 11 | URL: http://netsniff-ng.org/ |
5fb20796 | 12 | BuildRequires: GeoIP-devel >= 1.4.8 |
ac292e06 TP |
13 | BuildRequires: bison |
14 | BuildRequires: flex | |
15 | BuildRequires: libcli-devel | |
16 | BuildRequires: libnet-devel | |
17 | BuildRequires: libnetfilter_conntrack-devel | |
5fb20796 | 18 | BuildRequires: libnl-devel >= 3.2 |
ac292e06 TP |
19 | BuildRequires: libpcap-devel |
20 | BuildRequires: libsodium-devel | |
21 | BuildRequires: ncurses-devel | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: rpmbuild(macros) >= 1.719 | |
5fb20796 | 24 | BuildRequires: sed >= 4.0 |
ac292e06 TP |
25 | BuildRequires: userspace-rcu-devel |
26 | BuildRequires: zlib-devel | |
5fb20796 | 27 | Requires: GeoIP-libs >= 1.4.8 |
ac292e06 TP |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
5fb20796 JB |
31 | * netsniff-ng, a fast zero-copy analyzer, pcap capturing and replaying |
32 | tool | |
33 | * trafgen, a multithreaded low-level zero-copy network packet | |
34 | generator | |
35 | * mausezahn, high-level packet generator for HW/SW appliances with | |
36 | Cisco-CLI | |
ac292e06 TP |
37 | * bpfc, a Berkeley Packet Filter compiler, Linux BPF JIT disassembler |
38 | * ifpps, a top-like kernel networking statistics tool | |
39 | * flowtop, a top-like netfilter connection tracking tool | |
40 | * curvetun, a lightweight curve25519-based IP tunnel | |
41 | * astraceroute, an autonomous system (AS) trace route utility | |
42 | ||
5fb20796 JB |
43 | %description -l pl.UTF-8 |
44 | * netsniff-ng - szybkie, niekopiujące narzędzie do analizy, | |
45 | przechwytywania pakietów przez pcap i odtwarzania | |
46 | * trafgen - wielowątkowy, niskopoziomowy, niekopiujący generator | |
47 | pakietów sieciowych | |
48 | * mausezahn - wysokopoziomowy generator pakietów do zastosowań HW/SW z | |
49 | interfejsem linii poleceń w stylu Cisco | |
50 | * bpfc - kompilator filtrów BPF (Berkeley Packet Filter), disasembler | |
51 | JIT linuksowego BPF | |
52 | * ifpps - narzędzie do statystyk sieciowych jądra w stylu programu top | |
53 | * flowtop - narzędzie do śledzenia połączeń netfiltra w stylu topa | |
54 | * curvetun - lekki tunel IP oparty na curve25519 | |
55 | * astraceroute - narzędzie autonomicznego systemu (AS) do śledzenia | |
56 | tras | |
57 | ||
ac292e06 TP |
58 | %prep |
59 | %setup -q | |
c3b22c6d | 60 | %patch0 -p1 |
5fb20796 | 61 | |
ac292e06 | 62 | %build |
9a3541b8 | 63 | # not autoconf configure |
211ed9e0 | 64 | ./configure \ |
ac292e06 TP |
65 | --sysconfdir="%{_sysconfdir}" \ |
66 | --prefix="%{_prefix}" | |
c3b22c6d JB |
67 | |
68 | # as of 0.6.7 code relies on -fcommon behaviour, force it for gcc 10+ | |
56a9b928 | 69 | %{__make} \ |
9a3541b8 | 70 | CC="%{__cc}" \ |
13c17faf | 71 | CPPFLAGS="%{rpmcflags} %{rpmcppflags} -fcommon" \ |
ac292e06 | 72 | %{?debug:DEBUG=1} \ |
ac292e06 TP |
73 | Q= |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{zsh_compdir}} | |
78 | ||
5d3d7e57 | 79 | %{__make} -j1 install \ |
ac292e06 TP |
80 | DESTDIR=$RPM_BUILD_ROOT |
81 | ||
447758fc | 82 | for i in *.zsh; do |
9a3541b8 | 83 | cp -p "$i" $RPM_BUILD_ROOT%{zsh_compdir}/_"${i%.zsh}" |
ac292e06 TP |
84 | done |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
1179d334 | 91 | %doc AUTHORS README REPORTING-BUGS bpf_jit_disasm.c bpf.vim |
ac292e06 | 92 | %dir %{_sysconfdir}/%{name} |
5fb20796 JB |
93 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf |
94 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/stddef.h | |
95 | %attr(755,root,root) %{_sbindir}/astraceroute | |
96 | %attr(755,root,root) %{_sbindir}/bpfc | |
97 | %attr(755,root,root) %{_sbindir}/curvetun | |
98 | %attr(755,root,root) %{_sbindir}/flowtop | |
99 | %attr(755,root,root) %{_sbindir}/ifpps | |
100 | %attr(755,root,root) %{_sbindir}/mausezahn | |
101 | %attr(755,root,root) %{_sbindir}/netsniff-ng | |
102 | %attr(755,root,root) %{_sbindir}/trafgen | |
103 | %{zsh_compdir}/_astraceroute | |
104 | %{zsh_compdir}/_bpfc | |
105 | %{zsh_compdir}/_curvetun | |
106 | %{zsh_compdir}/_flowtop | |
107 | %{zsh_compdir}/_ifpps | |
108 | %{zsh_compdir}/_mausezahn | |
109 | %{zsh_compdir}/_netsniff-ng | |
110 | %{zsh_compdir}/_trafgen | |
111 | %{_mandir}/man8/astraceroute.8* | |
112 | %{_mandir}/man8/bpfc.8* | |
113 | %{_mandir}/man8/curvetun.8* | |
114 | %{_mandir}/man8/flowtop.8* | |
115 | %{_mandir}/man8/ifpps.8* | |
116 | %{_mandir}/man8/mausezahn.8* | |
117 | %{_mandir}/man8/netsniff-ng.8* | |
118 | %{_mandir}/man8/trafgen.8* |