Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sysstat for openSUSE:Factory checked in at 2022-03-14 19:35:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sysstat (Old) and /work/SRC/openSUSE:Factory/.sysstat.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sysstat" Mon Mar 14 19:35:05 2022 rev:99 rq:961105 version:12.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/sysstat/sysstat.changes 2021-12-22 20:18:07.735848803 +0100 +++ /work/SRC/openSUSE:Factory/.sysstat.new.25692/sysstat.changes 2022-03-14 19:36:44.450102964 +0100 @@ -1,0 +2,11 @@ +Fri Mar 11 14:00:11 UTC 2022 - David Anes <[email protected]> +- fix changelog typos. +- update to 12.4.5: + * sar/sadf: Make sure that datafiles with unknown activities can + be read by sar and sadf. + * sar/sadf: Don't reallocate buffers for activities not present + in file. + * sar: Make sure that all buffers are copied in copy_structures() + function. + +------------------------------------------------------------------- @@ -4 +15 @@ -- update to 2.14.4: +- update to 12.4.4: @@ -36 +47 @@ -- update to 2.14.3: +- update to 12.4.3: @@ -51 +62 @@ -- update to 2.14.2: +- update to 12.4.2: Old: ---- sysstat-12.4.4.tar.gz New: ---- sysstat-12.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sysstat.spec ++++++ --- /var/tmp/diff_new_pack.fiys1V/_old 2022-03-14 19:36:44.970103587 +0100 +++ /var/tmp/diff_new_pack.fiys1V/_new 2022-03-14 19:36:44.978103597 +0100 @@ -1,7 +1,7 @@ # # spec file for package sysstat # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: sysstat -Version: 12.4.4 +Version: 12.4.5 Release: 0 Summary: Sar and Iostat Commands for Linux License: GPL-2.0-or-later ++++++ sysstat-12.4.4.tar.gz -> sysstat-12.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/CHANGES new/sysstat-12.4.5/CHANGES --- old/sysstat-12.4.4/CHANGES 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/CHANGES 2022-02-28 08:32:35.000000000 +0100 @@ -1,5 +1,13 @@ Changes: +2022/02/28: Version 12.4.5 - Sebastien Godard (sysstat <at> orange.fr) + * sar/sadf: Make sure that datafiles with unknown activities can + be read by sar and sadf. + * sar/sadf: Don't reallocate buffers for activities not present + in file. + * sar: Make sure that all buffers are copied in copy_structures() + function. + 2021/12/05: Version 12.4.4 - Sebastien Godard (sysstat <at> orange.fr) * iostat: Always display persistent names with option -j. * iostat: Fix how device mapper names are taken into account when diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/configure new/sysstat-12.4.5/configure --- old/sysstat-12.4.4/configure 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/configure 2022-02-28 08:32:35.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sysstat 12.4.4. +# Generated by GNU Autoconf 2.69 for sysstat 12.4.5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,8 +577,8 @@ # Identity of this package. PACKAGE_NAME='sysstat' PACKAGE_TARNAME='sysstat' -PACKAGE_VERSION='12.4.4' -PACKAGE_STRING='sysstat 12.4.4' +PACKAGE_VERSION='12.4.5' +PACKAGE_STRING='sysstat 12.4.5' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1326,7 +1326,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sysstat 12.4.4 to adapt to many kinds of systems. +\`configure' configures sysstat 12.4.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1387,7 +1387,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sysstat 12.4.4:";; + short | recursive ) echo "Configuration of sysstat 12.4.5:";; esac cat <<\_ACEOF @@ -1513,7 +1513,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sysstat configure 12.4.4 +sysstat configure 12.4.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1932,7 +1932,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sysstat $as_me 12.4.4, which was +It was created by sysstat $as_me 12.4.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -6206,7 +6206,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sysstat $as_me 12.4.4, which was +This file was extended by sysstat $as_me 12.4.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -6259,7 +6259,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sysstat config.status 12.4.4 +sysstat config.status 12.4.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/configure.in new/sysstat-12.4.5/configure.in --- old/sysstat-12.4.4/configure.in 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/configure.in 2022-02-28 08:32:35.000000000 +0100 @@ -4,7 +4,7 @@ # Modified by Sebastien Godard (sysstat <at> orange.fr) # Initialization of $PACKAGE_VERSION and $PACKAGE_NAME variables -AC_INIT(sysstat, 12.4.4) +AC_INIT(sysstat, 12.4.5) # Ensure that a recent enough version of Autoconf is being used AC_PREREQ(2.53) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/nls/sysstat.pot new/sysstat-12.4.5/nls/sysstat.pot --- old/sysstat-12.4.4/nls/sysstat.pot 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/nls/sysstat.pot 2022-02-28 08:32:35.000000000 +0100 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: sysstat <at> orange.fr\n" -"POT-Creation-Date: 2021-12-05 08:55+0100\n" +"POT-Creation-Date: 2022-02-28 08:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -78,7 +78,7 @@ "[ <device> [...] | ALL ]\n" msgstr "" -#: iostat.c:2171 sa_common.c:2263 +#: iostat.c:2171 sa_common.c:2244 #, c-format msgid "Invalid type of persistent device name\n" msgstr "" @@ -157,7 +157,7 @@ msgid "Please check if data collecting is enabled\n" msgstr "" -#: sa_common.c:2135 +#: sa_common.c:2116 #, c-format msgid "Requested activities not available in file %s\n" msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sa.h new/sysstat-12.4.5/sa.h --- old/sysstat-12.4.4/sa.h 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/sa.h 2022-02-28 08:32:35.000000000 +0100 @@ -612,11 +612,6 @@ * Base magical number for activities. */ #define ACTIVITY_MAGIC_BASE 0x8a -/* - * Magical value used for activities with - * unknown format (used for sadf -H only). - */ -#define ACTIVITY_MAGIC_UNKNOWN 0x89 /* List of activities saved in file */ struct file_activity { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sa_common.c new/sysstat-12.4.5/sa_common.c --- old/sysstat-12.4.4/sa_common.c 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/sa_common.c 2022-02-28 08:32:35.000000000 +0100 @@ -1548,7 +1548,7 @@ p = get_activity_position(act, id_seq[i], EXIT_IF_NOT_FOUND); memcpy(act[p]->buf[dest], act[p]->buf[src], - (size_t) act[p]->msize * (size_t) act[p]->nr[src] * (size_t) act[p]->nr2); + (size_t) act[p]->msize * (size_t) act[p]->nr_allocated * (size_t) act[p]->nr2); act[p]->nr[dest] = act[p]->nr[src]; } } @@ -2012,19 +2012,11 @@ /* Unknown activity */ continue; - skip = FALSE; - if (fal->magic != act[p]->magic) { - /* Bad magical number */ - if (DISPLAY_HDR_ONLY(flags)) { - /* - * This is how sadf -H knows that this - * activity has an unknown format. - */ - act[p]->magic = ACTIVITY_MAGIC_UNKNOWN; - } - else { - skip = TRUE; - } + if ((fal->magic != act[p]->magic) && !DISPLAY_HDR_ONLY(flags)) { + skip = TRUE; + } + else { + skip = FALSE; } /* Check max value for known activities */ @@ -2039,7 +2031,8 @@ /* * Number of fields of each type ("long long", or "long" * or "int") composing the structure with statistics may - * only increase with new sysstat versions. Here, we may + * only increase with new sysstat versions, unless we change + * the activity's magic number. Here, we may * be reading a file created by current sysstat version, * or by an older or a newer version. */ @@ -2050,15 +2043,7 @@ ((fal->types_nr[0] <= act[p]->gtypes_nr[0]) && (fal->types_nr[1] <= act[p]->gtypes_nr[1]) && (fal->types_nr[2] <= act[p]->gtypes_nr[2]))) && - (act[p]->magic != ACTIVITY_MAGIC_UNKNOWN) && !DISPLAY_HDR_ONLY(flags)) { - /* - * This may not be an error (that's actually why we may have changed - * the magic number for this activity above). - * So, if the activity magic number has changed (e.g.: ACTIVITY_MAGIC_UNKNOWN) - * and we want to display only the header, then ignore the error. - * If we want to also display the stats then we must stop here because - * we won't know how to map the contents of the stats structure. - */ + (fal->magic == act[p]->magic) && !DISPLAY_HDR_ONLY(flags)) { #ifdef DEBUG fprintf(stderr, "%s: id=%d file=%d,%d,%d activity=%d,%d,%d\n", __FUNCTION__, fal->id, fal->types_nr[0], fal->types_nr[1], fal->types_nr[2], @@ -2075,13 +2060,6 @@ goto format_error; } - if (skip) - /* - * This is an unknown activity and we want stats about it: - * This is not possible so skip it. - */ - continue; - for (k = 0; k < 3; k++) { act[p]->ftypes_nr[k] = fal->types_nr[k]; } @@ -2093,12 +2071,15 @@ act[p]->nr_ini = fal->nr; act[p]->nr2 = fal->nr2; act[p]->fsize = fal->size; + /* * This is a known activity with a known format * (magical number). Only such activities will be displayed. * (Well, this may also be an unknown format if we have entered sadf -H.) */ - id_seq[j++] = fal->id; + if (!skip) { + id_seq[j++] = fal->id; + } } while (j < NR_ACT) { @@ -3017,7 +2998,7 @@ * not been collected in file (or if it has an unknown format). */ for (p = 0; p < NR_ACT; p++) { - if (HAS_PERSISTENT_VALUES(act[p]->options)) { + if (HAS_PERSISTENT_VALUES(act[p]->options) && (act[p]->nr_ini > 0)) { act[p]->nr_ini = file_hdr->sa_cpu_nr; if (act[p]->nr_ini > act[p]->nr_allocated) { reallocate_all_buffers(act[p], act[p]->nr_ini); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sadf_misc.c new/sysstat-12.4.5/sadf_misc.c --- old/sysstat-12.4.4/sadf_misc.c 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/sadf_misc.c 2022-02-28 08:32:35.000000000 +0100 @@ -1276,7 +1276,7 @@ printf("x%d", fal->nr2); } printf("\t(%d,%d,%d)", fal->types_nr[0], fal->types_nr[1], fal->types_nr[2]); - if ((p >= 0) && (act[p]->magic == ACTIVITY_MAGIC_UNKNOWN)) { + if ((p >= 0) && (act[p]->magic != fal->magic)) { printf(_(" \t[Unknown format]")); } printf("\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sysstat-12.4.4.lsm new/sysstat-12.4.5/sysstat-12.4.4.lsm --- old/sysstat-12.4.4/sysstat-12.4.4.lsm 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/sysstat-12.4.4.lsm 1970-01-01 01:00:00.000000000 +0100 @@ -1,35 +0,0 @@ -Begin4 -Title: sysstat - the sar, sadf, mpstat, iostat, tapestat, pidstat and cifsiostat commands for Linux -Version: 12.4.4 -Entered-date: 2021-12-05 -Description: The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, - pidstat, cifsiostat and sa tools for Linux. - The sar command collects and reports system activity - information. - The information collected by sar can be saved in a file - in a binary format for future inspection. - The statistics reported by sar concern I/O transfer rates, - paging activity, process-related activities, interrupts, - network activity, memory and swap space utilization, CPU - utilization, kernel activities and TTY statistics, among - others. Both UP and SMP machines are fully supported. - The sadf command is used to display data collected by sar in various - formats (XML, database-friendly, etc.) and to draw graphs (SVG). - The mpstat command reports global and per-processor statistics. - The iostat command reports CPU utilization and I/O statistics - for disks. - The tapestat command reports statistics for tape drives connected - to the system. - The pidstat command reports statistics for Linux tasks (processes). - The cifsiostat command reports I/O statistics for CIFS filesystems. - NB: Send bugs, patches, suggestions and/or questions to - (sysstat [at] orange.fr). - URL: http://pagesperso-orange.fr/sebastien.godard/ -Keywords: system administration, system monitoring, sar, sadf, iostat, mpstat, tapestat, pidstat, system accounting, performance, tuning -Author: [email protected] (Sebastien Godard) -Maintained-by: [email protected] (Sebastien Godard) -Primary-site: http://pagesperso-orange.fr/sebastien.godard/ - 793kiB sysstat-12.4.4.tar.xz -Alternate-site: -Copying-policy: GPL -End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sysstat-12.4.4.spec new/sysstat-12.4.5/sysstat-12.4.4.spec --- old/sysstat-12.4.4/sysstat-12.4.4.spec 2021-12-05 09:02:24.000000000 +0100 +++ new/sysstat-12.4.5/sysstat-12.4.4.spec 1970-01-01 01:00:00.000000000 +0100 @@ -1,83 +0,0 @@ -Summary: SAR, SADF, MPSTAT, IOSTAT, TAPESTAT, PIDSTAT and CIFSIOSTAT for Linux -Name: sysstat -Version: 12.4.4 -Release: 1 -License: GPL -Group: Applications/System -Source0: %{name}-%{version}.tar.gz -URL: http://pagesperso-orange.fr/sebastien.godard/ -Packager: Sebastien Godard <sysstat _at_ orange.fr> -BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) -Requires: gettext - -%description -The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, -pidstat, cifsiostat and sa tools for Linux. -The sar command collects and reports system activity information. -The information collected by sar can be saved in a file in a binary -format for future inspection. The statistics reported by sar concern -I/O transfer rates, paging activity, process-related activities, -interrupts, network activity, memory and swap space utilization, CPU -utilization, kernel activities and TTY statistics, among others. Both -UP and SMP machines are fully supported. -The sadf command may be used to display data collected by sar in -various formats (CSV, XML, etc.) and to draw graphs (SVG). -The iostat command reports CPU utilization and I/O statistics for disks. -The tapestat command reports statistics for tapes connected to the system. -The mpstat command reports global and per-processor statistics. -The pidstat command reports statistics for Linux tasks (processes). -The cifsiostat command reports I/O statistics for CIFS filesystems. - -%define debug_package %{nil} - -%prep -%setup - -%build -# To include cron installation, add options --enable-install-cron and --enable-copy-only -./configure --prefix=%{_prefix} \ - --disable-file-attr \ - sa_lib_dir=%{_libdir}/sa \ - --mandir=%{_mandir} \ - DESTDIR=$RPM_BUILD_ROOT -make - -%install -rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/var/log/sa - -make install - -mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d -install -m 755 sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat -mkdir -p $RPM_BUILD_ROOT/etc/sysconfig -install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat -install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf -mkdir -p $RPM_BUILD_ROOT/etc/cron.d -install -m 644 cron/sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat -mkdir -p $RPM_BUILD_ROOT/etc/rc2.d -cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat -mkdir -p $RPM_BUILD_ROOT/etc/rc3.d -cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat -mkdir -p $RPM_BUILD_ROOT/etc/rc5.d -cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(644,root,root,755) -%doc %{_datadir}/doc/sysstat-%{version}/* -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/sa/* -%attr(644,root,root) %{_mandir}/man*/* -%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo -%attr(755,root,root) %dir /var/log/sa -%attr(755,root,root) /etc/rc.d/init.d/sysstat -%attr(644,root,root) /etc/sysconfig/sysstat -%attr(644,root,root) /etc/sysconfig/sysstat.ioconf -/etc/rc2.d/S01sysstat -/etc/rc3.d/S01sysstat -/etc/rc5.d/S01sysstat -%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sysstat-12.4.5.lsm new/sysstat-12.4.5/sysstat-12.4.5.lsm --- old/sysstat-12.4.4/sysstat-12.4.5.lsm 1970-01-01 01:00:00.000000000 +0100 +++ new/sysstat-12.4.5/sysstat-12.4.5.lsm 2022-02-28 08:32:35.000000000 +0100 @@ -0,0 +1,35 @@ +Begin4 +Title: sysstat - the sar, sadf, mpstat, iostat, tapestat, pidstat and cifsiostat commands for Linux +Version: 12.4.5 +Entered-date: 2022-02-28 +Description: The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, + pidstat, cifsiostat and sa tools for Linux. + The sar command collects and reports system activity + information. + The information collected by sar can be saved in a file + in a binary format for future inspection. + The statistics reported by sar concern I/O transfer rates, + paging activity, process-related activities, interrupts, + network activity, memory and swap space utilization, CPU + utilization, kernel activities and TTY statistics, among + others. Both UP and SMP machines are fully supported. + The sadf command is used to display data collected by sar in various + formats (XML, database-friendly, etc.) and to draw graphs (SVG). + The mpstat command reports global and per-processor statistics. + The iostat command reports CPU utilization and I/O statistics + for disks. + The tapestat command reports statistics for tape drives connected + to the system. + The pidstat command reports statistics for Linux tasks (processes). + The cifsiostat command reports I/O statistics for CIFS filesystems. + NB: Send bugs, patches, suggestions and/or questions to + (sysstat [at] orange.fr). + URL: http://pagesperso-orange.fr/sebastien.godard/ +Keywords: system administration, system monitoring, sar, sadf, iostat, mpstat, tapestat, pidstat, system accounting, performance, tuning +Author: [email protected] (Sebastien Godard) +Maintained-by: [email protected] (Sebastien Godard) +Primary-site: http://pagesperso-orange.fr/sebastien.godard/ + 793kiB sysstat-12.4.5.tar.xz +Alternate-site: +Copying-policy: GPL +End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysstat-12.4.4/sysstat-12.4.5.spec new/sysstat-12.4.5/sysstat-12.4.5.spec --- old/sysstat-12.4.4/sysstat-12.4.5.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/sysstat-12.4.5/sysstat-12.4.5.spec 2022-02-28 08:32:35.000000000 +0100 @@ -0,0 +1,83 @@ +Summary: SAR, SADF, MPSTAT, IOSTAT, TAPESTAT, PIDSTAT and CIFSIOSTAT for Linux +Name: sysstat +Version: 12.4.5 +Release: 1 +License: GPL +Group: Applications/System +Source0: %{name}-%{version}.tar.gz +URL: http://pagesperso-orange.fr/sebastien.godard/ +Packager: Sebastien Godard <sysstat _at_ orange.fr> +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) +Requires: gettext + +%description +The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, +pidstat, cifsiostat and sa tools for Linux. +The sar command collects and reports system activity information. +The information collected by sar can be saved in a file in a binary +format for future inspection. The statistics reported by sar concern +I/O transfer rates, paging activity, process-related activities, +interrupts, network activity, memory and swap space utilization, CPU +utilization, kernel activities and TTY statistics, among others. Both +UP and SMP machines are fully supported. +The sadf command may be used to display data collected by sar in +various formats (CSV, XML, etc.) and to draw graphs (SVG). +The iostat command reports CPU utilization and I/O statistics for disks. +The tapestat command reports statistics for tapes connected to the system. +The mpstat command reports global and per-processor statistics. +The pidstat command reports statistics for Linux tasks (processes). +The cifsiostat command reports I/O statistics for CIFS filesystems. + +%define debug_package %{nil} + +%prep +%setup + +%build +# To include cron installation, add options --enable-install-cron and --enable-copy-only +./configure --prefix=%{_prefix} \ + --disable-file-attr \ + sa_lib_dir=%{_libdir}/sa \ + --mandir=%{_mandir} \ + DESTDIR=$RPM_BUILD_ROOT +make + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/var/log/sa + +make install + +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +install -m 755 sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat +mkdir -p $RPM_BUILD_ROOT/etc/sysconfig +install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat +install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf +mkdir -p $RPM_BUILD_ROOT/etc/cron.d +install -m 644 cron/sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc2.d +cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc3.d +cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc5.d +cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc %{_datadir}/doc/sysstat-%{version}/* +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/sa/* +%attr(644,root,root) %{_mandir}/man*/* +%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo +%attr(755,root,root) %dir /var/log/sa +%attr(755,root,root) /etc/rc.d/init.d/sysstat +%attr(644,root,root) /etc/sysconfig/sysstat +%attr(644,root,root) /etc/sysconfig/sysstat.ioconf +/etc/rc2.d/S01sysstat +/etc/rc3.d/S01sysstat +/etc/rc5.d/S01sysstat +%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat +
