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