]>
Commit | Line | Data |
---|---|---|
243a500c | 1 | #%%define mver %(echo %{version} |cut -f 1-2 -d ".") |
db63296d | 2 | Summary: net top |
2dfac8e4 | 3 | Summary(pl.UTF-8): Sieciowy top |
db63296d | 4 | Name: nethogs |
e25a5996 JK |
5 | Version: 0.8.0 |
6 | Release: 1 | |
db63296d AM |
7 | License: GPL |
8 | Group: Networking | |
243a500c | 9 | Source0: http://dl.sourceforge.net/nethogs/%{name}-%{version}.tar.gz |
e25a5996 | 10 | # Source0-md5: d6fb12b46e80a50c9b9f91dd48e2b234 |
a2d4f43d | 11 | URL: http://nethogs.sourceforge.net/ |
db63296d | 12 | BuildRequires: libpcap-devel |
5d861751 | 13 | BuildRequires: libstdc++-devel |
db63296d AM |
14 | BuildRequires: ncurses-devel |
15 | BuildRequires: perl-base | |
db63296d AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
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. | |
25 | ||
ba60acd7 JR |
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 | |
32 | ewentualnie go zabić. | |
5d861751 | 33 | |
db63296d | 34 | %prep |
a2d4f43d | 35 | %setup -q -n %{name} |
db63296d AM |
36 | |
37 | %build | |
38 | %{__make} \ | |
53c31b23 AM |
39 | CXX="%{__cxx}" \ |
40 | CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses" | |
db63296d AM |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
5f59e2ea | 44 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} |
5d861751 | 45 | |
5f59e2ea AG |
46 | install %{name} $RPM_BUILD_ROOT%{_bindir} |
47 | install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
db63296d AM |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
eca06c28 | 54 | %doc Changelog README |
db63296d | 55 | %attr(755,root,root) %{_bindir}/* |
5f59e2ea | 56 | %{_mandir}/man8/* |