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