summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-15 05:03:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-15 05:03:15 (GMT)
commit20a5899db76084e118e8ec9f990dc58d1c467718 (patch)
tree3bc9d1e416930825baa8b7cb61174f48391de47b /abs/extra-testing
parent5c25e9a0fec9e9f14249d29b87b3af5d0d5d239f (diff)
downloadlinhes_pkgbuild-20a5899db76084e118e8ec9f990dc58d1c467718.zip
linhes_pkgbuild-20a5899db76084e118e8ec9f990dc58d1c467718.tar.gz
linhes_pkgbuild-20a5899db76084e118e8ec9f990dc58d1c467718.tar.bz2
sysstat: add to repo
ref FS#146
Diffstat (limited to 'abs/extra-testing')
-rw-r--r--abs/extra-testing/sysstat/PKGBUILD35
-rw-r--r--abs/extra-testing/sysstat/sysstat21
2 files changed, 56 insertions, 0 deletions
diff --git a/abs/extra-testing/sysstat/PKGBUILD b/abs/extra-testing/sysstat/PKGBUILD
new file mode 100644
index 0000000..12f5afe
--- /dev/null
+++ b/abs/extra-testing/sysstat/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD,v 1.24 2009/05/25 09:04:21 sergej Exp $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Martin Devera <devik@cdi.cz>
+
+pkgname=sysstat
+pkgver=9.0.3
+pkgrel=1
+pkgdesc="A collection of performance monitoring tools"
+arch=('i686' 'x86_64')
+url="http://pagesperso-orange.fr/sebastien.godard/"
+license=('GPL')
+depends=(glibc)
+options=(zipman)
+source=(http://pagesperso-orange.fr/sebastien.godard/$pkgname-$pkgver.tar.gz
+ sysstat)
+md5sums=('0b464951596db934418259737cf50a31'
+ 'ad46159609a2c13b4a46b506ff847bf6')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-install-isag \
+ --disable-man-group
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+
+ install -D -m 644 sysstat.sysconfig $pkgdir/etc/sysstat/sysstat && \
+ install -D -m 744 sysstat.cron.hourly $pkgdir/etc/cron.hourly/sysstat && \
+ install -D -m 744 sysstat.cron.daily $pkgdir/etc/cron.daily/sysstat && \
+ install -D -m 755 $srcdir/sysstat $pkgdir/etc/rc.d/sysstat || return 1
+
+ chown -R root:root $pkgdir
+}
diff --git a/abs/extra-testing/sysstat/sysstat b/abs/extra-testing/sysstat/sysstat
new file mode 100644
index 0000000..d8e312a
--- /dev/null
+++ b/abs/extra-testing/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