auto-import changelog data from sysstat-3.2.4-3.src.rpm
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)
This commit is contained in:
parent
d87c452345
commit
ebf312191e
@ -0,0 +1 @@
|
|||||||
|
sysstat-3.2.4.tar.gz
|
100
sysstat.spec
Normal file
100
sysstat.spec
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
Name: sysstat
|
||||||
|
Version: 3.2.4
|
||||||
|
Release: 3
|
||||||
|
Summary: Includes the sar and iostat system monitoring commands.
|
||||||
|
License: GPL
|
||||||
|
Group: Applications/System
|
||||||
|
Source: http://metalab.unc.edu/pub/Linux/system/status/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: sysstat-3.2.4-buildroot.patch
|
||||||
|
Patch1: sysstat-3.2.4-accounting.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||||
|
Requires: kernel >= 2.2.16-21
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides the sar and iostat commands for the Linux
|
||||||
|
operating system, similar to their traditional UNIX counterparts.
|
||||||
|
They enable system monitoring of disk, network, and other IO activity.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1 -b .buildroot
|
||||||
|
%patch1 -p1 -b .accounting
|
||||||
|
|
||||||
|
%build
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,man8}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/var/log/sa
|
||||||
|
|
||||||
|
make install PREFIX=%{_prefix} MAN_DIR=%{_mandir} DESTDIR=${RPM_BUILD_ROOT}
|
||||||
|
install -m 644 crontab $RPM_BUILD_ROOT%{_libdir}/sa/crontab.sa
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ `id -u` = "0" -a "$1" = "1" ]; then
|
||||||
|
cat >> /etc/crontab <<EOF
|
||||||
|
# sysstat
|
||||||
|
0 * * * 0,6 %{_libdir}/sa/sa1 600 6 &
|
||||||
|
5 19 * * * %{_libdir}/sa/sa2 -A &
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ `id -u` = "0" -a "$1" = "0" ]; then
|
||||||
|
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
|
||||||
|
mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab
|
||||||
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
|
# Remove sa logs if removing sysstat completely
|
||||||
|
rm -f /var/log/sa/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc CHANGES COPYING CREDITS README patch/
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/sa
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
/var/log/sa
|
||||||
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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)
|
Loading…
Reference in New Issue
Block a user