Sisyphus repository
Last update: 2 december 2022 | SRPMs: 17959 | Visits: 25465260
en ru br
ALT Linux repos
5.0: 8.1.6-alt1
4.1: 8.1.2-alt1
4.0: 7.1.4-alt1
3.0: 6.0.0-alt1

Group :: System/Base
RPM: sysstat

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sysstat
Version: 6.0.0
Release: alt1

Summary: The sar and iostat system monitoring commands
License: GPL
Group: System/Base
Source: %url/sysstat-%version.tar.bz2
Source1: %name.cron.hourly
Source2: %name.cron.daily

# we run sa2 script (daily summary) at 4am so we now change build

# configuration to build script that takes prev day data
Patch0: sysstat-5.1.5-config.patch

This package provides the sar and iostat commands for the Linux
operating system, similar to their traditional UNIX counterparts.
They enable system monitoring of disk, network, and other IO activity.

%setup -q
%patch0 -p1

%make_build CFLAGS="$RPM_OPT_FLAGS"

# cron scripts must have exec bit to be taken by run-parts
install -p -m750 -D %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/cron.hourly/%name
install -p -m750 -D %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/cron.daily/%name
install -p -m644 -D sysstat.ioconf $RPM_BUILD_ROOT%_sysconfdir/sysconfig/
install -p -m644 -D sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat

# sysstat makefiles install the docs, blow them away

rm -rf $RPM_BUILD_ROOT/usr/doc

%find_lang %name

if [ "$1" = 0 ]; then
# Remove sa logs if removing %name completely.
rm -f /var/log/sa/*

%files -f %name.lang
%config(noreplace) %_sysconfdir/cron.*/*
%config(noreplace) %_sysconfdir/sysconfig/sysstat
%config %_sysconfdir/sysconfig/sysstat.ioconf
%attr(750,root,adm) /var/log/sa


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin