]> git.pld-linux.org Git - packages/nethogs.git/blob - nethogs.spec
- update to 0.4
[packages/nethogs.git] / nethogs.spec
1 Summary:        net top
2 Summary(pl):    Sieciowy top
3 Name:           nethogs
4 Version:        0.4
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        http://nethogs.bzzt.net/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  71de460887fa6c3b9c6d5cfb8942f875
10 URL:            http://nethogs.bzzt.net/
11 BuildRequires:  libpcap-devel
12 BuildRequires:  libstdc++-devel
13 BuildRequires:  ncurses-devel
14 BuildRequires:  perl-base
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 NetHogs is a small 'net top' tool. Instead of breaking the traffic
19 down per protocol or per subnet, like most such tools do, it groups
20 bandwidth by process - and does not rely on a special kernel module to
21 be loaded. So if there's suddenly a lot of network traffic, you can
22 fire up NetHogs and immediately see which PID is causing this, and if
23 it's some kind of spinning process, kill it.
24
25 %description -l pl
26 NetHogs to ma³e narzêdzie sieciowe w stylu programu top. Zamiast
27 rozbijania ruchu na protoko³y lub podsieci, jak robi wiêkszo¶æ
28 narzêdzi, grupuje pasmo wed³ug procesów - i nie polega przy tym na
29 specjalnym module j±dra. Je¶li nagle jest du¿y ruch w sieci, mo¿na
30 uruchomiæ NetHogs i od razu zobaczyæ, który PID to powoduje i
31 ewentualnie go zabiæ.
32
33 %prep
34 %setup -q
35
36 %build
37 %{__make} \
38         GCC="%{__cxx}" \
39         CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_bindir}
44
45 install %{name} $RPM_BUILD_ROOT%{_bindir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/*
This page took 0.032303 seconds and 4 git commands to generate.