diff --git a/sysstat-9.0.4-init_script_lsb.patch b/sysstat-9.0.4-init_script_lsb.patch new file mode 100644 index 0000000..ad0de62 --- /dev/null +++ b/sysstat-9.0.4-init_script_lsb.patch @@ -0,0 +1,21 @@ +diff -up sysstat-9.0.4/sysstat.in.lsb sysstat-9.0.4/sysstat.in +--- sysstat-9.0.4/sysstat.in.lsb 2010-02-16 14:10:10.000000000 +0100 ++++ sysstat-9.0.4/sysstat.in 2010-02-16 14:11:47.000000000 +0100 +@@ -5,12 +5,16 @@ + # (C) 2000-2009 Sebastien Godard (sysstat orange.fr) + # + ### BEGIN INIT INFO ++# Provides: sysstat ++# Required-Start: ++# Required-Stop: ++# Default-Stop: + # Description: Reset the system activity logs + # Short-Description: reset the system activity logs ++### END INIT INFO + #@(#) @PACKAGE_NAME@-@PACKAGE_VERSION@ startup script: + #@(#) Insert a dummy record in current daily data file. + #@(#) This indicates that the counters have restarted from 0. +-### END INIT INFO + + RETVAL=0 + SYSCONFIG_DIR=@SYSCONFIG_DIR@ diff --git a/sysstat.spec b/sysstat.spec index fe1f1f8..a438284 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,13 +1,17 @@ Name: sysstat Version: 9.0.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The sar and iostat system monitoring commands License: GPLv2+ Group: Applications/System URL: http://perso.orange.fr/sebastien.godard/ Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.bz2 +# fix initscript Patch0: sysstat-9.0.4-init_script.patch +# fixes https://bugzilla.redhat.com/show_bug.cgi?id=545931 Patch1: sysstat-9.0.6-nfs.patch +# make init script lsb +Patch2: sysstat-9.0.4-init_script_lsb.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -25,6 +29,7 @@ activity. %setup -q %patch0 -p1 -b .ii %patch1 -p1 -b .nfs +%patch2 -p1 -b .lsb iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux mv CREDITS.aux CREDITS @@ -76,6 +81,9 @@ rm -rf %{buildroot} %{_localstatedir}/log/sa %changelog +* Tue Feb 16 2010 Ivana Hutarova Varekova - 9.0.6-3 +- fix init script format + * Fri Dec 11 2009 Ivana Hutarova Varekova - 9.0.6-2 - fix the problem in get_nfs_mount_nr function ( iostat -n causes stack smashing)