This commit is contained in:
commit
2f24b61ae1
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
50
sysstat-6.0.2-config.diff
Normal file
50
sysstat-6.0.2-config.diff
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
--- build/CONFIG
|
||||||
|
+++ build/CONFIG
|
||||||
|
@@ -2,8 +2,8 @@
|
||||||
|
# (C) 2000 Sebastien GODARD (sysstat <at> wanadoo.fr)
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
-PREFIX = /usr/local
|
||||||
|
-SA_LIB_DIR = /usr/local/lib/sa
|
||||||
|
+PREFIX = /usr
|
||||||
|
+SA_LIB_DIR = /usr/lib/sa
|
||||||
|
SADC_PATH = ${SA_LIB_DIR}/sadc
|
||||||
|
SA_DIR = /var/log/sa
|
||||||
|
# Do not use ${PREFIX}/share/man by default: not necessarily in man path!
|
||||||
|
@@ -15,23 +15,31 @@
|
||||||
|
DFLAGS =
|
||||||
|
SAS_DFLAGS =
|
||||||
|
|
||||||
|
+ENABLE_NLS = y
|
||||||
|
+ENABLE_SMP_WRKARD = n
|
||||||
|
+
|
||||||
|
+ifeq ($(ENABLE_NLS),y)
|
||||||
|
# NLS (National Language Support)
|
||||||
|
REQUIRE_NLS = -DUSE_NLS -DPACKAGE=\"$(PACKAGE)\" -DLOCALEDIR=\"$(PREFIX)/share/locale\"
|
||||||
|
+endif
|
||||||
|
+
|
||||||
|
DFLAGS += $(REQUIRE_NLS)
|
||||||
|
|
||||||
|
+ifeq ($(ENABLE_SMP_WRKARD),y)
|
||||||
|
# Uncomment this to enable workaround for Linux kernel SMP race condition
|
||||||
|
-#SAS_DFLAGS += -DSMP_RACE
|
||||||
|
+SAS_DFLAGS += -DSMP_RACE
|
||||||
|
+endif
|
||||||
|
|
||||||
|
# Man page group
|
||||||
|
MAN_GROUP = root
|
||||||
|
|
||||||
|
# Crontab owner
|
||||||
|
-CRON_OWNER = adm
|
||||||
|
+CRON_OWNER = root
|
||||||
|
|
||||||
|
# Run-command directories
|
||||||
|
-RC_DIR = /etc/rc.d
|
||||||
|
-INIT_DIR = /etc/rc.d/init.d
|
||||||
|
-INITD_DIR = init.d
|
||||||
|
+RC_DIR = /etc/init.d
|
||||||
|
+INIT_DIR = /etc/init.d
|
||||||
|
+INITD_DIR = .
|
||||||
|
|
||||||
|
INSTALL_CRON = n
|
||||||
|
|
66
sysstat-6.0.2-hz.diff
Normal file
66
sysstat-6.0.2-hz.diff
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
--- common.c
|
||||||
|
+++ common.c
|
||||||
|
@@ -28,7 +28,7 @@
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For PAGE_SIZE (which may be itself a call to getpagesize()).
|
||||||
|
--- iostat.c
|
||||||
|
+++ iostat.c
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
#include "iostat.h"
|
||||||
|
#include "common.h"
|
||||||
|
--- mpstat.c
|
||||||
|
+++ mpstat.c
|
||||||
|
@@ -28,7 +28,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
#include "mpstat.h"
|
||||||
|
#include "common.h"
|
||||||
|
--- sa_common.c
|
||||||
|
+++ sa_common.c
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
#include "sa.h"
|
||||||
|
#include "common.h"
|
||||||
|
--- sadf.c
|
||||||
|
+++ sadf.c
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <errno.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
#include "sadf.h"
|
||||||
|
#include "sa.h"
|
||||||
|
--- sar.c
|
||||||
|
+++ sar.c
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <errno.h>
|
||||||
|
-#include <sys/param.h> /* for HZ */
|
||||||
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
||||||
|
|
||||||
|
#include "sa.h"
|
||||||
|
#include "common.h"
|
11
sysstat-6.0.2-mask.diff
Normal file
11
sysstat-6.0.2-mask.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- contrib/isag/isag
|
||||||
|
+++ contrib/isag/isag
|
||||||
|
@@ -267,7 +267,7 @@
|
||||||
|
|
||||||
|
# specific paths and programs
|
||||||
|
set sar_data_path "/var/log/sa"
|
||||||
|
-set sar_data_mask "sa\[0-9\]\[0-9\]"
|
||||||
|
+set sar_data_mask "sa.\[0-9\]\[0-9\]\[0-9\]\[0-9\]_\[0-9\]\[0-9\]_\[0-9\]\[0-9\]"
|
||||||
|
set sar "/usr/bin/sar"
|
||||||
|
#set sar "/home/sarrep/source/sysstat-3.3.6/sar"
|
||||||
|
|
89
sysstat-6.0.2-msg.diff
Normal file
89
sysstat-6.0.2-msg.diff
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
--- nls/af.po
|
||||||
|
+++ nls/af.po
|
||||||
|
@@ -144,8 +144,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "Kan nie data byskryf by die file nie\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "Kan nie data byskryf by die file nie (%s)\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- nls/de.po
|
||||||
|
+++ nls/de.po
|
||||||
|
@@ -142,8 +142,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "An diese Datei können keine Daten angehangen werden.\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "An die Datei %s k-Bönnen keine Daten angehangen werden: die Anzahl der Prozessoren ist ge-Aändert\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- nls/es.po
|
||||||
|
+++ nls/es.po
|
||||||
|
@@ -144,8 +144,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "No pueden añadirse datos a ese fichero\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "No pueden añadirse datos al fichero %s: el número de procesadores ha cambiado\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- nls/fr.po
|
||||||
|
+++ nls/fr.po
|
||||||
|
@@ -144,8 +144,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "Impossible d'ajouter des données à la fin de ce fichier\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "Impossible d'ajouter des données à la fin de fichier %s: le nombre de processeurs s'est changé\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- nls/it.po
|
||||||
|
+++ nls/it.po
|
||||||
|
@@ -142,8 +142,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "Impossibile aggiungere dati a quel file\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "Impossibile aggiungere dati a quel file (%s)\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- nls/pt.po
|
||||||
|
+++ nls/pt.po
|
||||||
|
@@ -144,8 +144,8 @@
|
||||||
|
"[ -d ] [ -F ] [ -I ] [ -V ]\n"
|
||||||
|
|
||||||
|
#: sadc.c:614
|
||||||
|
-msgid "Cannot append data to that file\n"
|
||||||
|
-msgstr "Não posso adicionar dados neste arquivo\n"
|
||||||
|
+msgid "Cannot append data to file %s: the number of processors has changed\n"
|
||||||
|
+msgstr "Não posso adicionar dados neste arquivo (%s)\n"
|
||||||
|
|
||||||
|
#: common.c:91
|
||||||
|
msgid "Cannot handle so many processors!\n"
|
||||||
|
--- sadc.c
|
||||||
|
+++ sadc.c
|
||||||
|
@@ -654,7 +654,7 @@
|
||||||
|
create_sa_file(ofd, ofile, file_stats_size, flags);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
- fprintf(stderr, _("Cannot append data to that file\n"));
|
||||||
|
+ fprintf(stderr, _("Cannot append data to file %s: the number of processors has changed\n"), ofile);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
11
sysstat-6.0.2-pagesize.diff
Normal file
11
sysstat-6.0.2-pagesize.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- sa.h
|
||||||
|
+++ sa.h
|
||||||
|
@@ -75,7 +75,7 @@
|
||||||
|
* kB -> number of pages.
|
||||||
|
* Page size depends on machine architecture (4 kB, 8 kB, 16 kB, 64 kB...)
|
||||||
|
*/
|
||||||
|
-#define PG(k) ((k) >> kb_shift)
|
||||||
|
+#define PG(k) ((k) / (getpagesize() / 1024))
|
||||||
|
|
||||||
|
/* Keywords */
|
||||||
|
#define K_XALL "XALL"
|
11
sysstat-6.0.2-sysconfdir.diff
Normal file
11
sysstat-6.0.2-sysconfdir.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ioconf.h
|
||||||
|
+++ ioconf.h
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#define MAX_BLKDEV 255
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#define IOCONF "/etc/sysconfig/sysstat.ioconf"
|
||||||
|
+#define IOCONF "/etc/sysstat/sysstat.ioconf"
|
||||||
|
|
||||||
|
#define K_NODEV "nodev"
|
||||||
|
|
85
sysstat-6.0.2.diff
Normal file
85
sysstat-6.0.2.diff
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
--- sa1.in
|
||||||
|
+++ sa1.in
|
||||||
|
@@ -2,16 +2,23 @@
|
||||||
|
# SA_LIB_DIR/sa1.sh
|
||||||
|
# (C) 1999-2005 Sebastien Godard (sysstat <at> wanadoo.fr)
|
||||||
|
#
|
||||||
|
+set -e
|
||||||
|
umask 0022
|
||||||
|
+DATE=`date +.%Y_%m_%d`
|
||||||
|
ENDIR=SA_LIB_DIR
|
||||||
|
+DFILE=/var/log/sa/sa${DATE}
|
||||||
|
+LOCKFILE=/var/log/sa/sadc.LOCK
|
||||||
|
+
|
||||||
|
cd ${ENDIR}
|
||||||
|
+lockfile -r2 -30 $LOCKFILE 2>/dev/null
|
||||||
|
+trap "rm -f $LOCKFILE" EXIT
|
||||||
|
+
|
||||||
|
if [ $# = 0 ]
|
||||||
|
then
|
||||||
|
# Note: Stats are written at the end of previous file *and* at the
|
||||||
|
# beginning of the new one (when there is a file rotation) only if
|
||||||
|
# outfile has been specified as '-' on the command line...
|
||||||
|
- exec ${ENDIR}/sadc -F -L 1 1 -
|
||||||
|
+ ${ENDIR}/sadc -F -L 1 1 ${DFILE}
|
||||||
|
else
|
||||||
|
- exec ${ENDIR}/sadc -F -L $* -
|
||||||
|
+ ${ENDIR}/sadc -F -L $* ${DFILE}
|
||||||
|
fi
|
||||||
|
-
|
||||||
|
--- sa2.in
|
||||||
|
+++ sa2.in
|
||||||
|
@@ -11,12 +11,26 @@
|
||||||
|
[ ${HISTORY} -gt 28 ] && HISTORY=28
|
||||||
|
S_TIME_FORMAT=ISO ; export S_TIME_FORMAT
|
||||||
|
umask 0022
|
||||||
|
-DATE=`date YESTERDAY +%d`
|
||||||
|
-RPT=SA_DIR/sar${DATE}
|
||||||
|
-ENDIR=BIN_DIR
|
||||||
|
-DFILE=SA_DIR/sa${DATE}
|
||||||
|
-[ -f "$DFILE" ] || exit 0
|
||||||
|
+ENDIR=/usr/bin
|
||||||
|
+LOCKFILE=/var/log/sa/sadc.LOCK
|
||||||
|
+
|
||||||
|
cd ${ENDIR}
|
||||||
|
-${ENDIR}/sar $* -f ${DFILE} > ${RPT}
|
||||||
|
-find SA_DIR \( -name 'sar??' -o -name 'sa??' \) -mtime +"${HISTORY}" -exec rm -f {} \;
|
||||||
|
+if ! lockfile -r6 -600 $LOCKFILE 2>/dev/null; then
|
||||||
|
+ if test `find $LOCKFILE -mmin +180 2>/dev/null`; then
|
||||||
|
+ rm -f $LOCKFILE
|
||||||
|
+ logger -p cron.alert "$0: detected an old lockfile \"$LOCKFILE\"."
|
||||||
|
+ fi
|
||||||
|
+fi
|
||||||
|
+trap "rm -f $LOCKFILE" EXIT
|
||||||
|
|
||||||
|
+#
|
||||||
|
+# look for sa files newer than 7 days
|
||||||
|
+#
|
||||||
|
+for DFILE in `find /var/log/sa -name 'sa.*' -mtime -"${HISTORY}"` ; do
|
||||||
|
+ RPT=/var/log/sa/sar.${DFILE##*.}
|
||||||
|
+ # if sa is newer than sar, regenerate sar
|
||||||
|
+ if test ! -e ${RPT} -o ${DFILE} -nt ${RPT} ; then
|
||||||
|
+ ${ENDIR}/sar $* -f ${DFILE} > ${RPT}
|
||||||
|
+ fi
|
||||||
|
+done
|
||||||
|
+find SA_DIR \( -name 'sar.????_??_??' -o -name 'sa.????_??_??' \) -mtime +"${HISTORY}" -exec rm -f {} \;
|
||||||
|
--- sar.c
|
||||||
|
+++ sar.c
|
||||||
|
@@ -1574,7 +1574,7 @@
|
||||||
|
else {
|
||||||
|
get_localtime(&loc_time);
|
||||||
|
snprintf(from_file, MAX_FILE_LEN,
|
||||||
|
- "%s/sa%02d", SA_DIR, loc_time.tm_mday);
|
||||||
|
+ "%s/sa.%d_%02d_%02d", SA_DIR, loc_time.tm_year + 1900, loc_time.tm_mon + 1, loc_time.tm_mday);
|
||||||
|
from_file[MAX_FILE_LEN - 1] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -1695,7 +1695,7 @@
|
||||||
|
((interval < 0) && !from_file[0] && !to_file[0])) {
|
||||||
|
get_localtime(&loc_time);
|
||||||
|
snprintf(from_file, MAX_FILE_LEN,
|
||||||
|
- "%s/sa%02d", SA_DIR, loc_time.tm_mday);
|
||||||
|
+ "%s/sa.%d_%02d_%02d", SA_DIR, loc_time.tm_year + 1900, loc_time.tm_mon + 1, loc_time.tm_mday);
|
||||||
|
from_file[MAX_FILE_LEN - 1] = '\0';
|
||||||
|
}
|
||||||
|
|
3
sysstat-6.0.2.tar.bz2
Normal file
3
sysstat-6.0.2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:de2190436605e04faa660eca5cc3dac8bc8a5062783a944b915ebe740712d339
|
||||||
|
size 120127
|
3
sysstat-SuSE.tar.gz
Normal file
3
sysstat-SuSE.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e866020230b4badfdb8e7a618e803b629b96d75712209157567a44855cf36208
|
||||||
|
size 1224
|
233
sysstat.changes
Normal file
233
sysstat.changes
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 7 14:21:48 CET 2006 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- added procmail to Requires [#226503]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 8 00:54:48 CEST 2006 - ro@suse.de
|
||||||
|
|
||||||
|
- fix one more place with HZ usage
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 28 13:38:24 CEST 2006 - olh@suse.de
|
||||||
|
|
||||||
|
- sysstat bootscript depends on boot.rootfsck, optional $local_fs (#181972)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 25 19:58:40 CEST 2006 - mjancar@suse.cz
|
||||||
|
|
||||||
|
- use sysconf(_SC_CLK_TCK) to get correct HZ (#168604)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 24 21:47:23 CET 2006 - anicka@suse.cz
|
||||||
|
|
||||||
|
- fix bug in sysstat-6.0.2.diff [#155329]
|
||||||
|
- package file /usr/lib/sa/sa2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 26 14:20:13 CET 2006 - mjancar@suse.cz
|
||||||
|
|
||||||
|
- prune old files (#136703)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:41:59 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 18:56:41 CET 2006 - majncar@suse.cz
|
||||||
|
|
||||||
|
- update to 6.0.2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 13 20:31:16 CEST 2005 - mjancar@suse.cz
|
||||||
|
|
||||||
|
- update to 6.0.1
|
||||||
|
- split patches by subject
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 9 10:49:54 CEST 2005 - aj@suse.de
|
||||||
|
|
||||||
|
- Compile with GCC4.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 24 15:35:20 CET 2005 - mjancar@suse.cz
|
||||||
|
|
||||||
|
- remove .cron from the crontab filename (#64225)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 03 11:20:11 CEST 2004 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- update to 5.0.6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 09 08:07:09 CEST 2004 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- update to 5.0.5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 30 07:50:55 CEST 2004 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- changed isag data file mask according to sa file naming
|
||||||
|
(patch mask, bug #41691)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 30 13:50:57 CEST 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 16:12:09 CET 2004 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- update to version 5.0.1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 12 20:41:28 CEST 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- fix for systems with more than 32 cpus and a lot of memory
|
||||||
|
[bug #30561] patch bumper
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 20 18:05:44 CEST 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- added LSB comments to init script [bug #24541]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 23 18:19:45 CEST 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- do not log running /usr/lib/sa/sa1 every 10 minutes [bug #27253]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 2 00:59:13 CEST 2003 - ro@suse.de
|
||||||
|
|
||||||
|
- remove unpackaged files from buildroot
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 10 11:05:14 CET 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- added isag script and man page
|
||||||
|
- be more descriptive in an error message (patch msg)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 27 11:46:59 CET 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- require $local_fs for start in init script [bug #24400]
|
||||||
|
(patch init)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 17 17:52:00 CET 2003 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- updated to version 4.0.7
|
||||||
|
- moved helper binary and scripts
|
||||||
|
back to /usr/lib [bug #21713]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 06 16:51:29 CEST 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 6 10:31:20 CEST 2002 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Don't start programs in post-install
|
||||||
|
- Add PreRequiers for insserv and fillup
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 7 10:16:38 CET 2002 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- another %{_libdir} fix
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 31 11:29:26 CET 2002 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- update to 4.0.3
|
||||||
|
- refined scripts sa1 and sa2 to handle lockfile safe
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 18 12:39:45 CET 2002 - tcrhak@suse.cz
|
||||||
|
|
||||||
|
- used macros %{_lib} and %{_libdir}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 18 18:24:13 CET 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 11:53:41 CEST 2001 - adostal@suse.cz
|
||||||
|
|
||||||
|
- update to version 4.0.1
|
||||||
|
- update patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 15 14:44:39 CEST 2001 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- add file lock for scripts sa1 and sa2 for fix bug #7861
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 3 15:15:16 CEST 2001 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- use sa.%Y_%m_%d format for sar command
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 15 20:59:03 CEST 2001 - schwab@suse.de
|
||||||
|
|
||||||
|
- Use getpagesize() instead of PAGE_SHIFT.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 12 10:27:11 CEST 2001 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- update on 4.0.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 21 14:29:19 CET 2001 - schwab@suse.de
|
||||||
|
|
||||||
|
- Use getpagesize() instead of PAGE_SHIFT.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 7 08:36:24 CET 2000 - nadvornik@suse.de
|
||||||
|
|
||||||
|
- fixed init script
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 6 14:03:56 CET 2000 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed sa1 and sa2 scripts
|
||||||
|
- fixed cron files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 2 15:14:03 CET 2000 - smid@suse.cz
|
||||||
|
|
||||||
|
- new version 3.3.2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 19 13:47:07 CEST 2000 - smid@suse.cz
|
||||||
|
|
||||||
|
- new version 3.3.1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 8 08:59:28 CEST 2000 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed clean section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 5 09:52:10 CEST 2000 - smid@suse.cz
|
||||||
|
|
||||||
|
- upgrade to 3.2
|
||||||
|
- buildroot added
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 18 22:42:06 CET 2000 - nashif@suse.de
|
||||||
|
|
||||||
|
- Initial release (Version 2.2)
|
||||||
|
|
213
sysstat.spec
Normal file
213
sysstat.spec
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
#
|
||||||
|
# spec file for package sysstat (Version 6.0.2)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: sysstat
|
||||||
|
Version: 6.0.2
|
||||||
|
Release: 36
|
||||||
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
|
Requires: gnuplot
|
||||||
|
Requires: procmail
|
||||||
|
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
|
||||||
|
Source1: %{name}-SuSE.tar.gz
|
||||||
|
Patch0: %{name}-%{version}.diff
|
||||||
|
Patch1: %{name}-%{version}-msg.diff
|
||||||
|
Patch2: %{name}-%{version}-mask.diff
|
||||||
|
Patch3: %{name}-%{version}-config.diff
|
||||||
|
Patch4: %{name}-%{version}-pagesize.diff
|
||||||
|
Patch5: %{name}-%{version}-sysconfdir.diff
|
||||||
|
Patch6: %{name}-%{version}-hz.diff
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Sebastien Godard <sebastien.godard@wanadoo.fr>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -a 1
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch2
|
||||||
|
%patch3
|
||||||
|
%patch4
|
||||||
|
%patch5
|
||||||
|
%patch6
|
||||||
|
|
||||||
|
%build
|
||||||
|
make CFLAGS="$RPM_OPT_FLAGS -Wall" LFLAGS="-L. -lsyscom"
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d $RPM_BUILD_ROOT/usr/lib \
|
||||||
|
$RPM_BUILD_ROOT/usr/bin \
|
||||||
|
$RPM_BUILD_ROOT%{_mandir}/man1 \
|
||||||
|
$RPM_BUILD_ROOT%{_mandir}/man8 \
|
||||||
|
$RPM_BUILD_ROOT/var/log/sa
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT \
|
||||||
|
MAN1_DIR=%{_mandir}/man1 \
|
||||||
|
MAN8_DIR=%{_mandir}/man8 \
|
||||||
|
SYSCONFIG_DIR=%{_sysconfdir}/sysstat \
|
||||||
|
install
|
||||||
|
cp -a SuSE/* $RPM_BUILD_ROOT
|
||||||
|
cp contrib/isag/isag $RPM_BUILD_ROOT/usr/bin
|
||||||
|
cp contrib/isag/isag.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||||
|
rm -rf $RPM_BUILD_ROOT/usr/doc/sysstat*
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||||||
|
ln -fs ../../etc/init.d/sysstat $RPM_BUILD_ROOT/usr/sbin/rcsysstat
|
||||||
|
%{find_lang} %{name}
|
||||||
|
|
||||||
|
%preun
|
||||||
|
rm -f /var/log/sa/*
|
||||||
|
|
||||||
|
%post
|
||||||
|
%{fillup_and_insserv sysstat}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%{insserv_cleanup}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%attr(644,root,root) %config(noreplace) /etc/sysstat/sysstat.cron
|
||||||
|
%attr(644,root,root) %config(noreplace) /etc/sysstat/sysstat.ioconf
|
||||||
|
%attr(755,root,root) /etc/init.d/sysstat
|
||||||
|
%doc CHANGES COPYING CREDITS FAQ README TODO sysstat-%{version}.lsm
|
||||||
|
%doc %{_mandir}/man?/*
|
||||||
|
%dir /etc/sysstat
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_sbindir}/*
|
||||||
|
/usr/lib/sa
|
||||||
|
/usr/lib/sa/sa2
|
||||||
|
/var/log/sa
|
||||||
|
|
||||||
|
%changelog -n sysstat
|
||||||
|
* 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)
|
Loading…
Reference in New Issue
Block a user