1
Summary: SAR, SADF, MPSTAT, IOSTAT and PIDSTAT for Linux
6
Group: Applications/System
7
Source0: %{name}-%{version}.tar.gz
8
URL: http://pagesperso-orange.fr/sebastien.godard/
9
Packager: Damien Faure <damien-jn.faure@bull.net>
10
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
14
The sysstat package contains the sar, sadf, mpstat, iostat, pidstat
15
and sa tools for Linux.
16
The sar command collects and reports system activity information.
17
The information collected by sar can be saved in a file in a binary
18
format for future inspection. The statistics reported by sar concern
19
I/O transfer rates, paging activity, process-related activities,
20
interrupts, network activity, memory and swap space utilization, CPU
21
utilization, kernel activities and TTY statistics, among others. Both
22
UP and SMP machines are fully supported.
23
The sadf command may be used to display data collected by sar in
24
various formats (CSV, XML, etc.).
25
The iostat command reports CPU utilization and I/O statistics for disks.
26
The mpstat command reports global and per-processor statistics.
27
The pidstat command reports statistics for Linux tasks (processes).
33
./configure --prefix=%{_prefix} \
34
sa_lib_dir=%{_libdir}/sa \
36
DESTDIR=$RPM_BUILD_ROOT
40
rm -rf $RPM_BUILD_ROOT
41
install -d $RPM_BUILD_ROOT/var/log/sa
45
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
46
install -m 755 sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
47
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
48
install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat
49
install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf
50
mkdir -p $RPM_BUILD_ROOT/etc/cron.d
51
install -m 644 sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat
52
mkdir -p $RPM_BUILD_ROOT/etc/rc2.d
53
cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat
54
mkdir -p $RPM_BUILD_ROOT/etc/rc3.d
55
cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat
56
mkdir -p $RPM_BUILD_ROOT/etc/rc5.d
57
cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat
60
rm -rf $RPM_BUILD_ROOT
63
%defattr(644,root,root,755)
64
%doc %{_datadir}/doc/sysstat-%{version}/*
65
%attr(755,root,root) %{_bindir}/*
66
%attr(755,root,root) %{_libdir}/sa/*
67
%attr(644,root,root) %{_mandir}/man*/*
68
%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo
69
%attr(755,root,root) %dir /var/log/sa
70
%attr(755,root,root) /etc/rc.d/init.d/sysstat
71
%attr(644,root,root) /etc/sysconfig/sysstat
72
%attr(644,root,root) /etc/sysconfig/sysstat.ioconf
73
%attr(755,root,root) /etc/rc2.d/S01sysstat
74
%attr(755,root,root) /etc/rc3.d/S01sysstat
75
%attr(755,root,root) /etc/rc5.d/S01sysstat
76
%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat