]>
Commit | Line | Data |
---|---|---|
ca2773af | 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 |
96cbab81 | 5 | Version: 0.6.1 |
6 | Release: 0.1 | |
db63296d AM |
7 | License: GPL |
8 | Group: Networking | |
96cbab81 | 9 | Source0: http://nethogs.sourceforge.net/%{name}-%{version}-pre2.tar.gz |
10 | # Source0-md5: 48775d49fe488e601811fbfb09f6b37d | |
a2d4f43d | 11 | URL: http://nethogs.sourceforge.net/ |
2fe3bca6 | 12 | Patch0: %{name}-include.patch |
db63296d | 13 | BuildRequires: libpcap-devel |
5d861751 | 14 | BuildRequires: libstdc++-devel |
db63296d AM |
15 | BuildRequires: ncurses-devel |
16 | BuildRequires: perl-base | |
db63296d AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
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. | |
26 | ||
ba60acd7 JR |
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 | |
33 | ewentualnie go zabić. | |
5d861751 | 34 | |
db63296d | 35 | %prep |
a2d4f43d | 36 | %setup -q -n %{name} |
2fe3bca6 | 37 | %patch0 -p1 |
db63296d AM |
38 | |
39 | %build | |
40 | %{__make} \ | |
40cd688a | 41 | GCC="%{__cxx}" \ |
dd1c155f | 42 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
db63296d AM |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
5f59e2ea | 46 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} |
5d861751 | 47 | |
5f59e2ea AG |
48 | install %{name} $RPM_BUILD_ROOT%{_bindir} |
49 | install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
db63296d AM |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
eca06c28 | 56 | %doc Changelog README |
db63296d | 57 | %attr(755,root,root) %{_bindir}/* |
5f59e2ea | 58 | %{_mandir}/man8/* |