]> git.pld-linux.org Git - packages/nethogs.git/blame - nethogs.spec
updated to 0.8.0
[packages/nethogs.git] / nethogs.spec
CommitLineData
243a500c 1#%%define mver %(echo %{version} |cut -f 1-2 -d ".")
db63296d 2Summary: net top
2dfac8e4 3Summary(pl.UTF-8): Sieciowy top
db63296d 4Name: nethogs
e25a5996
JK
5Version: 0.8.0
6Release: 1
db63296d
AM
7License: GPL
8Group: Networking
243a500c 9Source0: http://dl.sourceforge.net/nethogs/%{name}-%{version}.tar.gz
e25a5996 10# Source0-md5: d6fb12b46e80a50c9b9f91dd48e2b234
a2d4f43d 11URL: http://nethogs.sourceforge.net/
db63296d 12BuildRequires: libpcap-devel
5d861751 13BuildRequires: libstdc++-devel
db63296d
AM
14BuildRequires: ncurses-devel
15BuildRequires: perl-base
db63296d
AM
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19NetHogs is a small 'net top' tool. Instead of breaking the traffic
20down per protocol or per subnet, like most such tools do, it groups
21bandwidth by process - and does not rely on a special kernel module to
22be loaded. So if there's suddenly a lot of network traffic, you can
23fire up NetHogs and immediately see which PID is causing this, and if
24it's some kind of spinning process, kill it.
25
ba60acd7
JR
26%description -l pl.UTF-8
27NetHogs to małe narzędzie sieciowe w stylu programu top. Zamiast
28rozbijania ruchu na protokoły lub podsieci, jak robi większość
29narzędzi, grupuje pasmo według procesów - i nie polega przy tym na
30specjalnym module jądra. Jeśli nagle jest duży ruch w sieci, można
31uruchomić NetHogs i od razu zobaczyć, który PID to powoduje i
32ewentualnie 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
43rm -rf $RPM_BUILD_ROOT
5f59e2ea 44install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
5d861751 45
5f59e2ea
AG
46install %{name} $RPM_BUILD_ROOT%{_bindir}
47install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
db63296d
AM
48
49%clean
50rm -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/*
This page took 0.078784 seconds and 4 git commands to generate.