]> git.pld-linux.org Git - packages/netsniff-ng.git/blob - netsniff-ng.spec
- added opt patch (use our optflags also for mausezahn)
[packages/netsniff-ng.git] / netsniff-ng.spec
1 Summary:        A Swiss army knife for network plumbing
2 Summary(pl.UTF-8):      "Szwajcarski scyzoryk" do napraw sieci
3 Name:           netsniff-ng
4 Version:        0.6.7
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Utilities
8 Source0:        http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz
9 # Source0-md5:  2aba9835923c30721fa891a9dc59507c
10 Patch0:         %{name}-opt.patch
11 URL:            http://netsniff-ng.org/
12 BuildRequires:  GeoIP-devel >= 1.4.8
13 BuildRequires:  bison
14 BuildRequires:  flex
15 BuildRequires:  libcli-devel
16 BuildRequires:  libnet-devel
17 BuildRequires:  libnetfilter_conntrack-devel
18 BuildRequires:  libnl-devel >= 3.2
19 BuildRequires:  libpcap-devel
20 BuildRequires:  libsodium-devel
21 BuildRequires:  ncurses-devel
22 BuildRequires:  pkgconfig
23 BuildRequires:  rpmbuild(macros) >= 1.719
24 BuildRequires:  sed >= 4.0
25 BuildRequires:  userspace-rcu-devel
26 BuildRequires:  zlib-devel
27 Requires:       GeoIP-libs >= 1.4.8
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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
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
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
58 %prep
59 %setup -q
60 %patch0 -p1
61
62 %build
63 # not autoconf configure
64 ./configure \
65         --sysconfdir="%{_sysconfdir}" \
66         --prefix="%{_prefix}"
67
68 # as of 0.6.7 code relies on -fcommon behaviour, force it for gcc 10+
69 %{__make} \
70         CC="%{__cc}" \
71         CPPFLAGS="%{rpmcflags} %{rpmcppflags} -fcommon" \
72         %{?debug:DEBUG=1} \
73         Q=
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_sbindir},%{zsh_compdir}}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 for i in *.zsh; do
83         cp -p "$i" $RPM_BUILD_ROOT%{zsh_compdir}/_"${i%.zsh}"
84 done
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS README REPORTING-BUGS bpf_jit_disasm.c bpf.vim
92 %dir %{_sysconfdir}/%{name}
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*
This page took 0.076245 seconds and 3 git commands to generate.