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