]> git.pld-linux.org Git - packages/netsniff-ng.git/blob - netsniff-ng.spec
13fc74ce56f464f01067624222c139c2e4f4fcd7
[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 URL:            http://netsniff-ng.org/
11 BuildRequires:  GeoIP-devel >= 1.4.8
12 BuildRequires:  bison
13 BuildRequires:  flex
14 BuildRequires:  libcli-devel
15 BuildRequires:  libnet-devel
16 BuildRequires:  libnetfilter_conntrack-devel
17 BuildRequires:  libnl-devel >= 3.2
18 BuildRequires:  libpcap-devel
19 BuildRequires:  libsodium-devel
20 BuildRequires:  ncurses-devel
21 BuildRequires:  pkgconfig
22 BuildRequires:  rpmbuild(macros) >= 1.719
23 BuildRequires:  sed >= 4.0
24 BuildRequires:  userspace-rcu-devel
25 BuildRequires:  zlib-devel
26 Requires:       GeoIP-libs >= 1.4.8
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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
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
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
57 %prep
58 %setup -q
59
60 %build
61 # not autoconf configure
62 ./configure \
63         --sysconfdir="%{_sysconfdir}" \
64         --prefix="%{_prefix}"
65 %{__make} \
66         CC="%{__cc}" \
67         CPPFLAGS="%{rpmcflags} %{rpmcppflags} -fcommon" \
68         %{?debug:DEBUG=1} \
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
78 for i in *.zsh; do
79         cp -p "$i" $RPM_BUILD_ROOT%{zsh_compdir}/_"${i%.zsh}"
80 done
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS README REPORTING-BUGS bpf_jit_disasm.c bpf.vim
88 %dir %{_sysconfdir}/%{name}
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*
This page took 0.079504 seconds and 2 git commands to generate.