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