summaryrefslogtreecommitdiff
path: root/community/sysstat
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/sysstat
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/sysstat')
-rw-r--r--community/sysstat/PKGBUILD38
-rw-r--r--community/sysstat/sysstat21
2 files changed, 59 insertions, 0 deletions
diff --git a/community/sysstat/PKGBUILD b/community/sysstat/PKGBUILD
new file mode 100644
index 000000000..bd1d73fcd
--- /dev/null
+++ b/community/sysstat/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 42299 2011-03-16 10:38:19Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Martin Devera <devik@cdi.cz>
+
+pkgname=sysstat
+pkgver=10.0.0
+pkgrel=1
+pkgdesc="a collection of performance monitoring tools (iostat,isag,mpstat,pidstat,sadf,sar)"
+arch=('i686' 'x86_64')
+url="http://pagesperso-orange.fr/sebastien.godard/"
+license=('GPL')
+depends=('glibc')
+optdepends=('tk: to use isag'
+ 'gnuplot: to use isag'
+ 'lm_sensors')
+options=(zipman)
+source=(http://pagesperso-orange.fr/sebastien.godard/$pkgname-$pkgver.tar.gz
+ sysstat)
+md5sums=('accc17cc1fa855be6b27def77dd92a0d'
+ 'ad46159609a2c13b4a46b506ff847bf6')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-install-isag \
+ --disable-man-group
+ make
+ make DESTDIR=$pkgdir install
+
+ install -D -m 644 sysstat.sysconfig $pkgdir/etc/sysstat/sysstat
+ install -D -m 744 cron/sysstat.cron.hourly $pkgdir/etc/cron.hourly/sysstat
+ install -D -m 744 cron/sysstat.cron.daily $pkgdir/etc/cron.daily/sysstat
+ install -D -m 755 $srcdir/sysstat $pkgdir/etc/rc.d/sysstat
+
+ chown -R root:root $pkgdir
+}
diff --git a/community/sysstat/sysstat b/community/sysstat/sysstat
new file mode 100644
index 000000000..d8e312a18
--- /dev/null
+++ b/community/sysstat/sysstat
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Writing SysStat restart record"
+ /usr/lib/sa/sadc -L -F -
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ fi
+ ;;
+ stop)
+ ;;
+ *)
+ echo "usage: $0 {start|stop}"
+esac
+exit 0