# $Id: PKGBUILD 61857 2012-01-09 10:22:30Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Martin Devera pkgname=sysstat pkgver=10.0.3 pkgrel=2 pkgdesc="a collection of performance monitoring tools (iostat,isag,mpstat,pidstat,sadf,sar)" arch=('i686' 'x86_64' 'mips64el') url="http://pagesperso-orange.fr/sebastien.godard/" license=('GPL') depends=('lm_sensors') optdepends=('tk: to use isag' 'gnuplot: to use isag') options=(zipman) backup=('etc/conf.d/sysstat' 'etc/conf.d/sysstat.ioconf') source=(http://pagesperso-orange.fr/sebastien.godard/$pkgname-$pkgver.tar.gz sysstat) md5sums=('0e1ed5200f31f69a3b90ff1e81c07745' '3ce41ebf7330aba01e70b38658afed1f') build() { cd $srcdir/$pkgname-$pkgver conf_dir=/etc/conf.d ./configure --prefix=/usr \ --enable-yesterday \ --mandir=/usr/share/man \ --enable-install-isag \ --disable-man-group make } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install 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 }