summaryrefslogtreecommitdiff
path: root/package/sysstat
diff options
context:
space:
mode:
Diffstat (limited to 'package/sysstat')
-rw-r--r--package/sysstat/Config.in11
-rw-r--r--package/sysstat/Makefile35
-rw-r--r--package/sysstat/files/CONFIG45
-rw-r--r--package/sysstat/ipkg/sysstat.control4
-rw-r--r--package/sysstat/patches/patch-Makefile79
5 files changed, 174 insertions, 0 deletions
diff --git a/package/sysstat/Config.in b/package/sysstat/Config.in
new file mode 100644
index 000000000..21746c145
--- /dev/null
+++ b/package/sysstat/Config.in
@@ -0,0 +1,11 @@
+config ADK_PACKAGE_SYSSTAT
+ prompt "sysstat........................... System monitoring and performance analysis utilities"
+ tristate
+ default n
+ help
+ The sysstat package contains utilities to monitor system performance and
+ usage activity. Sysstat contains various utilities, common to many commercial
+ Unixes, and tools you can schedule via cron to collect and historize
+ performance and activity data.
+
+ http://perso.wanadoo.fr/sebastien.godard/
diff --git a/package/sysstat/Makefile b/package/sysstat/Makefile
new file mode 100644
index 000000000..99f57eb9e
--- /dev/null
+++ b/package/sysstat/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= sysstat
+PKG_VERSION:= 7.0.3
+PKG_RELEASE:= 3
+PKG_MD5SUM:= 732904b006a0224b0a9ce4d312946277
+MASTER_SITES:= http://perso.orange.fr/sebastien.godard/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,SYSSTAT,sysstat,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+do-configure:
+ ${CP} ./files/CONFIG ${WRKBUILD}/build/
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_SYSSTAT}/usr/lib/sa
+ ${INSTALL_BIN} ${WRKINST}/usr/lib/sa/sa1 ${IDIR_SYSSTAT}/usr/lib/sa
+ ${INSTALL_BIN} ${WRKINST}/usr/lib/sa/sa2 ${IDIR_SYSSTAT}/usr/lib/sa
+ ${INSTALL_BIN} ${WRKINST}/usr/lib/sa/sadc ${IDIR_SYSSTAT}/usr/lib/sa
+ ${INSTALL_DIR} ${IDIR_SYSSTAT}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/sar ${IDIR_SYSSTAT}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/sadf ${IDIR_SYSSTAT}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/iostat ${IDIR_SYSSTAT}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/mpstat ${IDIR_SYSSTAT}/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/sysstat/files/CONFIG b/package/sysstat/files/CONFIG
new file mode 100644
index 000000000..0119429cb
--- /dev/null
+++ b/package/sysstat/files/CONFIG
@@ -0,0 +1,45 @@
+# Configuration file for sysstat
+# (C) 2000-2006 Sebastien GODARD (sysstat <at> wanadoo.fr)
+
+# Directories
+PREFIX = /usr
+SA_LIB_DIR = /usr/lib/sa
+SADC_PATH = ${SA_LIB_DIR}/sadc
+SA_DIR = /var/log/sa
+MAN_DIR = /usr/man
+CLEAN_SA_DIR = n
+YESTERDAY =
+HISTORY = 7
+
+DFLAGS =
+SAS_DFLAGS =
+
+ENABLE_NLS = n
+ENABLE_SMP_WRKARD = n
+
+ifeq ($(ENABLE_NLS),y)
+# NLS (National Language Support)
+REQUIRE_NLS = -DUSE_NLS -DPACKAGE=\"$(PACKAGE)\" -DLOCALEDIR=\"$(PREFIX)/share/locale\"
+endif
+ifdef REQUIRE_NLS
+ DFLAGS += $(REQUIRE_NLS)
+endif
+
+ifeq ($(ENABLE_SMP_WRKARD),y)
+# Uncomment this to enable workaround for Linux kernel SMP race condition
+SAS_DFLAGS += -DSMP_RACE
+endif
+
+# Man page group
+MAN_GROUP = man
+
+# Crontab owner
+CRON_OWNER = root
+
+# Run-command directories
+RC_DIR = /etc
+INIT_DIR = /etc/init.d
+INITD_DIR = init.d
+
+INSTALL_CRON = n
+
diff --git a/package/sysstat/ipkg/sysstat.control b/package/sysstat/ipkg/sysstat.control
new file mode 100644
index 000000000..a79cea22c
--- /dev/null
+++ b/package/sysstat/ipkg/sysstat.control
@@ -0,0 +1,4 @@
+Package: sysstat
+Priority: optional
+Section: utilities
+Description: Utilities for system monitoring and performance analysis
diff --git a/package/sysstat/patches/patch-Makefile b/package/sysstat/patches/patch-Makefile
new file mode 100644
index 000000000..21cc0e994
--- /dev/null
+++ b/package/sysstat/patches/patch-Makefile
@@ -0,0 +1,79 @@
+$Id$
+
+ removes manpages, some chown-stuff and the cron-stuff (no need for it)
+ fixes cross-compilation
+
+--- sysstat-7.0.3.orig/Makefile Sun Oct 22 16:27:03 2006
++++ sysstat-7.0.3/Makefile Fri May 18 18:31:06 2007
+@@ -7,7 +7,7 @@ VERSION = 7.0.3
+ include build/CONFIG
+
+ # Compiler to use
+-CC = gcc
++CC ?= gcc
+ # Other commands
+ SED = sed
+ CHMOD = chmod
+@@ -37,8 +37,9 @@ NLS_DIR = $(PREFIX)/share/locale
+ SYSCONFIG_DIR = /etc/sysconfig
+
+ # Compiler flags
+-CFLAGS = -Wall -Wstrict-prototypes -pipe -O2 -fno-strength-reduce
+-LFLAGS = -s
++CFLAGS ?= -O2 -pipe
++CFLAGS += -Wall -Wstrict-prototypes -fno-strength-reduce
++LFLAGS = -s ${LDFLAGS}
+ # SAS_DFLAGS may also contain SMP_RACE definition
+ SAS_DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\"
+
+@@ -179,10 +180,8 @@ endif
+ .PHONY: clean distclean config install install_base install_all uninstall \
+ uninstall_base uninstall_all dist bdist
+
+-install_base: all man/sadc.8 man/sar.1 man/sadf.1 man/sa1.8 man/sa2.8 man/iostat.1
++install_base: all
+ mkdir -p $(DESTDIR)$(SA_LIB_DIR)
+- mkdir -p $(DESTDIR)$(MAN1_DIR)
+- mkdir -p $(DESTDIR)$(MAN8_DIR)
+ mkdir -p $(DESTDIR)$(SA_DIR)
+ ifeq ($(CLEAN_SA_DIR),y)
+ rm -f $(DESTDIR)$(SA_DIR)/sa??
+@@ -191,19 +190,12 @@ endif
+ mkdir -p $(DESTDIR)$(DOC_DIR)
+ mkdir -p $(DESTDIR)$(SYSCONFIG_DIR)
+ install -m 755 sa1 $(DESTDIR)$(SA_LIB_DIR)
+- install -m 644 $(MANGRPARG) man/sa1.8 $(DESTDIR)$(MAN8_DIR)
+ install -m 755 sa2 $(DESTDIR)$(SA_LIB_DIR)
+- install -m 644 $(MANGRPARG) man/sa2.8 $(DESTDIR)$(MAN8_DIR)
+ install -m 755 sadc $(DESTDIR)$(SA_LIB_DIR)
+- install -m 644 $(MANGRPARG) man/sadc.8 $(DESTDIR)$(MAN8_DIR)
+ install -m 755 sar $(DESTDIR)$(BIN_DIR)
+- install -m 644 $(MANGRPARG) man/sar.1 $(DESTDIR)$(MAN1_DIR)
+ install -m 755 sadf $(DESTDIR)$(BIN_DIR)
+- install -m 644 $(MANGRPARG) man/sadf.1 $(DESTDIR)$(MAN1_DIR)
+ install -m 755 iostat $(DESTDIR)$(BIN_DIR)
+- install -m 644 $(MANGRPARG) man/iostat.1 $(DESTDIR)$(MAN1_DIR)
+ install -m 755 mpstat $(DESTDIR)$(BIN_DIR)
+- install -m 644 $(MANGRPARG) man/mpstat.1 $(DESTDIR)$(MAN1_DIR)
+ install -m 644 sysstat.ioconf $(DESTDIR)$(SYSCONFIG_DIR);
+ install -m 644 CHANGES $(DESTDIR)$(DOC_DIR)
+ install -m 644 COPYING $(DESTDIR)$(DOC_DIR)
+@@ -243,18 +235,6 @@ ifdef REQUIRE_NLS
+ endif
+
+ install_all: install_base
+- $(CHOWN) $(CRON_OWNER) $(DESTDIR)$(SA_DIR)
+- if [ -d $(DESTDIR)/etc/cron.d ]; then \
+- install -m 644 sysstat.crond $(DESTDIR)/etc/cron.d/sysstat; \
+- elif [ -d $(DESTDIR)/etc/cron.hourly -a -d $(DESTDIR)/etc/cron.daily ]; then \
+- install -m 755 sysstat.cron.hourly $(DESTDIR)/etc/cron.hourly/sysstat; \
+- install -m 755 sysstat.cron.daily $(DESTDIR)/etc/cron.daily/sysstat; \
+- else \
+- su $(CRON_OWNER) -c "crontab -l > /tmp/crontab-$(CRON_OWNER).save"; \
+- $(CP) -a /tmp/crontab-$(CRON_OWNER).save ./crontab-$(CRON_OWNER).`date '+%Y%m%d.%H%M%S'`.save; \
+- echo "USER PREVIOUS CRONTAB SAVED IN CURRENT DIRECTORY (USING .save SUFFIX)."; \
+- su $(CRON_OWNER) -c "crontab crontab"; \
+- fi
+ if [ -d $(DESTDIR)$(INIT_DIR) ]; then \
+ install -m 755 sysstat $(DESTDIR)$(INIT_DIR)/sysstat; \
+ if [ -x $(CHKCONFIG) ]; then \