]>
Commit | Line | Data |
---|---|---|
ac292e06 TP |
1 | Summary: A Swiss army knife for network plumbing |
2 | Name: netsniff-ng | |
3 | Version: 0.6.3 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Networking/Utilities | |
7 | Source0: http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz | |
8 | # Source0-md5: e892a7f2e025fba07d0f0a330e9917df | |
9 | URL: http://netsniff-ng.org/ | |
10 | BuildRequires: GeoIP-devel | |
11 | BuildRequires: bison | |
12 | BuildRequires: flex | |
13 | BuildRequires: libcli-devel | |
14 | BuildRequires: libnet-devel | |
15 | BuildRequires: libnetfilter_conntrack-devel | |
16 | BuildRequires: libnl-devel | |
17 | BuildRequires: libpcap-devel | |
18 | BuildRequires: libsodium-devel | |
19 | BuildRequires: ncurses-devel | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: rpmbuild(macros) >= 1.719 | |
22 | BuildRequires: userspace-rcu-devel | |
23 | BuildRequires: zlib-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | * netsniff-ng, a fast zero-copy analyzer, pcap capturing and replaying tool | |
28 | * trafgen, a multithreaded low-level zero-copy network packet generator | |
29 | * mausezahn, high-level packet generator for HW/SW appliances with Cisco-CLI | |
30 | * bpfc, a Berkeley Packet Filter compiler, Linux BPF JIT disassembler | |
31 | * ifpps, a top-like kernel networking statistics tool | |
32 | * flowtop, a top-like netfilter connection tracking tool | |
33 | * curvetun, a lightweight curve25519-based IP tunnel | |
34 | * astraceroute, an autonomous system (AS) trace route utility | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | NACL_INC_DIR=$(pkg-config --variable=includedir libsodium )/sodium \ | |
41 | NACL_LIB=sodium \ | |
211ed9e0 | 42 | ./configure \ |
ac292e06 TP |
43 | --sysconfdir="%{_sysconfdir}" \ |
44 | --prefix="%{_prefix}" | |
56a9b928 | 45 | %{__make} \ |
ac292e06 | 46 | %{?debug:DEBUG=1} \ |
56a9b928 | 47 | %{!?debug:HARDENING=1} \ |
ac292e06 TP |
48 | Q= |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{zsh_compdir}} | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | for i in *.zsh | |
c50717c3 | 58 | install -p "$i" $RPM_BUILD_ROOT%{zsh_compdir}/_"${i%.zsh}" |
ac292e06 TP |
59 | done |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc AUTHORS README REPORTING-BUGS bpf_jit_disasm bpf.vim | |
67 | %dir %{_sysconfdir}/%{name} | |
68 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/* | |
69 | %attr(755,root,root) %{_sbindir}/* | |
70 | %{zsh_compdir}/_* | |
71 | %{_mandir}/man8/*.8* |