Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044445
en ru br
Репозитории ALT

Группа :: Мониторинг
Пакет: netatop

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: netatop
Version: 0.3
Release: alt1
Summary: Daemon fo gather statistics about the TCP and UDP packets
License: GPLv2
Group: Monitoring
URL: http://www.atoptool.nl
Source: %url/%name-%version.tar
Patch: %name-%version-%release.patch
Provides: %{name}d = %version-%release

BuildPreReq: rpm-build-kernel
BuildRequires: zlib-devel

%description
The optional kernel module netatop can be loaded to gather statistics about the
TCP and UDP packets that have been transmitted/received per process and per
thread. As soon as atop discovers that this module is active, it shows columns in
the generic screen for the number of transmitted and received packets per
process.
The daemon netatopd takes care that information is gathered about processes that
are finished. For every finished process that has transferred network packets, a
binary record is written to a logfile. The added records in the logfile are read
by atop with every sample to show information about the network activity of
finished processes as well.
The daemon is started automatically in the init script after the kernel module
has been loaded. However, the kernel module netatop can be used without the
netatopd daemon.


%package -n kernel-source-%name
Summary: Kernel source for %name module
Group: Development/Kernel
BuildArch: noarch

%description -n kernel-source-%name
This is the source of the kernel %name module.


%prep
%setup
%patch -p1
sed -i 's|\.\./\(%name\)|\1|' module/{Makefile,*.c}
ln -s ../%name{,version}.h module/
ln -sf module kernel-source-%name-%version


%build
./mkversion
%make_build -C daemon CFLAGS="%optflags"


%install
install -d -m 0755 %buildroot{%_sbindir,%_man4dir,%_man8dir} %kernel_srcdir
install -pD -m 0755 %name.init %buildroot%_initddir/%name
install -p -m 0755 daemon/%{name}d %buildroot%_sbindir/
install -p -m 0644 man/*.4 %buildroot%_man4dir/
install -p -m 0644 man/*.8 %buildroot%_man8dir/

tar --transform='s,^module,%name-%version,' -cJhf %kernel_srcdir/%name-%version.tar.xz module


%post
%post_service %name


%preun
%preun_service %name


%files
%_sbindir/*
%_initddir/*
%_man4dir/*
%_man8dir/*


%files -n kernel-source-%name
%_usrsrc/kernel


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin