138 lines
4.5 KiB
RPMSpec
138 lines
4.5 KiB
RPMSpec
Name: sysstat
|
|
Version: 11.6.2
|
|
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 MANGRPARG=
|
|
|
|
%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
|
|
%{_bindir}/tapestat
|
|
%{_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
|
|
* Sat Jan 27 2018 Automatic Build System <autodist@mambasoft.it> 11.6.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Sep 14 2017 Automatic Build System <autodist@mambasoft.it> 11.4.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Aug 10 2017 Automatic Build System <autodist@mambasoft.it> 11.4.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 22 2016 Automatic Build System <autodist@mambasoft.it> 11.4.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jul 01 2016 Automatic Build System <autodist@mambasoft.it> 11.2.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Apr 21 2016 Automatic Build System <autodist@mambasoft.it> 11.2.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Feb 29 2016 Automatic Build System <autodist@mambasoft.it> 11.2.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 19 2016 Automatic Build System <autodist@mambasoft.it> 11.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 31 2015 Automatic Build System <autodist@mambasoft.it> 11.1.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Sep 15 2014 Automatic Build System <autodist@mambasoft.it> 11.0.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Jun 24 2014 Automatic Build System <autodist@mambasoft.it> 11.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|