diff --git a/netsniff-ng-0.6.8.tar.xz b/netsniff-ng-0.6.8.tar.xz new file mode 100644 index 0000000..3caa28d Binary files /dev/null and b/netsniff-ng-0.6.8.tar.xz differ diff --git a/netsniff-ng.spec b/netsniff-ng.spec new file mode 100644 index 0000000..f530afe --- /dev/null +++ b/netsniff-ng.spec @@ -0,0 +1,36 @@ +Name: netsniff-ng +Version: 0.6.8 +Release: 1 +Summary: Packet sniffing beast +License: GPLv2 +URL: http://netsniff-ng.org/ +Source0: http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.xz +BuildRequires: make gcc ncurses-devel GeoIP-devel libnetfilter_conntrack-devel +BuildRequires: userspace-rcu-devel libnl3-devel flex bison +BuildRequires: perl-podlators zlib-devel libpcap-devel libnet-devel libsodium-devel +%description +netsniff-ng is a high performance Linux network sniffer for packet inspection. It can be used for protocol analysis, reverse engineering or network debugging. The gain of performance is reached by 'zero-copy' mechanisms, so that the kernel does not need to copy packets from kernelspace to userspace. + +%prep +%setup -q + +%build +export NACL_INC_DIR=$(pkg-config --variable=includedir libsodium )/sodium +export NACL_LIB=sodium +./configure --prefix='%{_prefix}' --sysconfdir='%{_sysconfdir}' +make %{?_smp_mflags} ETCDIR=%{_sysconfdir} Q= STRIP=: \ + CFLAGS="%{optflags} -fPIC -fcommon" LDFLAGS="%{?__global_ldflags}" + +%install +make install PREFIX=%{_prefix} ETCDIR=%{_sysconfdir} DESTDIR="%{buildroot}" + +%files +%doc AUTHORS COPYING README +%{_sbindir}/* +%dir %{_sysconfdir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}/* +%{_mandir}/man8/* + +%changelog +* Tue Sep 7 2021 zhengyaohui - 0.6.8-1 +- package init diff --git a/netsniff-ng.yaml b/netsniff-ng.yaml new file mode 100644 index 0000000..beb28bb --- /dev/null +++ b/netsniff-ng.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +separator: NA