]> git.pld-linux.org Git - packages/nethogs.git/blob - nethogs.spec
- limit.h , stdlib.h
[packages/nethogs.git] / nethogs.spec
1 %define         mver    %(echo %{version} |cut -f 1-2 -d ".")
2 Summary:        net top
3 Summary(pl.UTF-8):      Sieciowy top
4 Name:           nethogs
5 Version:        0.6.1
6 Release:        0.1
7 License:        GPL
8 Group:          Networking
9 Source0:        http://nethogs.sourceforge.net/%{name}-%{version}-pre2.tar.gz
10 # Source0-md5:  48775d49fe488e601811fbfb09f6b37d
11 URL:            http://nethogs.sourceforge.net/
12 Patch0:         %{name}-include.patch
13 BuildRequires:  libpcap-devel
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  ncurses-devel
16 BuildRequires:  perl-base
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
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ć.
34
35 %prep
36 %setup -q -n %{name}
37 %patch0 -p1
38
39 %build
40 %{__make} \
41         GCC="%{__cxx}" \
42         CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
47
48 install %{name}   $RPM_BUILD_ROOT%{_bindir}
49 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changelog README
57 %attr(755,root,root) %{_bindir}/*
58 %{_mandir}/man8/*
This page took 0.024139 seconds and 3 git commands to generate.