104 lines
3.2 KiB
RPMSpec
104 lines
3.2 KiB
RPMSpec
|
Name: sysstat
|
||
|
Version: 10.3.1
|
||
|
Release: 1mamba
|
||
|
Summary: System performance tools for Linux for Linux
|
||
|
Group: System/Tools
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||
|
URL: http://pagesperso-orange.fr/sebastien.godard/
|
||
|
Source: http://pagesperso-orange.fr/sebastien.godard/sysstat-%{version}.tar.xz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: lm_sensors-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: systemd-devel
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
The sysstat package contains the sar, sadf, mpstat, iostat, pidstat, nfsiostat, cifsiostat and sa tools for Linux.
|
||
|
The sar command collects and reports system activity information.
|
||
|
The information collected by sar can be saved in a file in a binary format for future inspection.
|
||
|
The statistics reported by sar concern I/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPU utilization, kernel activities and TTY statistics, among others.
|
||
|
Both UP and SMP machines are fully supported.
|
||
|
The sadf command may be used to display data collected by sar in various formats (CSV, XML, etc.).
|
||
|
The iostat command reports CPU utilization and I/O statistics for disks.
|
||
|
The mpstat command reports global and per-processor statistics.
|
||
|
The pidstat command reports statistics for Linux tasks (processes).
|
||
|
The nfsiostat command reports I/O statistics for network filesystems.
|
||
|
The cifsiostat command reports I/O statistics for CIFS filesystems.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
sa_lib_dir=%{_libdir}/sa \
|
||
|
--disable-man-group \
|
||
|
--disable-stripping
|
||
|
|
||
|
%{__sed} -i 's/SADC_OPTIONS=""/SADC_OPTIONS="-S DISK"/' sysstat.sysconfig
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%find_lang %{name} || touch %{name}.lang
|
||
|
|
||
|
# install cron file
|
||
|
install -d %{buildroot}%{_sysconfdir}/cron.d
|
||
|
install -m 0644 cron/sysstat.crond %{buildroot}%{_sysconfdir}/cron.d/sysstat
|
||
|
|
||
|
# install service file
|
||
|
install -d %{buildroot}%{_unitdir}
|
||
|
install -m 0644 sysstat.service %{buildroot}%{_unitdir}/
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
%systemd_post sysstat.service
|
||
|
exit 0
|
||
|
|
||
|
%preun
|
||
|
%systemd_preun sysstat.service
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
rm -f %{_localstatedir}/log/sa/*
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
%postun
|
||
|
%systemd_postun sysstat.service
|
||
|
exit 0
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/cifsiostat
|
||
|
%{_bindir}/iostat
|
||
|
%{_bindir}/mpstat
|
||
|
%{_bindir}/nfsiostat-sysstat
|
||
|
%{_bindir}/pidstat
|
||
|
%{_bindir}/sadf
|
||
|
%{_bindir}/sar
|
||
|
%{_libdir}/sa/sa1
|
||
|
%{_libdir}/sa/sa2
|
||
|
%{_libdir}/sa/sadc
|
||
|
%config(noreplace) %{_sysconfdir}/cron.d/sysstat
|
||
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
||
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
||
|
%{_localstatedir}/log/sa
|
||
|
%{_unitdir}/sysstat.service
|
||
|
%{_mandir}/man1/*
|
||
|
%{_mandir}/man5/*
|
||
|
%{_mandir}/man8/*
|
||
|
%doc COPYING CREDITS
|
||
|
|
||
|
%changelog
|
||
|
* Fri Mar 21 2014 Automatic Build System <autodist@mambasoft.it> 10.3.1-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Feb 27 2014 Davide Madrisan <davide.madrisan@gmail.com> 10.2.1-1mamba
|
||
|
- package created using the webbuild interface
|