]>
Commit | Line | Data |
---|---|---|
db63296d | 1 | Summary: net top |
2dfac8e4 | 2 | Summary(pl.UTF-8): Sieciowy top |
db63296d | 3 | Name: nethogs |
e25a5996 JK |
4 | Version: 0.8.0 |
5 | Release: 1 | |
db63296d AM |
6 | License: GPL |
7 | Group: Networking | |
6e13052f | 8 | Source0: http://downloads.sourceforge.net/nethogs/%{name}-%{version}.tar.gz |
e25a5996 | 9 | # Source0-md5: d6fb12b46e80a50c9b9f91dd48e2b234 |
a2d4f43d | 10 | URL: http://nethogs.sourceforge.net/ |
db63296d | 11 | BuildRequires: libpcap-devel |
5d861751 | 12 | BuildRequires: libstdc++-devel |
db63296d AM |
13 | BuildRequires: ncurses-devel |
14 | BuildRequires: perl-base | |
db63296d AM |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | NetHogs is a small 'net top' tool. Instead of breaking the traffic | |
19 | down per protocol or per subnet, like most such tools do, it groups | |
20 | bandwidth by process - and does not rely on a special kernel module to | |
21 | be loaded. So if there's suddenly a lot of network traffic, you can | |
22 | fire up NetHogs and immediately see which PID is causing this, and if | |
23 | it's some kind of spinning process, kill it. | |
24 | ||
ba60acd7 JR |
25 | %description -l pl.UTF-8 |
26 | NetHogs to małe narzędzie sieciowe w stylu programu top. Zamiast | |
27 | rozbijania ruchu na protokoły lub podsieci, jak robi większość | |
28 | narzędzi, grupuje pasmo według procesów - i nie polega przy tym na | |
29 | specjalnym module jądra. Jeśli nagle jest duży ruch w sieci, można | |
30 | uruchomić NetHogs i od razu zobaczyć, który PID to powoduje i | |
31 | ewentualnie go zabić. | |
5d861751 | 32 | |
db63296d | 33 | %prep |
a2d4f43d | 34 | %setup -q -n %{name} |
db63296d AM |
35 | |
36 | %build | |
37 | %{__make} \ | |
53c31b23 AM |
38 | CXX="%{__cxx}" \ |
39 | CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses" | |
db63296d AM |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
5f59e2ea | 43 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} |
5d861751 | 44 | |
5f59e2ea AG |
45 | install %{name} $RPM_BUILD_ROOT%{_bindir} |
46 | install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
db63296d AM |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
eca06c28 | 53 | %doc Changelog README |
db63296d | 54 | %attr(755,root,root) %{_bindir}/* |
5f59e2ea | 55 | %{_mandir}/man8/* |