Hello community,

here is the log from the commit of package sysstat.1264 for 
openSUSE:12.1:Update checked in at 2013-02-05 17:34:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update/sysstat.1264 (Old)
 and      /work/SRC/openSUSE:12.1:Update/.sysstat.1264.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sysstat.1264", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-01-09 19:40:42.352580873 +0100
+++ /work/SRC/openSUSE:12.1:Update/.sysstat.1264.new/sysstat.changes    
2013-02-05 17:34:35.000000000 +0100
@@ -0,0 +1,650 @@
+-------------------------------------------------------------------
+Tue Jan 29 10:23:26 UTC 2013 - [email protected]
+
+- Fix sadf timestamp XML; (bnc#800978).
+
+-------------------------------------------------------------------
+Fri Nov  9 15:36:58 UTC 2012 - [email protected]
+
+- fixed two typos in spec related to service unit, which prevented
+  succesful startup.
+- service unit included hardcoded /usr/lib, however sysstat is
+  installed to /usr/lib64 on 64 bit systems
+  (bnc#783886)
+
+-------------------------------------------------------------------
+Thu Oct 27 07:12:57 UTC 2011 - [email protected]
+
+- Generate the reports before midnight and simplify the cron file
+  (bnc#720609) 
+
+-------------------------------------------------------------------
+Wed Oct 26 13:59:26 UTC 2011 - [email protected]
+
+- don't enable sysstat by default (bnc#725791)
+- don't use /var/lock (bnc#725785)
+
+-------------------------------------------------------------------
+Mon Oct 17 15:16:34 UTC 2011 - [email protected]
+
+- Add systemd service for sysstat (bnc#723858).
+
+-------------------------------------------------------------------
+Mon Sep 19 08:04:02 UTC 2011 - [email protected]
+
+- update to sysstat-10.0.2 
+  - see /usr/share/doc/packages/sysstat/CHANGES
+
+-------------------------------------------------------------------
+Thu Aug 11 07:31:36 UTC 2011 - [email protected]
+
+- enable boot.sysstat service on new installation (bnc#711574) 
+
+-------------------------------------------------------------------
+Mon Jun 27 12:40:36 UTC 2011 - [email protected]
+
+- update to sysstat-10.0.1 
+  - see /usr/share/doc/packages/sysstat/CHANGES for
+    full list of changes
+- update patches 
+- get rid of obsolete --disable-smp-race configure option
+- use --enable-debug-info configure option
+- install /var/lock/sa as ghost file
+- use spec-cleaner
+
+-------------------------------------------------------------------
+Mon Mar  7 11:36:37 UTC 2011 - [email protected]
+
+- make /etc/sysstat/sysstat config(noreplae) (bnc#674719) 
+
+-------------------------------------------------------------------
+Sun Oct 31 12:37:02 UTC 2010 - [email protected]
+
+- Use %_smp_mflags
+
+-------------------------------------------------------------------
+Wed Oct 20 12:26:16 CEST 2010 - [email protected]
+
+- update to 9.0.6.1
+  * Because of a change in /proc/interrupts file format, mpstat
+    was no longer counting the proper number of interrupts. This
+    is now fixed.
+  * iostat manual page updated.
+  * NLS updated.
+
+- update to 9.0.6
+  * "sadf -x" now takes into account options -s and -e (which
+    specify a starting and ending time) and also interval and
+    count parameters [DEBIAN bug#546259].
+  * Option -C added to sadf. Use it to tell sadf to display comments
+    present in file (also works with XML format).
+  * sar and sadf sometimes didn't handle COMMENT records properly.
+    This is now fixed.
+  * XML output (displayed by sadf -x) modified for kernel tables
+    statistics.
+  * XSD and DTD documents updated.
+  * [Yibin Shen]: HZ variable was not explicitly set in sadc.c. This is now 
fixed.
+  * [Lans Carstensen]: sargraph added (sargraph is a shell script used to make 
graphs
+    based on sadf XML output).
+  * sadf manual page updated.
+  * FAQ updated.
+  * NLS updated.
+  * CREDITS file updated.
+
+- update to 9.0.5
+  * sysstat should now be able to pretty print device names whose
+    minor numbers are greater than or equal to 256. (Tests have
+    been made on a large 26TB RHEL5/PP Linux cluster.)
+  * sadc manual page updated.
+  * NLS updated.
+  * FAQ updated.
+
+-------------------------------------------------------------------
+Sun Aug 29 18:17:26 UTC 2010 - [email protected]
+
+- Do not hardcode build dates, make build-compare happy
+
+-------------------------------------------------------------------
+Fri May 28 12:16:58 UTC 2010 - [email protected]
+
+- add sysstat-do-not-strip.patch 
+
+-------------------------------------------------------------------
+Wed Aug  5 12:56:54 CEST 2009 - [email protected]
+
+- updated to 9.0.4
+  * [Jonathan Kamens]: Fix double free/memory corruption bug
+    with sadc.
+  * [Jeroen Roovers]: Get entirely rid of implicit rule for
+    libsyscom.a in Makefile to fix a problem with parallel
+    execution.
+  * sysstat.ioconf configuration file updated.
+
+-------------------------------------------------------------------
+Wed Jun 10 12:56:04 CEST 2009 - [email protected]
+
+- merge some changes from package in server:monitoring project
+
+-------------------------------------------------------------------
+Fri May 29 17:07:42 CEST 2009 - [email protected]
+
+- updated to 9.0.3
+  * [Michael Blakeley]: Option -z added to iostat. This option
+    tells iostat to omit output for any devices for which there
+    was no activity during the sample period.
+  * [Tomasz Pala]: Fix mpstat where interrupt values should be
+    read as unsigned integers.
+  * sar -n ALL didn't select IPv6 statistics. This is now fixed.
+  * iostat, sar and mpstat manual pages updated.
+  * sadf -x now displays file creation date.
+  * XSD and DTD documents updated.
+  * NLS updated. Latvian translation added.
+  * CREDITS file updated.
+  * Code cleaned.
+- updated to 9.0.2
+  * sadc can now collect partition statistics in addition to disk ones.
+    Keywords XDISK and XALL have been added to -S option.
+  * Fixed a memory corruption in pidstat and iostat. This corruption
+    could happen when a list of comma-separated values following
+    option -p was entered on the command line.
+  * configure now takes into account a new variable named rcdir.
+    This variable may be used to specify the directory where
+    startup scripts will be installed.
+  * The value of directory for installing documentation files
+    can now be set with configure's --docdir option.
+  * Fixed a small bug in activity.c file, where there was a
+    missing semicolon between two fields.
+  * sar and sadc manual pages updated.
+  * NLS updated.
+  * CREDITS file updated.
+
+-------------------------------------------------------------------
+Mon Mar  9 10:14:52 CET 2009 - [email protected]
+
+- updated to 9.0.1
+  * Fix a crash with sar where a pointer was freed twice.
+  * NLS updated.
+  * sar manual page updated.
+  * CREDITS file updated.
+
+-------------------------------------------------------------------
+Mon Mar  2 10:15:57 CET 2009 - [email protected]
+
+- updated to 9.0.0
+  * Option -m added to sar. This option is intended to display
+    power management statistics. At the present time, only
+    CPU frequency statistics are available.
+  * sadc updated: Option "-S POWER" tells sadc to collect power
+    management statistics.
+  * sadf command updated to take into account power management
+    statistics.
+  * [Mike Harvey]: No longer truncate the interval of time to
+    32 bits, as this may cause some problems when displaying
+    average values statistics on machines with hundreds of CPU.
+  * read_uptime(): Cast values read from /proc/uptime to
+    unsigned long long.
+  * Fixed a small bug in sar where it didn't parse arguments
+    properly when some options were entered in a specific order.
+  * sadc and sar manual pages updated.
+  * XSD and DTD documents updated.
+  * FAQ updated.
+  * NLS updated.
+  * Code cleaned. Makefile cleaned.
+
+-------------------------------------------------------------------
+Fri Sep 26 16:02:42 CEST 2008 - [email protected]
+
+- changed parameter "-d" to "-S ALL" in crontab to match the new syntax
++++ 453 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update/.sysstat.1264.new/sysstat.changes

New:
----
  isag.desktop
  sysstat-10.0.2-sadf-xml.patch
  sysstat-10.0.2.tar.bz2
  sysstat-8.0.4-pagesize.diff
  sysstat-8.0.4-sysconfdir.diff
  sysstat-8.1.6-sa1sa2lock.diff
  sysstat-9.0.4-no-build-date.patch
  sysstat-do-not-strip.patch
  sysstat.changes
  sysstat.cron.suse
  sysstat.init.suse
  sysstat.service
  sysstat.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sysstat.spec ++++++
#
# spec file for package sysstat
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           sysstat
Version:        10.0.2
Release:        0
Summary:        Sar and Iostat Commands for Linux
License:        GPL-2.0+
Group:          System/Monitoring
Url:            http://pagesperso-orange.fr/sebastien.godard/
Source:         
http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.bz2
Source1:        isag.desktop
Source2:        sysstat.cron.suse
Source3:        sysstat.init.suse
Source4:        sysstat.service
# PATCH-FIX-OPENSUSE should be upstreamed
# add locking to scripts sa1 and sa2 (bnc#7861)
Patch0:         sysstat-8.1.6-sa1sa2lock.diff
# PATCH-FIX-OPENSUSE should be upstreamed
# use getpagesize() instead of kb_shift for hugetable archs
Patch2:         sysstat-8.0.4-pagesize.diff
# PATCH-FIX-OPENSUSE use /etc/sysstat for config files
# instead of /etc/sysconfig since the files do not match
# the format used there (should be configure option)
Patch3:         sysstat-8.0.4-sysconfdir.diff
# PATCH-FIX-OPENSUSE remove the unconditional stripping
# we possibly want a debuginfo package
Patch4:         sysstat-do-not-strip.patch
# PATCH-FIX-OPENSUSE avoid build dates in generated files
Patch5:         sysstat-9.0.4-no-build-date.patch
# PATCH-FIX-UPSTREAM fix sadf timestamp xml
Patch6:         sysstat-10.0.2-sadf-xml.patch
PreReq:         %fillup_prereq
PreReq:         %insserv_prereq
Requires:       gettext
Requires:       procmail
%{?systemd_requires}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  findutils
BuildRequires:  sed
BuildRequires:  systemd
BuildRequires:  update-desktop-files

%description
Sar and Iostat commands for Linux. The sar command collects and reports
system activity information. The iostat command reports CPU statistics
and I/O statistics for TTY devices and disks.  The information
collected by sar and iostat can be saved in a binary file for future
inspection. Both commands now support SMP machines when displaying CPU
utilization.

%package isag
Summary:        Interactive System Activity Grapher for sysstat
Group:          System/Monitoring
Requires:       gnuplot
Requires:       sysstat = %{version}
Requires:       tk

%description isag
This package includes the isag command, which graphically displays the
system activity data stored in a binary data produced by a sar command
from a sysstat package.

%prep
%setup -q
%patch0
%patch2
%patch3
%patch4 -p1
%patch5
%patch6
# patch correct libdir path in service unit
if [ "%{_libdir}" != "/usr/lib" ]; then
    sed -i 's:/usr/lib:%{_libdir}:' %{S:4}
fi
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .

%build
export conf_dir="%{_sysconfdir}/sysstat"
export sa_lib_dir="%{_libdir}/sa"
export cron_owner=root
export LFLAGS="-L. -lsyscom"
%configure \
    --enable-nls \
    --disable-man-group \
    --enable-debug-info
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_localstatedir}/log/sa %{buildroot}%{_sbindir}
%make_install
install -D -m 0644 isag.desktop 
%{buildroot}%{_datadir}/applications/isag.desktop
%suse_update_desktop_file isag
cp contrib/isag/isag %{buildroot}%{_bindir}
cp contrib/isag/isag.1 %{buildroot}%{_mandir}/man1
rm -rf %{buildroot}%{_datadir}/doc/sysstat*
install -D -m 0755 sysstat.cron.suse 
%{buildroot}%{_sysconfdir}/sysstat/sysstat.cron
install -D -m 0755 sysstat.init.suse 
%{buildroot}%{_sysconfdir}/init.d/boot.sysstat
# change /usr/lib to /usr/lib64 or something else when needed
if [ "%{_libdir}" != "/usr/lib" ]; then
    sed -i 's:/usr/lib/:%{_libdir}/:g' 
%{buildroot}%{_sysconfdir}/init.d/boot.sysstat 
%{buildroot}%{_sysconfdir}/sysstat/sysstat.cron
fi
ln -s %{_sysconfdir}/init.d/boot.sysstat %{buildroot}%{_sbindir}/rcsysstat
%find_lang %{name}
install -d %{buildroot}%{_localstatedir}/lock/sa %{buildroot}%{_unitdir}
install -D -m 0644 %{S:4} %{buildroot}%{_unitdir}/sysstat.service

%pre
%service_add_pre sysstat.service

%preun
%{stop_on_removal boot.sysstat}
%service_del_preun sysstat.service
[ "$1" -gt 0 ] || rm -f %{_localstatedir}/log/sa/*

%post
%{fillup_and_insserv boot.sysstat}
%service_add_post sysstat.service

%postun
%{insserv_cleanup}
%service_del_postun sysstat.service

%clean
rm -rf %{buildroot}

%files -f "%{name}.lang"
%defattr(-,root,root)
%doc CHANGES COPYING CREDITS FAQ README TODO
%doc %{_mandir}/man1/*
%doc %{_mandir}/man5/*
%doc %{_mandir}/man8/*
%exclude %{_mandir}/man1/isag*
%dir %{_sysconfdir}/sysstat
%config(noreplace) %{_sysconfdir}/sysstat/sysstat
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysstat/sysstat.cron
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysstat/sysstat.ioconf
%attr(755,root,root) %{_sysconfdir}/init.d/boot.sysstat
%{_bindir}/*
%{_sbindir}/*
%exclude %{_bindir}/isag
%{_libdir}/sa
%{_unitdir}/sysstat.service
%ghost %dir %{_localstatedir}/lock/sa
%dir %{_localstatedir}/log/sa

%files isag
%defattr(-,root,root)
%doc contrib/isag/README-isag
%doc %{_mandir}/man1/isag*
%{_bindir}/isag
%{_datadir}/applications/isag.desktop

%changelog
++++++ isag.desktop ++++++
[Desktop Entry]
Version=1.0
Name=Isag System Activity Grapher
GenericName=System Monitor
Comment=Interactive System Activity Grapher for sysstat
Exec=isag
Icon=utilities-system-monitor
Type=Application
Categories=System;Monitor;
++++++ sysstat-10.0.2-sadf-xml.patch ++++++
Patch from Nathan Scott, provided in:
https://bugzilla.redhat.com/show_bug.cgi?id=859102
Index: sadf_misc.c
===================================================================
--- sadf_misc.c.orig
+++ sadf_misc.c
@@ -288,7 +288,7 @@ __printf_funct_t print_xml_timestamp(int
                                     char *cur_time, int utc, unsigned long 
long itv)
 {
        if (action & F_BEGIN) {
-               xprintf(*tab, "<timestamp date=\"%s\" time=\"%s\" utc=\"%d\" 
interval=\"%llu\"/>",
+               xprintf(*tab, "<timestamp date=\"%s\" time=\"%s\" utc=\"%d\" 
interval=\"%llu\">",
                        cur_date, cur_time, utc ? 1 : 0, itv);
        }
        if (action & F_END) {
++++++ sysstat-8.0.4-pagesize.diff ++++++
--- common.h
+++ common.h
@@ -125,8 +125,8 @@
  * kB <-> number of pages.
  * Page size depends on machine architecture (4 kB, 8 kB, 16 kB, 64 kB...)
  */
-#define KB_TO_PG(k)    ((k) >> kb_shift)
-#define PG_TO_KB(k)    ((k) << kb_shift)
+#define KB_TO_PG(k)    ((k) / (getpagesize()/1024) )
+#define PG_TO_KB(k)    ((k) * (getpagesize()/1024) )
 
 /*
  ***************************************************************************
++++++ sysstat-8.0.4-sysconfdir.diff ++++++
--- FAQ
+++ FAQ
@@ -419,9 +419,9 @@
 Nor do you have to be concerned about using up all your disk space.
 sar will use a few hundred kilobytes for a whole day's worth of data, and it
 normally only stores one week worth (this can be configured via the HISTORY
-variable in the /etc/sysconfig/sysstat file). It is entirely self limiting.
+variable in the /etc/sysstat/sysstat file). It is entirely self limiting.
 Moreover, you can ask sar to compress its datafiles older than a certain
-number of days: see the COMPRESSAFTER parameter in the /etc/sysconfig/sysstat
+number of days: see the COMPRESSAFTER parameter in the /etc/sysstat/sysstat
 configuration file.
 
 ~~~
@@ -461,7 +461,7 @@
 By default sar saves its data in the standard system activity data file,
 the /var/log/sa/sa<DD> file, where <DD> is the current day in the month.
 To prevent sar from overwriting any existing files, just set the variable
-HISTORY in /etc/sysconfig/sysstat to the number of days during which data
+HISTORY in /etc/sysstat/sysstat to the number of days during which data
 must be kept. When this variable has a value greater than 28, sa1 script
 uses a month-by-month directory structure; datafiles are named YYYYMM/saDD
 and the script maintains links to these datafiles to mimic the standard
--- README
+++ README
@@ -83,8 +83,8 @@
 ${PREFIX}/share/doc/sysstat-x.y.z/*
 /var/log/sa
 ${INIT_DIR}/sysstat
-/etc/sysconfig/sysstat
-/etc/sysconfig/sysstat.ioconf
+/etc/sysstat/sysstat
+/etc/sysstat/sysstat.ioconf
 /etc/cron.d/sysstat
 /etc/rc.d/rc.sysstat           for [SLACKWARE]
 ${RC_DIR}/rc2.d/S03sysstat
++++++ sysstat-8.1.6-sa1sa2lock.diff ++++++
Index: sa1.in
===================================================================
--- sa1.in.orig
+++ sa1.in
@@ -30,17 +30,24 @@ then
        rm -f ${CURRENTFILE}
        ln -s ${CURRENTDIR}/${CURRENTFILE} ${CURRENTFILE}
 fi
+set -e
 umask 0022
 ENDIR=@SA_LIB_DIR@
 cd ${ENDIR}
+
+LOCKFILE=/var/run/sysstat/sadc.LOCK
+mkdir -p /var/run/sysstat
+lockfile -r2 -30 "$LOCKFILE" 2>/dev/null
+trap "/bin/rm -f $LOCKFILE" EXIT
+
 [ "$1" = "--boot" ] && shift && BOOT=y || BOOT=n
 if [ $# = 0 ] && [ "${BOOT}" = "n" ]
 then
 # Note: Stats are written at the end of previous file *and* at the
 # beginning of the new one (when there is a file rotation) only if
 # outfile has been specified as '-' on the command line...
-       exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 -
+       ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 -
 else
-       exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* -
+       ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* -
 fi
 
Index: sa2.in
===================================================================
--- sa2.in.orig
+++ sa2.in
@@ -48,6 +48,17 @@ ENDIR=@bindir@
 DFILE=${CURRENTDIR}/${CURRENTFILE}
 [ -f "$DFILE" ] || exit 0
 cd ${ENDIR}
+
+LOCKFILE=/var/run/sysstat/sadc.LOCK
+mkdir -p /var/run/sysstat
+if ! lockfile -r6 -600 $LOCKFILE 2>/dev/null; then
+  if test `find $LOCKFILE -mmin +180 2>/dev/null`; then
+    rm -f $LOCKFILE
+    logger -p cron.alert "$0: detected an old lockfile \"$LOCKFILE\"."
+  fi
+fi
+trap "/bin/rm -f $LOCKFILE" EXIT
+
 [ -L ${RPT} ] && rm -f ${RPT}
 ${ENDIR}/sar $* -f ${DFILE} > ${RPT}
 find ${DDIR} \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 
'sa??.gz' -o -name 'sar??.bz2' -o -name 'sa??.bz2' \) \
++++++ sysstat-9.0.4-no-build-date.patch ++++++
Index: sadf.c
===================================================================
--- sadf.c.orig
+++ sadf.c
@@ -43,7 +43,7 @@
 # define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 long interval = -1, count = 0;
Index: sadc.c
===================================================================
--- sadc.c.orig
+++ sadc.c
@@ -52,7 +52,7 @@
 #include "sensors/error.h"
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 long interval = 0;
Index: pidstat.c
===================================================================
--- pidstat.c.orig
+++ pidstat.c
@@ -43,7 +43,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 unsigned long long uptime[3] = {0, 0, 0};
Index: mpstat.c
===================================================================
--- mpstat.c.orig
+++ mpstat.c
@@ -41,7 +41,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": "  __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": "  __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 unsigned long long uptime[3] = {0, 0, 0};
Index: sar.c
===================================================================
--- sar.c.orig
+++ sar.c
@@ -40,7 +40,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 /* Interval and count parameters */
Index: iostat.c
===================================================================
--- iostat.c.orig
+++ iostat.c
@@ -47,7 +47,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 struct stats_cpu *st_cpu[2];
Index: cifsiostat.c
===================================================================
--- cifsiostat.c.orig
+++ cifsiostat.c
@@ -40,7 +40,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 unsigned long long uptime[2]  = {0, 0};
Index: nfsiostat.c
===================================================================
--- nfsiostat.c.orig
+++ nfsiostat.c
@@ -39,7 +39,7 @@
 #define _(string) (string)
 #endif
 
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " 
__TIME__
+#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__
 char *sccsid(void) { return (SCCSID); }
 
 unsigned long long uptime[2]  = {0, 0};
++++++ sysstat-do-not-strip.patch ++++++
Index: sysstat-10.0.1/Makefile.in
===================================================================
--- sysstat-10.0.1.orig/Makefile.in
+++ sysstat-10.0.1/Makefile.in
@@ -71,7 +71,7 @@ SYSCONFIG_DIR = @SYSCONFIG_DIR@
 # Compiler flags
 CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -pipe -O2
 DFLAGS = @DFLAGS@
-LFLAGS =  -s
+LFLAGS = 
 DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\"
 DFLAGS += $(DFSENSORS)
 
++++++ sysstat.cron.suse ++++++
# crontab for sysstat

# Activity reports every 10 minutes everyday
*/10 * * * * root [ -x /usr/lib/sa/sa1 ] && exec /usr/lib/sa/sa1 -S ALL 1 1

# Update reports every 6 hours
55 5,11,17,23 * * *     root [ -x /usr/lib/sa/sa2 ] && exec /usr/lib/sa/sa2 -A
++++++ sysstat.init.suse ++++++
#! /bin/sh
# Copyright (c) 2000-2009 SuSE GmbH Nuernberg, Germany.
#
# /etc/init.d/boot.sysstat
#
### BEGIN INIT INFO
# Provides:          boot.sysstat
# Required-Start:    boot.rootfsck boot.cleanup boot.clock
# Should-Start:      $local_fs $remote_fs
# Required-Stop:     boot.rootfsck boot.cleanup
# Should-Stop:       $local_fs $remote_fs
# Default-Start:     B
# Default-Stop:      $null
# Short-Description: Write information about system start to sysstat log
# Description:       Write information about system start to sysstat log
### END INIT INFO

. /etc/rc.status
rc_reset

case "$1" in
    start)
        echo "Running sadc"
        /usr/lib/sa/sa1 --boot 1>/dev/null 2>&1 && ln -fs 
/etc/sysstat/sysstat.cron /etc/cron.d/sysstat || rc_failed 1
        rc_status -v
    ;;

    stop)
        echo "Removing sysstat's crontab"
        /bin/rm -f /etc/cron.d/sysstat
        rc_status -v
    ;;

    check|status)
        echo -n "Checking for service sysstat: "
        test -L /etc/cron.d/sysstat && test "`readlink /etc/cron.d/sysstat`" == 
/etc/sysstat/sysstat.cron || rc_failed 3
        rc_status -v
    ;;

    restart|reload|probe)
        rc_failed 3
    ;;

    *)
        echo "Usage: $0 {start|stop|status}"
        exit 1
    ;;

esac

rc_exit
++++++ sysstat.service ++++++
[Unit]
Description=Write information about system start to sysstat log
After=remote-fs.target local-fs.target
Before=cron.service

[Service]
Type=oneshot
ExecStart=/usr/lib/sa/sa1  --boot
ExecStart=/bin/ln -fs /etc/sysstat/sysstat.cron /etc/cron.d/sysstat
ExecStop=/bin/rm -f /etc/cron.d/sysstat
StandardOutput=null
RemainAfterExit=true

[Install]
WantedBy=default.target
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to