Updated to 10.3.1

- resolves: #1077640
  updated to 10.3.1
  migrated to systemd timer units
This commit is contained in:
Peter Schiffer 2014-05-27 17:28:53 +02:00
parent a5aec65ce8
commit c292cc346c
3 changed files with 16 additions and 13 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/sysstat-10.2.1.tar.xz
/sysstat-10.3.1.tar.xz

View File

@ -1 +1 @@
922958de1b54b657a08e87e353f4002f sysstat-10.2.1.tar.xz
3381abb994542ecdc6272f1c572058df sysstat-10.3.1.tar.xz

View File

@ -1,13 +1,13 @@
Summary: Collection of performance monitoring tools for Linux
Name: sysstat
Version: 10.2.1
Version: 10.3.1
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://sebastien.godard.pagesperso-orange.fr/
Source: http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
Requires: /etc/cron.d, fileutils, grep, sh-utils, textutils
Requires: fileutils, grep, sh-utils, textutils
Requires(post): systemd, systemd-sysv
Requires(preun): systemd
Requires(postun): systemd
@ -50,28 +50,27 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
# Install cron file
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
install -m 0644 cron/sysstat.crond %{buildroot}%{_sysconfdir}/cron.d/sysstat
# Install service file
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 sysstat.service %{buildroot}%{_unitdir}/
# Install timer units
install -m 0644 cron/sysstat-{collect,summary}.{service,timer} %{buildroot}%{_unitdir}/
%find_lang %{name}
%post
%systemd_post sysstat.service
%systemd_post sysstat.service sysstat-collect.timer sysstat-summary.timer
%preun
%systemd_preun sysstat.service
%systemd_preun sysstat.service sysstat-collect.timer sysstat-summary.timer
if [[ $1 -eq 0 ]]; then
# Remove sa logs if removing sysstat completely
rm -f %{_localstatedir}/log/sa/*
fi
%postun
%systemd_postun sysstat.service
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
%triggerun -- sysstat < 10.0.2-1
# Save the current service runlevel info
@ -85,10 +84,9 @@ fi
%files -f %{name}.lang
%doc CHANGES COPYING CREDITS README FAQ
%config(noreplace) %{_sysconfdir}/cron.d/sysstat
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
%{_unitdir}/sysstat.service
%{_unitdir}/sysstat*
%{_bindir}/*
%{_libdir}/sa
%{_mandir}/man1/*
@ -97,6 +95,11 @@ fi
%{_localstatedir}/log/sa
%changelog
* Tue May 27 2014 Peter Schiffer <pschiffe@redhat.com> - 10.3.1-1
- resolves: #1077640
updated to 10.3.1
migrated to systemd timer units
* Mon Jan 27 2014 Peter Schiffer <pschiffe@redhat.com> - 10.2.1-1
- resolves: #1057547
updated to 10.2.1