]> git.pld-linux.org Git - packages/nethogs.git/blob - nethogs.spec
- release 3 to allow upgrade from RA
[packages/nethogs.git] / nethogs.spec
1 Summary:        net top
2 Summary(pl):    Sieciowy top
3 Name:           nethogs
4 Version:        0.3
5 Release:        3
6 License:        GPL
7 Group:          Networking
8 Source0:        http://nethogs.bzzt.net/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  439b67fc8c875a3142687758a2c61deb
10 Patch0:         %{name}-cxx.patch
11 Patch1:         %{name}-comp.patch
12 URL:            http://nethogs.bzzt.net/
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
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
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 %{__make} \
42         compiler="%{__cxx}" \
43         flags="%{rpmcflags} -I/usr/include/ncurses"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_bindir}
48
49 install %{name} $RPM_BUILD_ROOT%{_bindir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/*
This page took 0.061943 seconds and 4 git commands to generate.