]> git.pld-linux.org Git - packages/netsniff-ng.git/blame - netsniff-ng.spec
- rel 3, parallel install is broken
[packages/netsniff-ng.git] / netsniff-ng.spec
CommitLineData
ac292e06 1Summary: A Swiss army knife for network plumbing
5fb20796 2Summary(pl.UTF-8): "Szwajcarski scyzoryk" do napraw sieci
ac292e06 3Name: netsniff-ng
9a3541b8 4Version: 0.6.7
5d3d7e57 5Release: 3
ac292e06
TP
6License: GPL v2
7Group: Networking/Utilities
8Source0: http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz
9a3541b8 9# Source0-md5: 2aba9835923c30721fa891a9dc59507c
c3b22c6d 10Patch0: %{name}-opt.patch
ac292e06 11URL: http://netsniff-ng.org/
5fb20796 12BuildRequires: GeoIP-devel >= 1.4.8
ac292e06
TP
13BuildRequires: bison
14BuildRequires: flex
15BuildRequires: libcli-devel
16BuildRequires: libnet-devel
17BuildRequires: libnetfilter_conntrack-devel
5fb20796 18BuildRequires: libnl-devel >= 3.2
ac292e06
TP
19BuildRequires: libpcap-devel
20BuildRequires: libsodium-devel
21BuildRequires: ncurses-devel
22BuildRequires: pkgconfig
23BuildRequires: rpmbuild(macros) >= 1.719
5fb20796 24BuildRequires: sed >= 4.0
ac292e06
TP
25BuildRequires: userspace-rcu-devel
26BuildRequires: zlib-devel
5fb20796 27Requires: GeoIP-libs >= 1.4.8
ac292e06
TP
28BuildRoot: %{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
76rm -rf $RPM_BUILD_ROOT
77install -d $RPM_BUILD_ROOT{%{_sbindir},%{zsh_compdir}}
78
5d3d7e57 79%{__make} -j1 install \
ac292e06
TP
80 DESTDIR=$RPM_BUILD_ROOT
81
447758fc 82for i in *.zsh; do
9a3541b8 83 cp -p "$i" $RPM_BUILD_ROOT%{zsh_compdir}/_"${i%.zsh}"
ac292e06
TP
84done
85
86%clean
87rm -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*
This page took 0.163033 seconds and 4 git commands to generate.