0.5.4
OBS-URL: https://build.opensuse.org/package/show/network:utilities/netsniff-ng?expand=0&rev=1
This commit is contained in:
commit
b4d8ffcf10
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
netsniff-ng-0.5.4.tar.bz2
Normal file
3
netsniff-ng-0.5.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b27ec0bec6f6e22b066183b37f59bf9714656cbf94e0bca61d1becd5893f0738
|
||||
size 124696
|
33
netsniff-ng-fix_printf_format.patch
Normal file
33
netsniff-ng-fix_printf_format.patch
Normal file
@ -0,0 +1,33 @@
|
||||
--- src/netsniff-ng.c.orig 2009-12-31 11:00:20.000000000 +0100
|
||||
+++ src/netsniff-ng.c 2009-12-31 11:02:16.000000000 +0100
|
||||
@@ -139,16 +139,16 @@
|
||||
*/
|
||||
info("stats summary:\n");
|
||||
info("--------------------------------------------------------------------------------------------\n");
|
||||
- info("elapsed time: %llu d, %llu h, %llu min, %llu s, %llu ns\n", d_day,
|
||||
+ info("elapsed time: %zu d, %zu h, %zu min, %zu s, %zu ns\n", d_day,
|
||||
d_h, d_min, d_sec, d_nsec);
|
||||
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||||
info(" | per sec | per min | total \n");
|
||||
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||||
- info(" frames | %24llu | %24llu | %24llu \n",
|
||||
+ info(" frames | %24zu | %24zu | %24zu \n",
|
||||
netstat.s_per_sec.frames, netstat.s_per_min.frames,
|
||||
netstat.total.frames);
|
||||
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||||
- info(" in B | %24llu | %24llu | %24llu \n",
|
||||
+ info(" in B | %24zu | %24zu | %24zu \n",
|
||||
netstat.s_per_sec.bytes, netstat.s_per_min.bytes,
|
||||
netstat.total.bytes);
|
||||
info(" in KB | %24llu | %24llu | %24llu \n",
|
||||
@@ -516,8 +516,8 @@
|
||||
* on 32 and 64 bit arch w/o gcc warnings
|
||||
*/
|
||||
|
||||
- info("captured frames: %llu, "
|
||||
- "captured bytes: %llu [%llu KB, %llu MB, %llu GB]\n",
|
||||
+ info("captured frames: %zu, "
|
||||
+ "captured bytes: %zu [%zu KB, %zu MB, %zu GB]\n",
|
||||
netstat.total.frames, netstat.total.bytes,
|
||||
netstat.total.bytes / 1024,
|
||||
netstat.total.bytes / (1024 * 1024),
|
5
netsniff-ng.changes
Normal file
5
netsniff-ng.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 31 10:09:24 UTC 2009 - pascal.bleser@opensuse.org
|
||||
|
||||
- new package (0.5.4)
|
||||
|
87
netsniff-ng.spec
Normal file
87
netsniff-ng.spec
Normal file
@ -0,0 +1,87 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: netsniff-ng
|
||||
Version: 0.5.4
|
||||
Release: 0
|
||||
Summary: High Performance Network Sniffer for Packet Inspection
|
||||
# http://netsniff-ng.googlecode.com/files/netsniff-ng-%{version}.tar.gz
|
||||
Source: netsniff-ng-%{version}.tar.bz2
|
||||
Patch1: netsniff-ng-fix_printf_format.patch
|
||||
URL: http://code.google.com/p/netsniff-ng/
|
||||
Group: Productivity/Networking/Diagnostic
|
||||
License: GNU General Public License version 2 or later (GPL v2 or later)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
BuildRequires: gcc make glibc-devel
|
||||
BuildRequires: autoconf automake libtool
|
||||
%if 0%{?suse_version} >= 1030
|
||||
BuildRequires: licenses
|
||||
Requires: licenses
|
||||
%endif
|
||||
|
||||
%description
|
||||
netsniff-ng is a high performance Linux network sniffer for packet inspection.
|
||||
Basically, it is similar to tcpdump, but it doesn't need syscalls for fetching
|
||||
packets. Instead, it uses an memory mapped area within kernel space for
|
||||
accessing packets without the need of copying them to userspace ('zero-copy'
|
||||
mechanism). It can be used for protocol analysis and reverse engineering,
|
||||
network debugging, measurement of performance throughput, or network statistics
|
||||
creation of incoming packets on central network nodes like routers or
|
||||
firewalls.
|
||||
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Daniel Borkmann <danborkmann@googlemail.com>
|
||||
Emmanuel Roullit <emmanuel.roullit@googlemail.com>
|
||||
|
||||
%if 0%{?opensuse_bs}
|
||||
%debug_package
|
||||
%endif
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
|
||||
%build
|
||||
pushd src
|
||||
%__make %{?jobs:-j%{jobs}} \
|
||||
CC="%__cc" \
|
||||
CFLAGS="-Wall %{optflags}" \
|
||||
BINDIR="%{_sbindir}" \
|
||||
ETCDIR="%{_sysconfdir}" \
|
||||
MANDIR="%{_mandir}/man8"
|
||||
popd #src
|
||||
|
||||
%install
|
||||
pushd src
|
||||
%makeinstall \
|
||||
CC="%__cc" \
|
||||
CFLAGS="-Wall %{optflags}" \
|
||||
BINDIR="%{_sbindir}" \
|
||||
ETCDIR="%{_sysconfdir}" \
|
||||
MANDIR="%{_mandir}/man8"
|
||||
popd #src
|
||||
|
||||
%__chmod 0644 "%{buildroot}%{_mandir}"/*/*
|
||||
|
||||
h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ")
|
||||
test -e "$h" && %__ln_s -f "$h" .
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS Changelog COPYING CREDITS README TODO
|
||||
%doc examples
|
||||
%config %{_sysconfdir}/netsniff-ng
|
||||
%{_sbindir}/netsniff-ng
|
||||
%doc %{_mandir}/man8/netsniff-ng.8*
|
||||
|
||||
%changelog
|
||||
# vim: set sw=3 ts=3 noet:
|
||||
# Local Variables:
|
||||
# mode: rpm-spec
|
||||
# tab-width: 3
|
||||
# End:
|
Loading…
x
Reference in New Issue
Block a user