2019-09-30 11:17:56 -04:00
|
|
|
|
Name: sysstat
|
2023-07-20 06:42:24 +00:00
|
|
|
|
Version: 12.7.4
|
2024-01-10 01:18:57 +00:00
|
|
|
|
Release: 2
|
2019-09-30 11:17:56 -04:00
|
|
|
|
Summary: System performance tools for the Linux operating system
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
|
URL: http://sebastien.godard.pagesperso-orange.fr/
|
2022-11-25 12:52:28 +00:00
|
|
|
|
Source0: https://github.com/sysstat/sysstat/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
2019-09-30 11:17:56 -04:00
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc, gettext, lm_sensors-devel, systemd
|
|
|
|
|
|
|
|
|
|
|
|
Requires: findutils, xz
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
|
|
Patch9000: bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
The sysstat package contains various utilities, common to many commercial
|
|
|
|
|
|
Unixes, to monitor system performance and usage activity:
|
|
|
|
|
|
iostat: reports CPU statistics and input/output statistics for block devices
|
|
|
|
|
|
and partitions.
|
|
|
|
|
|
mpstat: reports individual or combined processor related statistics.
|
|
|
|
|
|
pidstat: reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc.
|
|
|
|
|
|
tapestat: reports statistics for tape drives connected to the system.
|
|
|
|
|
|
cifsiostat: reports CIFS statistics.
|
|
|
|
|
|
Sysstat also contains tools you can schedule via cron or systemd to collect and
|
|
|
|
|
|
historize performance and activity data:
|
|
|
|
|
|
sar: collects, reports and saves system activity information (see below a list
|
|
|
|
|
|
of metrics collected by sar).
|
|
|
|
|
|
sadc: is the system activity data collector, used as a backend for sar.
|
|
|
|
|
|
sa1: collects and stores binary data in the system activity daily data file.
|
|
|
|
|
|
It is a front end to sadc designed to be run from cron or systemd.
|
|
|
|
|
|
sa2: writes a summarized daily activity report. It is a front end to sar
|
|
|
|
|
|
designed to be run from cron or systemd.
|
|
|
|
|
|
sadf: displays data collected by sar in multiple formats (CSV, XML, JSON, etc.)
|
|
|
|
|
|
and can be used for data exchange with other programs. This command can also
|
|
|
|
|
|
be used to draw graphs for the various activities collected by sar using SVG (
|
|
|
|
|
|
Scalable Vector Graphics) format.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
export sadc_options="-S DISK"
|
|
|
|
|
|
export history="28"
|
|
|
|
|
|
export compressafter="31"
|
|
|
|
|
|
%configure \
|
|
|
|
|
|
--docdir=%{_pkgdocdir} \
|
|
|
|
|
|
--enable-install-cron \
|
|
|
|
|
|
--enable-copy-only \
|
|
|
|
|
|
--disable-file-attr \
|
|
|
|
|
|
--disable-stripping
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2022-06-13 10:36:56 +08:00
|
|
|
|
./do_test
|
2019-09-30 11:17:56 -04:00
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
%systemd_preun sysstat.service sysstat-collect.timer sysstat-summary.timer
|
|
|
|
|
|
[ "$1" -gt 0 ] || rm -rf %{_localstatedir}/log/sa/*
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
%systemd_post sysstat.service sysstat-collect.timer sysstat-summary.timer
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
|
|
|
|
|
|
|
2023-04-14 10:07:19 +08:00
|
|
|
|
%posttrans
|
2024-01-10 01:18:57 +00:00
|
|
|
|
if [ "$(systemctl is-enable sysstat.service)" == "enabled" ] ; then
|
|
|
|
|
|
/usr/bin/systemctl enable sysstat.service >/dev/null 2>&1
|
|
|
|
|
|
fi
|
2023-04-14 10:07:19 +08:00
|
|
|
|
|
2019-09-30 11:17:56 -04:00
|
|
|
|
%files -f %{name}.lang
|
2023-07-20 06:42:24 +00:00
|
|
|
|
%doc CHANGES COPYING CREDITS FAQ.md README.md
|
2019-09-30 11:17:56 -04:00
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
%{_libdir}/sa
|
2021-12-04 14:49:51 +08:00
|
|
|
|
%{_unitdir}/../*
|
2019-09-30 11:17:56 -04:00
|
|
|
|
%{_localstatedir}/log/sa
|
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-10 01:18:57 +00:00
|
|
|
|
* Wed Jan 10 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 12.7.4-2
|
|
|
|
|
|
- fix upgrade problem that sysstat.service changes from disable to enable
|
|
|
|
|
|
|
2023-07-20 06:42:24 +00:00
|
|
|
|
* Thu Jul 20 2023 zhangpan <zhangpan103@h-partners.com> - 12.7.4-1
|
|
|
|
|
|
- update to 12.7.4
|
|
|
|
|
|
|
2023-06-20 08:14:12 +00:00
|
|
|
|
* Tue Jun 20 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 12.6.2-6
|
|
|
|
|
|
- Try to avoid negative values
|
|
|
|
|
|
|
2023-05-30 02:59:59 +00:00
|
|
|
|
* Thu May 30 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 12.6.2-5
|
|
|
|
|
|
- revent "add missing patch"
|
|
|
|
|
|
|
2023-05-29 12:59:27 +00:00
|
|
|
|
* Mon May 29 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 12.6.2-4
|
|
|
|
|
|
- add missing patch
|
|
|
|
|
|
|
2023-05-25 08:29:20 +00:00
|
|
|
|
* Thu May 25 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 12.6.2-3
|
|
|
|
|
|
- fix CVE-2023-33204
|
|
|
|
|
|
|
2023-04-14 10:07:19 +08:00
|
|
|
|
* Fri Apr 14 2023 wangjiang <wangjiang37@h-partners.com> - 12.6.2-2
|
|
|
|
|
|
- service auto start after install
|
|
|
|
|
|
|
2023-02-03 08:21:33 +00:00
|
|
|
|
* Fri Feb 03 2023 zhangpan <zhangpan@h-partners.com> - 12.6.2-1
|
|
|
|
|
|
- update to 12.6.2
|
|
|
|
|
|
|
2022-11-25 12:52:28 +00:00
|
|
|
|
* Fri Nov 25 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 12.5.4-5
|
|
|
|
|
|
- update Source0
|
|
|
|
|
|
|
2022-11-10 07:43:13 +00:00
|
|
|
|
* Thu Nov 10 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 12.5.4-4
|
|
|
|
|
|
- fix CVE-2022-39377
|
|
|
|
|
|
|
2022-06-13 10:36:56 +08:00
|
|
|
|
* Mon Jun 13 2022 wuchaochao <cyanrose@yeah.net> - 12.5.4-3
|
|
|
|
|
|
- add check
|
|
|
|
|
|
|
2022-05-07 10:52:36 +08:00
|
|
|
|
* Sat May 7 2022 dongyuzhen <dongyuzhen@h-partners.com> - 12.5.4-2
|
|
|
|
|
|
- add missing changelog
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Dec 4 2021 wuchaochao <wuchaochao4@h-partners.com> - 12.5.4-1
|
|
|
|
|
|
- update version to 12.5.4
|
|
|
|
|
|
|
2021-02-02 11:09:39 +08:00
|
|
|
|
* Tue Feb 2 2021 yuanxin <yuanxin24@huawei.com> - 12.5.2-1
|
|
|
|
|
|
- Upgrade version to 12.5.2
|
|
|
|
|
|
|
2020-06-11 17:33:23 +08:00
|
|
|
|
* Thu Jun 11 2020 hanhui<hanhui15@huawei.com> - 12.2.2
|
|
|
|
|
|
- update version to 12.2.2
|
|
|
|
|
|
|
2020-05-29 15:58:07 +08:00
|
|
|
|
* Fri May 29 2020 openEuler Buildteam <buildteam@openeuler.org> - 12.1.6-3
|
|
|
|
|
|
- rebuild for lm_sensors version update
|
|
|
|
|
|
|
2020-01-13 17:54:25 +08:00
|
|
|
|
* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 12.1.6-2
|
|
|
|
|
|
- Delete useless files.
|
|
|
|
|
|
|
2019-09-30 11:17:56 -04:00
|
|
|
|
* Sat Sep 07 2019 openEuler Buildteam <buildteam@openeuler.org> - 12.1.6-1
|
|
|
|
|
|
- Package init
|
|
|
|
|
|
|