2007-01-16 00:38:35 +01:00
|
|
|
#
|
2007-06-12 18:39:41 +02:00
|
|
|
# spec file for package sysstat (Version 7.1.5)
|
2007-01-16 00:38:35 +01:00
|
|
|
#
|
2007-02-08 08:57:37 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:38:35 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2007-02-09 01:19:08 +01:00
|
|
|
# norootforbuild
|
2007-01-16 00:38:35 +01:00
|
|
|
|
|
|
|
Name: sysstat
|
2007-06-12 18:39:41 +02:00
|
|
|
Version: 7.1.5
|
|
|
|
Release: 1
|
2007-01-16 00:38:35 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2007-06-05 16:39:59 +02:00
|
|
|
BuildRequires: findutils sed
|
2007-01-16 00:38:35 +01:00
|
|
|
Requires: procmail
|
2007-02-08 08:57:37 +01:00
|
|
|
Requires: gettext
|
2007-01-16 00:38:35 +01:00
|
|
|
Autoreqprov: on
|
|
|
|
Group: System/Monitoring
|
|
|
|
License: GNU General Public License (GPL)
|
|
|
|
URL: http://perso.wanadoo.fr/sebastien.godard/
|
|
|
|
Summary: Sar and Iostat Commands for Linux
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2007-06-05 16:39:59 +02:00
|
|
|
Source1: %{name}-SUSE.tar.bz2
|
2007-02-08 08:57:37 +01:00
|
|
|
Patch0: %{name}-%{version}-sa1sa2lock.diff
|
2007-01-16 00:38:35 +01:00
|
|
|
Patch1: %{name}-%{version}-msg.diff
|
2007-03-15 01:50:14 +01:00
|
|
|
Patch2: %{name}-%{version}-pagesize.diff
|
|
|
|
Patch3: %{name}-%{version}-sysconfdir.diff
|
2007-01-16 00:38:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Sar and Iostat commands for Linux. The sar command collects and reports
|
|
|
|
system activity information. The iostat command reports CPU statistics
|
|
|
|
and I/O statistics for TTY devices and disks. The information
|
|
|
|
collected by sar and iostat can be saved in a binary file for future
|
|
|
|
inspection. Both commands now support SMP machines when displaying CPU
|
|
|
|
utilization.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-18 01:00:01 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sebastien Godard <sebastien.godard@wanadoo.fr>
|
|
|
|
|
|
|
|
%package isag
|
|
|
|
Requires: sysstat = %{version}
|
|
|
|
Requires: gnuplot tk
|
|
|
|
Group: System/Monitoring
|
|
|
|
Autoreqprov: on
|
2007-05-04 00:05:19 +02:00
|
|
|
Summary: Interactive System Activity Grapher for sysstat
|
2007-04-18 01:00:01 +02:00
|
|
|
|
|
|
|
%description isag
|
2007-05-04 00:05:19 +02:00
|
|
|
This package includes the isag command, which graphically displays the
|
|
|
|
system activity data stored in a binary data produced by a sar command
|
|
|
|
from a sysstat package.
|
2007-04-18 01:00:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:38:35 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sebastien Godard <sebastien.godard@wanadoo.fr>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a 1
|
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
|
|
|
|
%build
|
2007-04-18 01:00:01 +02:00
|
|
|
export conf_dir=%{_sysconfdir}/sysstat
|
|
|
|
export sa_lib_dir=%{_libdir}/sa
|
2007-03-15 01:50:14 +01:00
|
|
|
export cron_owner=root
|
|
|
|
export LFLAGS="-L. -lsyscom"
|
|
|
|
%configure \
|
|
|
|
--enable-nls \
|
|
|
|
--disable-smp-race \
|
|
|
|
--enable-man-group
|
|
|
|
make
|
2007-06-05 16:39:59 +02:00
|
|
|
# change /usr/lib to /usr/lib64 when needed
|
|
|
|
if [ "%{_libdir}" != "/usr/lib" ]; then
|
|
|
|
find SUSE -type f -exec sed -i 's:/usr/lib:%{_libdir}:' {} \;
|
|
|
|
fi
|
2007-01-16 00:38:35 +01:00
|
|
|
|
|
|
|
%install
|
2007-03-15 01:50:14 +01:00
|
|
|
install -d $RPM_BUILD_ROOT/var/log/sa
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2007-06-05 16:39:59 +02:00
|
|
|
cp -a SUSE/* $RPM_BUILD_ROOT
|
2007-03-15 01:50:14 +01:00
|
|
|
cp contrib/isag/isag $RPM_BUILD_ROOT%{_bindir}
|
2007-01-16 00:38:35 +01:00
|
|
|
cp contrib/isag/isag.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/doc/sysstat*
|
2007-03-15 01:50:14 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
2007-06-05 16:39:59 +02:00
|
|
|
ln -fs /etc/init.d/sysstat $RPM_BUILD_ROOT%{_sbindir}/rcsysstat
|
2007-01-16 00:38:35 +01:00
|
|
|
%{find_lang} %{name}
|
|
|
|
|
|
|
|
%preun
|
2007-06-05 16:39:59 +02:00
|
|
|
%{stop_on_removal sysstat}
|
2007-01-16 00:38:35 +01:00
|
|
|
rm -f /var/log/sa/*
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_and_insserv sysstat}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%clean
|
2007-03-15 01:50:14 +01:00
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
2007-01-16 00:38:35 +01:00
|
|
|
|
2007-06-05 16:39:59 +02:00
|
|
|
%files -f %name.lang
|
2007-01-16 00:38:35 +01:00
|
|
|
%defattr(-,root,root)
|
2007-03-15 01:50:14 +01:00
|
|
|
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysstat/sysstat.cron
|
|
|
|
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysstat/sysstat.ioconf
|
|
|
|
%attr(755,root,root) %{_sysconfdir}/init.d/sysstat
|
2007-01-16 00:38:35 +01:00
|
|
|
%doc CHANGES COPYING CREDITS FAQ README TODO sysstat-%{version}.lsm
|
2007-04-18 01:00:01 +02:00
|
|
|
%doc %{_mandir}/man1/iostat*
|
|
|
|
%doc %{_mandir}/man1/mpstat*
|
2007-05-04 00:05:19 +02:00
|
|
|
%doc %{_mandir}/man1/pidstat*
|
2007-04-18 01:00:01 +02:00
|
|
|
%doc %{_mandir}/man1/sadf*
|
|
|
|
%doc %{_mandir}/man1/sar*
|
|
|
|
%doc %{_mandir}/man8/*
|
2007-02-08 08:57:37 +01:00
|
|
|
%dir %{_sysconfdir}/sysstat
|
|
|
|
%{_sysconfdir}/sysstat/sysstat
|
2007-04-18 01:00:01 +02:00
|
|
|
%{_bindir}/iostat
|
|
|
|
%{_bindir}/mpstat
|
2007-05-04 00:05:19 +02:00
|
|
|
%{_bindir}/pidstat
|
2007-04-18 01:00:01 +02:00
|
|
|
%{_bindir}/sadf
|
|
|
|
%{_bindir}/sar
|
|
|
|
%{_sbindir}/rcsysstat
|
|
|
|
%{_libdir}/sa
|
2007-01-16 00:38:35 +01:00
|
|
|
/var/log/sa
|
|
|
|
|
2007-04-18 01:00:01 +02:00
|
|
|
%files isag
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/isag
|
|
|
|
%doc %{_mandir}/man1/isag*
|
|
|
|
|
2007-03-15 01:50:14 +01:00
|
|
|
%changelog
|
2007-06-12 18:39:41 +02:00
|
|
|
* Tue Jun 12 2007 - prusnak@suse.cz
|
|
|
|
- updated to 7.1.5
|
|
|
|
- dropped obsolete patches
|
|
|
|
* filelen.patch (included in update)
|
2007-06-05 16:39:59 +02:00
|
|
|
* Tue Jun 05 2007 - prusnak@suse.cz
|
|
|
|
- fixed init-script and crontab files on 64bit archs [#280096]
|
2007-05-04 00:05:19 +02:00
|
|
|
* Wed May 02 2007 - prusnak@suse.cz
|
|
|
|
- update to 7.1.4:
|
|
|
|
* added new command "pidstat" aimed at displaying per-process statistics
|
|
|
|
* added -N option to iostat
|
|
|
|
- option enables the user to query any device-mapper devices for their
|
|
|
|
registered device name
|
|
|
|
* fixed a small memory leak in readp_uptime() function
|
|
|
|
* stricter syntax checking for iostat
|
|
|
|
* sar -dp now displays the device as "devM-N" (instead of "nodev") when it
|
|
|
|
can't find its real name in sysstat.ioconf file
|
|
|
|
* iostat -t now also takes into account the value of environment
|
|
|
|
variable S_TIME_FORMAT
|
|
|
|
* manual pages now take into account variables defined by "configure"
|
|
|
|
* isag now takes into account variables defined by "configure"
|
|
|
|
* "configure" now determines automatically whether workaround for SMP race
|
|
|
|
is needed (SMP kernels 2.2.15 and older only)
|
2007-04-18 01:00:01 +02:00
|
|
|
* Tue Apr 17 2007 - prusnak@suse.cz
|
|
|
|
- splitted isag utility to separate subpackage sysstat-isag
|
|
|
|
* users will not be forced to install gnuplot (and X stuff) if
|
|
|
|
they do not want to
|
|
|
|
* Tue Apr 17 2007 - prusnak@suse.cz
|
|
|
|
- update to 7.1.3
|
|
|
|
* fixed bug in hotplug cpu support
|
|
|
|
* better support for keeping sar logfiles for more than one month
|
|
|
|
* code cleaned
|
2007-03-15 01:50:14 +01:00
|
|
|
* Tue Mar 13 2007 - prusnak@suse.cz
|
|
|
|
- update to 7.1.2
|
|
|
|
* autoconf support
|
|
|
|
* better hotplug CPU support
|
|
|
|
- no longer assuming that CPU#0 can never be disabled
|
|
|
|
* sar datafiles format changed to become more compact
|
2007-02-09 01:19:08 +01:00
|
|
|
* Thu Feb 08 2007 - prusnak@suse.cz
|
|
|
|
- changed spec file to build with #norootforbuild
|
2007-02-08 08:57:37 +01:00
|
|
|
* Wed Feb 07 2007 - prusnak@suse.cz
|
|
|
|
- update to 7.0.4
|
|
|
|
* fixed incorrect NFS client and server statistics for sar
|
|
|
|
* added hotplug CPU support to sar and mpstat
|
|
|
|
* added iostat NFS statistics
|
|
|
|
- dropped obsoleted patches:
|
|
|
|
* sysstat-6.0.2-hz.diff
|
2007-01-16 00:38:35 +01:00
|
|
|
* Thu Dec 07 2006 - prusnak@suse.cz
|
|
|
|
- added procmail to Requires [#226503]
|
|
|
|
* Tue Aug 08 2006 - ro@suse.de
|
|
|
|
- fix one more place with HZ usage
|
|
|
|
* Fri Jul 28 2006 - olh@suse.de
|
|
|
|
- sysstat bootscript depends on boot.rootfsck, optional $local_fs (#181972)
|
|
|
|
* Tue Apr 25 2006 - mjancar@suse.cz
|
|
|
|
- use sysconf(_SC_CLK_TCK) to get correct HZ (#168604)
|
|
|
|
* Fri Mar 24 2006 - anicka@suse.cz
|
|
|
|
- fix bug in sysstat-6.0.2.diff [#155329]
|
|
|
|
- package file /usr/lib/sa/sa2
|
|
|
|
* Thu Jan 26 2006 - mjancar@suse.cz
|
|
|
|
- prune old files (#136703)
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Thu Jan 12 2006 - majncar@suse.cz
|
|
|
|
- update to 6.0.2
|
|
|
|
* Thu Oct 13 2005 - mjancar@suse.cz
|
|
|
|
- update to 6.0.1
|
|
|
|
- split patches by subject
|
|
|
|
* Sat Apr 09 2005 - aj@suse.de
|
|
|
|
- Compile with GCC4.
|
|
|
|
* Thu Feb 24 2005 - mjancar@suse.cz
|
|
|
|
- remove .cron from the crontab filename (#64225)
|
|
|
|
* Fri Sep 03 2004 - tcrhak@suse.cz
|
|
|
|
- update to 5.0.6
|
|
|
|
* Mon Aug 09 2004 - tcrhak@suse.cz
|
|
|
|
- update to 5.0.5
|
|
|
|
* Wed Jun 30 2004 - tcrhak@suse.cz
|
|
|
|
- changed isag data file mask according to sa file naming
|
|
|
|
(patch mask, bug #41691)
|
|
|
|
* Tue Mar 30 2004 - tcrhak@suse.cz
|
|
|
|
- fixed insecure tmp file handling in isag (bug #35103, patch isag)
|
|
|
|
- do not install crontab directly into /etc/cron.d, but create/remove
|
|
|
|
symlink threre during start/stop in the init script (bug #33279)
|
|
|
|
- added rcsysstat
|
|
|
|
- fixed sa1 and sa2
|
|
|
|
* Wed Feb 18 2004 - tcrhak@suse.cz
|
|
|
|
- update to version 5.0.1
|
|
|
|
* Fri Sep 12 2003 - tcrhak@suse.cz
|
|
|
|
- fix for systems with more than 32 cpus and a lot of memory
|
|
|
|
[bug #30561] patch bumper
|
|
|
|
* Wed Aug 20 2003 - tcrhak@suse.cz
|
|
|
|
- added LSB comments to init script [bug #24541]
|
|
|
|
* Wed Jul 23 2003 - tcrhak@suse.cz
|
|
|
|
- do not log running /usr/lib/sa/sa1 every 10 minutes [bug #27253]
|
|
|
|
* Mon Jun 02 2003 - ro@suse.de
|
|
|
|
- remove unpackaged files from buildroot
|
|
|
|
* Mon Mar 10 2003 - tcrhak@suse.cz
|
|
|
|
- added isag script and man page
|
|
|
|
- be more descriptive in an error message (patch msg)
|
|
|
|
* Thu Feb 27 2003 - tcrhak@suse.cz
|
|
|
|
- require $local_fs for start in init script [bug #24400]
|
|
|
|
(patch init)
|
|
|
|
* Mon Feb 17 2003 - tcrhak@suse.cz
|
|
|
|
- updated to version 4.0.7
|
|
|
|
- moved helper binary and scripts
|
|
|
|
back to /usr/lib [bug #21713]
|
|
|
|
* Fri Sep 06 2002 - tcrhak@suse.cz
|
|
|
|
- bug #18901:
|
|
|
|
- use proper libdir (lib/lib64) in cron, scripts and man pages
|
|
|
|
- in /etc/init.d/sysstat: no option b, test exit
|
|
|
|
status of sadc, remove lockfile and be verbose
|
|
|
|
* Tue Aug 06 2002 - kukuk@suse.de
|
|
|
|
- Don't start programs in post-install
|
|
|
|
- Add PreRequiers for insserv and fillup
|
|
|
|
* Thu Feb 07 2002 - tcrhak@suse.cz
|
|
|
|
- another %%{_libdir} fix
|
|
|
|
* Thu Jan 31 2002 - tcrhak@suse.cz
|
|
|
|
- update to 4.0.3
|
|
|
|
- refined scripts sa1 and sa2 to handle lockfile safe
|
|
|
|
* Fri Jan 18 2002 - tcrhak@suse.cz
|
|
|
|
- used macros %%{_lib} and %%{_libdir}
|
|
|
|
* Tue Dec 18 2001 - tcrhak@suse.cz
|
|
|
|
- update to version 4.0.2
|
|
|
|
- fixed bug #12664
|
|
|
|
- added dependecy on gnuplot
|
|
|
|
- adapted spec to use fillup_and_insserv/insserv_cleanup staff
|
|
|
|
* Mon Aug 20 2001 - adostal@suse.cz
|
|
|
|
- update to version 4.0.1
|
|
|
|
- update patch
|
|
|
|
* Tue May 15 2001 - pblaha@suse.cz
|
|
|
|
- add file lock for scripts sa1 and sa2 for fix bug #7861
|
|
|
|
* Thu May 03 2001 - pblaha@suse.cz
|
|
|
|
- use sa.%%Y_%%m_%%d format for sar command
|
|
|
|
* Sun Apr 15 2001 - schwab@suse.de
|
|
|
|
- Use getpagesize() instead of PAGE_SHIFT.
|
|
|
|
* Thu Apr 12 2001 - pblaha@suse.cz
|
|
|
|
- update on 4.0.0
|
|
|
|
* Wed Mar 21 2001 - schwab@suse.de
|
|
|
|
- Use getpagesize() instead of PAGE_SHIFT.
|
|
|
|
* Thu Dec 07 2000 - nadvornik@suse.de
|
|
|
|
- fixed init script
|
|
|
|
* Wed Dec 06 2000 - nadvornik@suse.cz
|
|
|
|
- fixed sa1 and sa2 scripts
|
|
|
|
- fixed cron files
|
|
|
|
* Sat Dec 02 2000 - smid@suse.cz
|
|
|
|
- new version 3.3.2
|
|
|
|
* Thu Oct 19 2000 - smid@suse.cz
|
|
|
|
- new version 3.3.1
|
|
|
|
* Thu Jun 08 2000 - nadvornik@suse.cz
|
|
|
|
- fixed clean section
|
|
|
|
* Fri May 05 2000 - smid@suse.cz
|
|
|
|
- upgrade to 3.2
|
|
|
|
- buildroot added
|
|
|
|
* Tue Jan 18 2000 - nashif@suse.de
|
|
|
|
- Initial release (Version 2.2)
|