Updated to 10.3.1
- resolves: #1077640 updated to 10.3.1 migrated to systemd timer units
This commit is contained in:
parent
a5aec65ce8
commit
c292cc346c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/sysstat-10.2.1.tar.xz
|
/sysstat-10.3.1.tar.xz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
922958de1b54b657a08e87e353f4002f sysstat-10.2.1.tar.xz
|
3381abb994542ecdc6272f1c572058df sysstat-10.3.1.tar.xz
|
||||||
|
25
sysstat.spec
25
sysstat.spec
@ -1,13 +1,13 @@
|
|||||||
Summary: Collection of performance monitoring tools for Linux
|
Summary: Collection of performance monitoring tools for Linux
|
||||||
Name: sysstat
|
Name: sysstat
|
||||||
Version: 10.2.1
|
Version: 10.3.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://sebastien.godard.pagesperso-orange.fr/
|
URL: http://sebastien.godard.pagesperso-orange.fr/
|
||||||
Source: http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
|
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(post): systemd, systemd-sysv
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
@ -50,28 +50,27 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
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
|
# Install service file
|
||||||
mkdir -p %{buildroot}%{_unitdir}
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
install -m 0644 sysstat.service %{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}
|
%find_lang %{name}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post sysstat.service
|
%systemd_post sysstat.service sysstat-collect.timer sysstat-summary.timer
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun sysstat.service
|
%systemd_preun sysstat.service sysstat-collect.timer sysstat-summary.timer
|
||||||
if [[ $1 -eq 0 ]]; then
|
if [[ $1 -eq 0 ]]; then
|
||||||
# Remove sa logs if removing sysstat completely
|
# Remove sa logs if removing sysstat completely
|
||||||
rm -f %{_localstatedir}/log/sa/*
|
rm -f %{_localstatedir}/log/sa/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun sysstat.service
|
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
|
||||||
|
|
||||||
%triggerun -- sysstat < 10.0.2-1
|
%triggerun -- sysstat < 10.0.2-1
|
||||||
# Save the current service runlevel info
|
# Save the current service runlevel info
|
||||||
@ -85,10 +84,9 @@ fi
|
|||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc CHANGES COPYING CREDITS README FAQ
|
%doc CHANGES COPYING CREDITS README FAQ
|
||||||
%config(noreplace) %{_sysconfdir}/cron.d/sysstat
|
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
||||||
%{_unitdir}/sysstat.service
|
%{_unitdir}/sysstat*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/sa
|
%{_libdir}/sa
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
@ -97,6 +95,11 @@ fi
|
|||||||
%{_localstatedir}/log/sa
|
%{_localstatedir}/log/sa
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jan 27 2014 Peter Schiffer <pschiffe@redhat.com> - 10.2.1-1
|
||||||
- resolves: #1057547
|
- resolves: #1057547
|
||||||
updated to 10.2.1
|
updated to 10.2.1
|
||||||
|
Loading…
Reference in New Issue
Block a user