1 #%%define mver %(echo %{version} |cut -f 1-2 -d ".")
3 Summary(pl.UTF-8): Sieciowy top
9 Source0: http://dl.sourceforge.net/nethogs/%{name}-%{version}.tar.gz
10 # Source0-md5: e5f04071571e469e14c89f637cfa34a2
11 URL: http://nethogs.sourceforge.net/
12 BuildRequires: libpcap-devel
13 BuildRequires: libstdc++-devel
14 BuildRequires: ncurses-devel
15 BuildRequires: perl-base
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 NetHogs is a small 'net top' tool. Instead of breaking the traffic
20 down per protocol or per subnet, like most such tools do, it groups
21 bandwidth by process - and does not rely on a special kernel module to
22 be loaded. So if there's suddenly a lot of network traffic, you can
23 fire up NetHogs and immediately see which PID is causing this, and if
24 it's some kind of spinning process, kill it.
26 %description -l pl.UTF-8
27 NetHogs to małe narzędzie sieciowe w stylu programu top. Zamiast
28 rozbijania ruchu na protokoły lub podsieci, jak robi większość
29 narzędzi, grupuje pasmo według procesów - i nie polega przy tym na
30 specjalnym module jądra. Jeśli nagle jest duży ruch w sieci, można
31 uruchomić NetHogs i od razu zobaczyć, który PID to powoduje i
40 CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
46 install %{name} $RPM_BUILD_ROOT%{_bindir}
47 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/*