[packages/netsniff-ng] initial PLD release
gotar
gotar at pld-linux.org
Sun Nov 5 16:45:56 CET 2017
commit ac292e066cd6094d9d5e6951d8463f93e2dc5966
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Sun Nov 5 16:45:27 2017 +0100
initial PLD release
netsniff-ng.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
---
diff --git a/netsniff-ng.spec b/netsniff-ng.spec
new file mode 100644
index 0000000..f70c814
--- /dev/null
+++ b/netsniff-ng.spec
@@ -0,0 +1,71 @@
+Summary: A Swiss army knife for network plumbing
+Name: netsniff-ng
+Version: 0.6.3
+Release: 1
+License: GPL v2
+Group: Networking/Utilities
+Source0: http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz
+# Source0-md5: e892a7f2e025fba07d0f0a330e9917df
+URL: http://netsniff-ng.org/
+BuildRequires: GeoIP-devel
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: libcli-devel
+BuildRequires: libnet-devel
+BuildRequires: libnetfilter_conntrack-devel
+BuildRequires: libnl-devel
+BuildRequires: libpcap-devel
+BuildRequires: libsodium-devel
+BuildRequires: ncurses-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.719
+BuildRequires: userspace-rcu-devel
+BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+* netsniff-ng, a fast zero-copy analyzer, pcap capturing and replaying tool
+* trafgen, a multithreaded low-level zero-copy network packet generator
+* mausezahn, high-level packet generator for HW/SW appliances with Cisco-CLI
+* bpfc, a Berkeley Packet Filter compiler, Linux BPF JIT disassembler
+* ifpps, a top-like kernel networking statistics tool
+* flowtop, a top-like netfilter connection tracking tool
+* curvetun, a lightweight curve25519-based IP tunnel
+* astraceroute, an autonomous system (AS) trace route utility
+
+%prep
+%setup -q
+
+%build
+NACL_INC_DIR=$(pkg-config --variable=includedir libsodium )/sodium \
+NACL_LIB=sodium \
+%configure \
+ --sysconfdir="%{_sysconfdir}" \
+ --prefix="%{_prefix}"
+%{__make} \
+ %{?debug:DEBUG=1} \
+ %{!?debug:HARDENING=1 CPPFLAGS="%{rpmcflags}"} \
+ Q=
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{zsh_compdir}}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+for i in *.zsh
+ install -p "$i" "%{zsh_compdir}/_${i%.zsh}"
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README REPORTING-BUGS bpf_jit_disasm bpf.vim
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
+%attr(755,root,root) %{_sbindir}/*
+%{zsh_compdir}/_*
+%{_mandir}/man8/*.8*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netsniff-ng.git/commitdiff/ac292e066cd6094d9d5e6951d8463f93e2dc5966
More information about the pld-cvs-commit
mailing list