2004-09-09 12:54:06 +00:00
|
|
|
|
Name: sysstat
|
2004-09-09 12:59:26 +00:00
|
|
|
|
Version: 4.0.7
|
2004-09-09 12:59:42 +00:00
|
|
|
|
Release: 3.rhl9.1
|
2004-09-09 12:55:52 +00:00
|
|
|
|
Summary: The sar and iostat system monitoring commands.
|
2004-09-09 12:54:06 +00:00
|
|
|
|
License: GPL
|
|
|
|
|
Group: Applications/System
|
2004-09-09 12:59:26 +00:00
|
|
|
|
URL: http://perso.wanadoo.fr/sebastien.godard/
|
2004-09-09 12:55:38 +00:00
|
|
|
|
Source: http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source1: sysstat.crond
|
2004-09-09 12:54:55 +00:00
|
|
|
|
Source2: sysstat.crondaily
|
2004-09-09 12:55:38 +00:00
|
|
|
|
Patch0: sysstat-4.0.1-config.patch
|
|
|
|
|
Patch1: sysstat-4.0.1-prevday.patch
|
2004-09-09 12:55:32 +00:00
|
|
|
|
Patch2: sysstat-3.3.5-fixutilization.patch
|
2004-09-09 12:55:52 +00:00
|
|
|
|
Patch3: sysstat-4.0.1-verbose.patch
|
2004-09-09 12:59:42 +00:00
|
|
|
|
Patch4: sysstat-4.0.7-lib64.patch
|
|
|
|
|
Patch5: sysstat-4.0.1-longifnames.patch
|
|
|
|
|
Patch6: sysstat-4.0.7-maxparts.patch
|
2004-09-09 12:59:26 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
2004-09-09 12:54:06 +00:00
|
|
|
|
Requires: kernel >= 2.2.16-21
|
2004-09-09 12:55:38 +00:00
|
|
|
|
Prereq: sh-utils textutils grep fileutils /etc/cron.d
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 12:55:52 +00:00
|
|
|
|
This package provides the sar and iostat commands for Linux. Sar and
|
|
|
|
|
iostat enable system monitoring of disk, network, and other IO
|
|
|
|
|
activity.
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2004-09-09 12:54:55 +00:00
|
|
|
|
%patch0 -p1 -b .config
|
2004-09-09 12:58:35 +00:00
|
|
|
|
#patch1 -p1 -b .prevday
|
|
|
|
|
#patch2 -p1 -b .fixutilization
|
2004-09-09 12:55:52 +00:00
|
|
|
|
%patch3 -p1 -b .verbose
|
2004-09-09 12:59:42 +00:00
|
|
|
|
%patch4 -p1 -b .lib64
|
|
|
|
|
%patch5 -p1 -b .longifnames
|
|
|
|
|
%patch6 -p1 -b .maxparts
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 12:59:26 +00:00
|
|
|
|
# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and
|
|
|
|
|
# send the upstream maintainer a patch.
|
2004-09-09 12:59:42 +00:00
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\""
|
|
|
|
|
make CFLAGS="$CFLAGS" PREFIX=%{_prefix} LIB_DIR=%{_libdir} 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
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2004-09-09 12:54:55 +00:00
|
|
|
|
rm -rf %{buildroot}
|
2004-09-09 12:59:26 +00:00
|
|
|
|
|
|
|
|
|
%makeinstall PREFIX=%{_prefix} LIB_DIR=%{_libdir} MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir}
|
|
|
|
|
#make install MAN_DIR=%{_mandir}
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
2004-09-09 12:55:38 +00:00
|
|
|
|
mkdir -p %{buildroot}/etc/{cron.daily,cron.d}
|
2004-09-09 12:59:26 +00:00
|
|
|
|
|
2004-09-09 12:59:42 +00:00
|
|
|
|
install sysstat.crond %{buildroot}/etc/cron.d/sysstat
|
2004-09-09 12:58:48 +00:00
|
|
|
|
#install %{SOURCE2} %{buildroot}/etc/cron.daily/sysstat
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
2004-09-09 12:59:26 +00:00
|
|
|
|
# sysstat makefiles install the docs in the wrong place, blow them away
|
|
|
|
|
rm -f %{buildroot}/usr/share/doc/*
|
|
|
|
|
|
2004-09-09 12:55:32 +00:00
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
2004-09-09 12:59:26 +00:00
|
|
|
|
#FIXME: Make sure this trigger is actually correct and relevant still.
|
2004-09-09 12:54:55 +00:00
|
|
|
|
%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
|
2004-09-09 12:59:42 +00:00
|
|
|
|
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /etc/crontab.tmp.$$ && \
|
|
|
|
|
mv /etc/crontab.tmp.$$ /etc/crontab && chmod 644 /etc/crontab
|
2004-09-09 12:54:06 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
|
# Remove sa logs if removing sysstat completely
|
|
|
|
|
rm -f /var/log/sa/*
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%clean
|
2004-09-09 12:54:55 +00:00
|
|
|
|
rm -rf %{buildroot}
|
2004-09-09 12:54:06 +00:00
|
|
|
|
|
2004-09-09 12:55:32 +00:00
|
|
|
|
%files -f %{name}.lang
|
2004-09-09 12:54:06 +00:00
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 12:55:32 +00:00
|
|
|
|
%doc CHANGES COPYING CREDITS README TODO
|
2004-09-09 12:55:38 +00:00
|
|
|
|
%config(noreplace) /etc/cron.d/sysstat
|
2004-09-09 12:58:48 +00:00
|
|
|
|
#config(noreplace) /etc/cron.daily/sysstat
|
2004-09-09 12:54:06 +00:00
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/sa
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
/var/log/sa
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 12:59:42 +00:00
|
|
|
|
* Tue Feb 24 2004 Nils Philippsen <nphilipp@redhat.com> 4.0.7-3.rhl9.1
|
|
|
|
|
- fix insecure tmp files in scripts (#78212)
|
|
|
|
|
- fix dealing with lib64 case of cron.d file
|
|
|
|
|
- fix paths on multilib arches
|
|
|
|
|
- handle interface names longer than 5 characters (#92052)
|
|
|
|
|
- increase maximum number of partitions (#110822)
|
|
|
|
|
|
2004-09-09 12:59:26 +00:00
|
|
|
|
* Wed Feb 19 2003 Bill Nottingham <notting@redhat.com> 4.0.7-3
|
|
|
|
|
- fix paths on multilib arches (#82913)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Sat Nov 23 2002 Mike A. Harris <mharris@redhat.com> 4.0.7-1
|
|
|
|
|
- Updated to new upstream version 4.0.7
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2002 Mike A. Harris <mharris@redhat.com> 4.0.5-7
|
|
|
|
|
- Fixed files installed in /usr/doc to be put in correct place
|
|
|
|
|
|
|
|
|
|
* Tue Oct 8 2002 Mike A. Harris <mharris@redhat.com> 4.0.5-6
|
|
|
|
|
- All-arch rebuild
|
|
|
|
|
|
2004-09-09 12:59:18 +00:00
|
|
|
|
* Tue Jul 23 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 4.0.5-3
|
|
|
|
|
- Rebuild
|
|
|
|
|
|
2004-09-09 12:59:07 +00:00
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 17 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 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 <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 22 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 4.0.4-1
|
|
|
|
|
- 4.0.4
|
|
|
|
|
- Add an explicit requires on gnuplot (#63474)
|
|
|
|
|
|
2004-09-09 12:58:48 +00:00
|
|
|
|
* Fri Apr 12 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 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)
|
|
|
|
|
|
2004-09-09 12:58:35 +00:00
|
|
|
|
* Thu Feb 28 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 4.0.3-1
|
|
|
|
|
- 4.0.3
|
|
|
|
|
|
|
|
|
|
* Wed Feb 27 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 4.0.2-3
|
|
|
|
|
- Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 12 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 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
|
2004-09-09 12:56:24 +00:00
|
|
|
|
|
2004-09-09 12:55:52 +00:00
|
|
|
|
* Mon Aug 13 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- be more verbose about which files are corrupt (#47122)
|
|
|
|
|
|
2004-09-09 12:55:38 +00:00
|
|
|
|
* Mon Jul 2 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- run sa1 from cron.d to fix run-parts interaction problem (#37733)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- upgrade to 4.0.1 stable release
|
|
|
|
|
|
|
|
|
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- Bump release + rebuild.
|
|
|
|
|
|
2004-09-09 12:55:32 +00:00
|
|
|
|
* Sun Apr 8 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- explicitly set safe umask (#35142)
|
|
|
|
|
|
|
|
|
|
* Fri Mar 9 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- iostat disk utilization was off by a factor of 10.
|
|
|
|
|
|
|
|
|
|
* Wed Feb 14 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 3.3.5 brings us full support for kernel IO stats
|
|
|
|
|
|
|
|
|
|
* Tue Jan 30 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 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
|
|
|
|
|
|
2004-09-09 12:54:55 +00:00
|
|
|
|
* Tue Jan 17 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- iostat man page fixes
|
|
|
|
|
|
|
|
|
|
* Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 3.3.3, crontab fixes
|
|
|
|
|
|
|
|
|
|
* Fri Dec 29 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- fix prereqs
|
|
|
|
|
|
2004-09-09 12:54:11 +00:00
|
|
|
|
* Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- crontab entry was still incorrect. Fixed.
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- make sure disk accounting is enabled to fix iostat -l, -p (#16268)
|
|
|
|
|
- crontab entries were missing the user (root) to run as (#18212)
|
|
|
|
|
|
2004-09-09 12:54:06 +00:00
|
|
|
|
* Tue Aug 22 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- enable IO accounting now that kernel supports it
|
|
|
|
|
|
|
|
|
|
* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- fix buildrooting (#16271)
|
|
|
|
|
|
|
|
|
|
* Tue Aug 08 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- bugfixes in 3.2.4 cause our inclusion. :)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 29 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 3.2.3 fixes SMP race condition
|
|
|
|
|
|
|
|
|
|
* Tue Jun 20 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- FHS macros
|
|
|
|
|
- 3.2.2
|
|
|
|
|
|
|
|
|
|
* Fri May 26 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 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 <ian@caliban.org>
|
|
|
|
|
- upgraded to 2.2
|
|
|
|
|
|
|
|
|
|
* Fri Oct 29 1999 Ian Macdonald <ian@caliban.org>
|
|
|
|
|
- first RPM release (2.1)
|