]> git.pld-linux.org Git - packages/nethogs.git/blame_incremental - nethogs.spec
- limit.h , stdlib.h
[packages/nethogs.git] / nethogs.spec
... / ...
CommitLineData
1%define mver %(echo %{version} |cut -f 1-2 -d ".")
2Summary: net top
3Summary(pl.UTF-8): Sieciowy top
4Name: nethogs
5Version: 0.6.1
6Release: 0.1
7License: GPL
8Group: Networking
9Source0: http://nethogs.sourceforge.net/%{name}-%{version}-pre2.tar.gz
10# Source0-md5: 48775d49fe488e601811fbfb09f6b37d
11URL: http://nethogs.sourceforge.net/
12Patch0: %{name}-include.patch
13BuildRequires: libpcap-devel
14BuildRequires: libstdc++-devel
15BuildRequires: ncurses-devel
16BuildRequires: perl-base
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
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ć.
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
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
47
48install %{name} $RPM_BUILD_ROOT%{_bindir}
49install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
50
51%clean
52rm -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.030091 seconds and 4 git commands to generate.