auto-import changelog data from sysstat-3.3.3-3.src.rpm
Wed 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
This commit is contained in:
parent
6e3a36cae5
commit
28d7962e5d
@ -1 +1 @@
|
|||||||
sysstat-3.2.4.tar.gz
|
sysstat-3.3.3.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
8922b08c55fc1746e96e6fdd4b8c6de7 sysstat-3.2.4.tar.gz
|
f6269656b3603b90257f786679a7aabe sysstat-3.3.3.tar.gz
|
||||||
|
4
sysstat.crondaily
Normal file
4
sysstat.crondaily
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# generate a daily summary of process accounting.
|
||||||
|
/usr/lib/sa/sa2 -A &
|
66
sysstat.spec
66
sysstat.spec
@ -1,14 +1,17 @@
|
|||||||
Name: sysstat
|
Name: sysstat
|
||||||
Version: 3.2.4
|
Version: 3.3.3
|
||||||
Release: 5
|
Release: 3
|
||||||
Summary: Includes the sar and iostat system monitoring commands.
|
Summary: Includes the sar and iostat system monitoring commands.
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: http://metalab.unc.edu/pub/Linux/system/status/%{name}-%{version}.tar.gz
|
Source: http://metalab.unc.edu/pub/Linux/system/status/%{name}-%{version}.tar.gz
|
||||||
Patch0: sysstat-3.2.4-buildroot.patch
|
Source1: sysstat.cronhourly
|
||||||
Patch1: sysstat-3.2.4-accounting.patch
|
Source2: sysstat.crondaily
|
||||||
|
Patch0: sysstat-3.3.3-config.patch
|
||||||
|
Patch1: sysstat-3.3.3-fixman.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||||
Requires: kernel >= 2.2.16-21
|
Requires: kernel >= 2.2.16-21
|
||||||
|
Prereq: sh-utils textutils grep fileutils
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides the sar and iostat commands for the Linux
|
This package provides the sar and iostat commands for the Linux
|
||||||
@ -17,44 +20,24 @@ They enable system monitoring of disk, network, and other IO activity.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .buildroot
|
%patch0 -p1 -b .config
|
||||||
%patch1 -p1 -b .accounting
|
%patch1 -p1 -b .fixman
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
|
make CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
rm -rf %{buildroot}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,man8}
|
make install MAN_DIR=%{_mandir}
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/log/sa
|
|
||||||
|
|
||||||
make install PREFIX=%{_prefix} MAN_DIR=%{_mandir} DESTDIR=${RPM_BUILD_ROOT}
|
mkdir -p %{buildroot}/etc/{cron.daily,cron.hourly}
|
||||||
install -m 644 crontab $RPM_BUILD_ROOT%{_libdir}/sa/crontab.sa
|
install %{SOURCE1} %{buildroot}/etc/cron.hourly/sysstat
|
||||||
|
install %{SOURCE2} %{buildroot}/etc/cron.daily/sysstat
|
||||||
|
|
||||||
%post
|
%triggerpostun -- sysstat <= 3.3.3-1
|
||||||
if [ `id -u` = "0" -a "$1" = "1" ]; then
|
# earlier versions of sysstat had crontabs done in a bad way. fix it.
|
||||||
cat >> /etc/crontab <<EOF
|
if [ `id -u` = "0" -a "$1" -ge "2" ]; then
|
||||||
# sysstat
|
|
||||||
0 * * * 0,6 root %{_libdir}/sa/sa1 600 6 &
|
|
||||||
5 19 * * * root %{_libdir}/sa/sa2 -A &
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerpostun -- sysstat <= 3.2.4-4
|
|
||||||
# earlier versions of sysstat had an incorrect crontab entry. fix it.
|
|
||||||
if [ `id -u` = "0" -a "$1" = "2" ]; then
|
|
||||||
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
|
|
||||||
cat >> /tmp/crontab.$$ <<EOF
|
|
||||||
# sysstat
|
|
||||||
0 * * * 0,6 root %{_libdir}/sa/sa1 600 6 &
|
|
||||||
5 19 * * * root %{_libdir}/sa/sa2 -A &
|
|
||||||
EOF
|
|
||||||
mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
|
||||||
if [ `id -u` = "0" -a "$1" = "0" ]; then
|
|
||||||
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
|
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
|
||||||
mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab
|
mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab
|
||||||
fi
|
fi
|
||||||
@ -66,11 +49,13 @@ if [ "$1" = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES COPYING CREDITS README patch/
|
%doc CHANGES COPYING CREDITS README
|
||||||
|
/etc/cron.hourly/sysstat
|
||||||
|
/etc/cron.daily/sysstat
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/sa
|
%{_libdir}/sa
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
@ -79,6 +64,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/locale/*/LC_MESSAGES/*
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
||||||
|
|
||||||
* Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
|
* Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
|
||||||
- crontab entry was still incorrect. Fixed.
|
- crontab entry was still incorrect. Fixed.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user