sysstat/sysstat.spec

187 lines
6.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: sysstat
Version: 12.6.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://sebastien.godard.pagesperso-orange.fr/
Source: http://pagesperso-orange.fr/sebastien.godard/sysstat-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libsensors-devel
## AUTOBUILDREQ-END
BuildRequires: systemd-devel
%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/*
%dir %{_datadir}/doc/sysstat-%{version}/
%{_datadir}/doc/sysstat-%{version}/*
%doc COPYING CREDITS
%changelog
* Fri Nov 11 2022 Automatic Build System <autodist@mambasoft.it> 12.6.1-1mamba
- automatic version update by autodist
* Mon May 30 2022 Automatic Build System <autodist@mambasoft.it> 12.6.0-1mamba
- automatic version update by autodist
* Sat Mar 05 2022 Automatic Build System <autodist@mambasoft.it> 12.4.5-1mamba
- automatic version update by autodist
* Sun Dec 12 2021 Automatic Build System <autodist@mambasoft.it> 12.4.4-1mamba
- automatic version update by autodist
* Tue Feb 23 2021 Automatic Build System <autodist@mambasoft.it> 12.4.3-1mamba
- automatic version update by autodist
* Thu Aug 20 2020 Automatic Build System <autodist@mambasoft.it> 12.4.0-1mamba
- automatic version update by autodist
* Mon May 11 2020 Automatic Build System <autodist@mambasoft.it> 12.3.3-1mamba
- automatic version update by autodist
* Mon Apr 27 2020 Automatic Build System <autodist@mambasoft.it> 12.3.2-1mamba
- automatic version update by autodist
* Sun Jan 19 2020 Automatic Build System <autodist@mambasoft.it> 12.3.1-1mamba
- automatic version update by autodist
* Sun Oct 27 2019 Automatic Build System <autodist@mambasoft.it> 12.1.7-1mamba
- automatic version update by autodist
* Fri Oct 04 2019 Automatic Build System <autodist@mambasoft.it> 12.1.6-1mamba
- automatic version update by autodist
* Fri Jun 07 2019 Automatic Build System <autodist@mambasoft.it> 12.1.5-1mamba
- automatic version update by autodist
* Tue Apr 23 2019 Automatic Build System <autodist@mambasoft.it> 12.1.4-1mamba
- automatic version update by autodist
* Sat Mar 30 2019 Automatic Build System <autodist@mambasoft.it> 12.1.3-1mamba
- automatic version update by autodist
* Sun Nov 18 2018 Automatic Build System <autodist@mambasoft.it> 12.0.2-1mamba
- automatic version update by autodist
* Sun Apr 08 2018 Automatic Build System <autodist@mambasoft.it> 11.7.3-1mamba
- automatic version update by autodist
* 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