summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/sysstat.in22
-rw-r--r--rules/sysstat.make88
2 files changed, 110 insertions, 0 deletions
diff --git a/rules/sysstat.in b/rules/sysstat.in
new file mode 100644
index 000000000..3acdd1b13
--- /dev/null
+++ b/rules/sysstat.in
@@ -0,0 +1,22 @@
+## SECTION=debug_tools
+
+config SYSSTAT
+ tristate
+ prompt "sysstat"
+ help
+ The sysstat package contains the following system
+ performance tools:
+
+ * sar - collects and reports system activity information;
+ * iostat - reports CPU utilization and I/O statistics for disks;
+ * mpstat - reports global and per-processor statistics;
+ * pidstat - reports statistics for Linux tasks (processes);
+ * sadf - displays data collected by sar in various formats.
+
+ The statistics reported by sar concern I/O transfer rates,
+ paging activity, process-related activities, interrupts,
+ network activity, memory and swap space utilization, CPU
+ utilization, kernel activities and TTY statistics, among
+ others. Both UP and SMP machines are fully supported.
+
+ Homepage: http://pagesperso-orange.fr/sebastien.godard/
diff --git a/rules/sysstat.make b/rules/sysstat.make
new file mode 100644
index 000000000..45ebf8f2a
--- /dev/null
+++ b/rules/sysstat.make
@@ -0,0 +1,88 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SYSSTAT) += sysstat
+
+#
+# Paths and names
+#
+SYSSTAT_VERSION := 9.0.1
+SYSSTAT := sysstat-$(SYSSTAT_VERSION)
+SYSSTAT_SUFFIX := tar.gz
+SYSSTAT_URL := http://pagesperso-orange.fr/sebastien.godard/$(SYSSTAT).$(SYSSTAT_SUFFIX)
+SYSSTAT_SOURCE := $(SRCDIR)/$(SYSSTAT).$(SYSSTAT_SUFFIX)
+SYSSTAT_DIR := $(BUILDDIR)/$(SYSSTAT)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SYSSTAT_SOURCE):
+ @$(call targetinfo)
+ @$(call get, SYSSTAT)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SYSSTAT_PATH := PATH=$(CROSS_PATH)
+SYSSTAT_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+SYSSTAT_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sysstat.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, sysstat)
+ @$(call install_fixup, sysstat,PACKAGE,sysstat)
+ @$(call install_fixup, sysstat,PRIORITY,optional)
+ @$(call install_fixup, sysstat,VERSION,$(SYSSTAT_VERSION))
+ @$(call install_fixup, sysstat,SECTION,base)
+ @$(call install_fixup, sysstat,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, sysstat,DEPENDS,)
+ @$(call install_fixup, sysstat,DESCRIPTION,missing)
+
+ @$(call install_copy, sysstat, 0, 0, 0755, /var/log/sa)
+
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/bin/iostat)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/bin/mpstat)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/bin/pidstat)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/bin/sadf)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/bin/sar)
+
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/lib/sa/sa1)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/lib/sa/sa2)
+ @$(call install_copy, sysstat, 0, 0, 0755, -, /usr/lib/sa/sadc)
+
+ @$(call install_finish, sysstat)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+sysstat_clean:
+ rm -rf $(STATEDIR)/sysstat.*
+ rm -rf $(PKGDIR)/sysstat_*
+ rm -rf $(SYSSTAT_DIR)
+
+# vim: syntax=make