Name: sysstat Version: 6.0.1 Release: 2 Summary: The sar and iostat system monitoring commands. License: GPL Group: Applications/System URL: http://perso.wanadoo.fr/sebastien.godard/ Source: http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2 Source1: sysstat.crond Source2: sysstat.crondaily Source3: sysstat.sysconfig Patch0: sysstat-4.0.1-config.patch Patch3: sysstat-5.0.5-statreset.patch Patch6: sysstat-5.0.5-append-msg.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: /sbin/chkconfig Prereq: sh-utils textutils grep fileutils /etc/cron.d BuildRequires: perl %{_includedir}/linux/if.h Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id %description This package provides the sar and iostat commands for Linux. Sar and iostat enable system monitoring of disk, network, and other IO activity. %prep %setup -q %patch0 -p1 -b .config %patch3 -p1 -b .statreset %patch6 -p1 -b .append-msg %build # FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and # send the upstream maintainer a patch. CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\"" make CFLAGS="$CFLAGS" PREFIX=%{_prefix} LIB_DIR=%{_libdir} SA_LIB_DIR=%{_libdir}/sa MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir} # Thou shalt not write to source files or patches rm -f sysstat.crond %if %_lib == "lib64" perl -p -e "s|/lib/|/lib64/|g" %{SOURCE1} > sysstat.crond %else cat %{SOURCE1} > sysstat.crond %endif %install rm -rf %{buildroot} %makeinstall PREFIX=%{_prefix} SA_LIB_DIR=%{_libdir}/sa LIB_DIR=%{_libdir} MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir} INIT_DIR=%{_initrddir} #make install MAN_DIR=%{_mandir} mkdir -p %{buildroot}/etc/{cron.daily,cron.d,sysconfig} install -m 0644 sysstat.crond %{buildroot}/etc/cron.d/sysstat #install %{SOURCE2} %{buildroot}/etc/cron.daily/sysstat install -m 0644 %{SOURCE3} %{buildroot}/etc/sysconfig/sysstat mkdir -p %{buildroot}%{_initrddir} install -m 0755 sysstat %{buildroot}%{_initrddir}/ # sysstat makefiles install the docs in the wrong place, blow them away rm -f %{buildroot}/usr/share/doc/* %find_lang %{name} #FIXME: Make sure this trigger is actually correct and relevant still. %triggerpostun -- sysstat <= 3.3.3-1 # earlier versions of sysstat had crontabs done in a bad way. fix it. if [ `id -u` = "0" -a "$1" -ge "2" ]; then if grep -E -v 'sysstat|sa1|sa2' /etc/crontab > /etc/crontab.tmp.$$; then cp -dpf /etc/crontab /etc/crontab.save.$$ && \ if mv /etc/crontab.tmp.$$ /etc/crontab; then chmod --reference=/etc/crontab.save.$$ /etc/crontab && \ rm -f /etc/crontab.save.$$ else mv -f /etc/crontab.save.$$ /etc/crontab fi fi fi %post /sbin/chkconfig --add sysstat %preun if [ "$1" = 0 ]; then # Remove sa logs if removing sysstat completely rm -f /var/log/sa/* # Remove service /sbin/chkconfig --del sysstat fi %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc CHANGES COPYING CREDITS README TODO %config(noreplace) /etc/cron.d/sysstat #config(noreplace) /etc/cron.daily/sysstat %config(noreplace) /etc/sysconfig/sysstat %config(noreplace) /etc/sysconfig/sysstat.ioconf %{_initrddir}/sysstat %{_bindir}/* %{_libdir}/sa %{_mandir}/man1/* %{_mandir}/man8/* /var/log/sa %changelog * Mon Oct 10 2005 Ivana Varekova 6.0.1-2 - fix chkconfig problem * Fri Oct 7 2005 Ivana Varekova 6.0.1-1 - version 6.0.1 * Thu Aug 18 2005 Florian La Roche - no need to kernel kernel 2.2 or newer anymore * Tue May 10 2005 Ivana Varekova 5.0.5-10.fc - add debug files to debug_package * Mon Mar 7 2005 Ivana Varekova 5.0.5-9.fc - rebuilt (add gcc4fix, update lib64ini) * Fri Mar 4 2005 Ivana Varekova 5.0.5-7.fc - rebuilt * Thu Sep 30 2004 Charles Bennett 5.0.5-5.fc - bring in filename and append-msg patch - append-msg adds verbose text for when saNN data file cpu count - does not match cpu count on the currently running system * Wed Jun 30 2004 Nils Philippsen - version 5.0.5 - remove some obsolete patches - update statreset, overrun, lib64init patches - renumber patches * Wed Jun 16 2004 Alan Cox - Fix spew of crap to console at startup - Fix order of startup (#124035) - Fix array overrun (#117182) - Fix interrupt buffer sizing (caused bogus irq info) * Tue Jun 15 2004 Elliot Lee - rebuilt * Wed Mar 24 2004 Justin Forbes <64bit_fedora@comcast.net> 5.0.1-2 - fix lib64 init * Tue Mar 02 2004 Elliot Lee - rebuilt * Wed Feb 18 2004 Nils Philippsen 5.0.1-1 - version 5.0.1 - update statreset patch * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Jan 22 2004 Nils Philippsen 5.0.0-0.6 - let user configure how long to keep logs through /etc/sysconfig/sysstat (#81294) - reset stats at system boot (#102445) * Wed Jan 21 2004 Nils Philippsen 5.0.0-0.5 - fix ifnamsiz patch for s390x (hopefully) * Tue Jan 20 2004 Nils Philippsen 5.0.0-0.4 - fix insecure tmp files in scripts (#78212) - require tools needed in scripts - use IFNAMSIZ from %{_includedir}/linux/if.h for maximum interface length * Mon Jan 12 2004 Nils Philippsen 5.0.0-0.3 - Buildrequires: perl - check for %%_lib == lib64 instead of specific arches * Mon Jan 12 2004 Nils Philippsen 5.0.0-0.2 - fix dealing with lib64 case of cron.d file * Mon Jan 12 2004 Nils Philippsen 5.0.0-0.1 - version 5.0.0 * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon Mar 3 2003 Joe Orton 4.0.7-4 - really fix paths for multilib (#82913) * Wed Feb 19 2003 Bill Nottingham 4.0.7-3 - fix paths on multilib arches (#82913) * Wed Jan 22 2003 Tim Powers - rebuilt * Sat Nov 23 2002 Mike A. Harris 4.0.7-1 - Updated to new upstream version 4.0.7 * Tue Nov 19 2002 Mike A. Harris 4.0.5-7 - Fixed files installed in /usr/doc to be put in correct place * Tue Oct 8 2002 Mike A. Harris 4.0.5-6 - All-arch rebuild * Tue Jul 23 2002 Trond Eivind Glomsrød 4.0.5-3 - Rebuild * Fri Jun 21 2002 Tim Powers - automated rebuild * Mon Jun 17 2002 Trond Eivind Glomsrød 4.0.5-1 - 4.0.5-1 - isag is no longer installed by default upstream, removing requirement on gnuplot * Thu May 23 2002 Tim Powers - automated rebuild * Mon Apr 22 2002 Trond Eivind Glomsrød 4.0.4-1 - 4.0.4 - Add an explicit requires on gnuplot (#63474) * Fri Apr 12 2002 Trond Eivind Glomsrød 4.0.3-2 - Do the daily sa2 run just before midnight, not at 4AM... you'd only get 4 hours worth of data that way (#63132) * Thu Feb 28 2002 Trond Eivind Glomsrød 4.0.3-1 - 4.0.3 * Wed Feb 27 2002 Trond Eivind Glomsrød 4.0.2-3 - Rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Dec 12 2001 Trond Eivind Glomsrød 4.0.2-1 - 4.0.2 - the kernel patch for extended statistics is in, don't say it needs applying in the man page * Mon Aug 13 2001 Preston Brown - be more verbose about which files are corrupt (#47122) * Mon Jul 2 2001 Preston Brown - run sa1 from cron.d to fix run-parts interaction problem (#37733) * Fri Jun 29 2001 Preston Brown - upgrade to 4.0.1 stable release * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Sun Apr 8 2001 Preston Brown - explicitly set safe umask (#35142) * Fri Mar 9 2001 Preston Brown - iostat disk utilization was off by a factor of 10. * Wed Feb 14 2001 Preston Brown - 3.3.5 brings us full support for kernel IO stats * Tue Jan 30 2001 Preston Brown - Summarize previous day's activity with sa2, not current day (which is only 4 hours of data when it gets run) (#24820) - upgrade to 3.3.4 for full 2.4 compatibility and improved iostat * Tue Jan 17 2001 Preston Brown - iostat man page fixes * Fri Jan 05 2001 Preston Brown - 3.3.3, crontab fixes * Fri Dec 29 2000 Bill Nottingham - fix prereqs * Fri Oct 13 2000 Preston Brown - crontab entry was still incorrect. Fixed. * Mon Oct 09 2000 Preston Brown - make sure disk accounting is enabled to fix iostat -l, -p (#16268) - crontab entries were missing the user (root) to run as (#18212) * Tue Aug 22 2000 Preston Brown - enable IO accounting now that kernel supports it * Wed Aug 16 2000 Nalin Dahyabhai - fix buildrooting (#16271) * Tue Aug 08 2000 Preston Brown - bugfixes in 3.2.4 cause our inclusion. :) * Wed Jul 12 2000 Prospector - automatic rebuild * Thu Jun 29 2000 Preston Brown - 3.2.3 fixes SMP race condition * Tue Jun 20 2000 Preston Brown - FHS macros - 3.2.2 * Fri May 26 2000 Preston Brown - packaged for Winston - change va patch to indicate kernel is not patched for iostat accounting. re-enable if our stock kernel gets this patch. - upgrade to 3.2. - install crontab entry. * Sun Dec 12 1999 Ian Macdonald - upgraded to 2.2 * Fri Oct 29 1999 Ian Macdonald - first RPM release (2.1)