# $Id: PKGBUILD 104646 2014-01-24 07:28:17Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Martin Devera pkgname=sysstat pkgver=10.2.1 pkgrel=1 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.service lib64-fix.patch) md5sums=('039dcd235dfcfb3d4acc0a05730f9512' '12ba479c606620193e8b7c6e982d5088' '7ffa6bf990609d85367070f71b40a34b') prepare() { cd $srcdir/$pkgname-$pkgver patch -p1 <$srcdir/lib64-fix.patch autoreconf } 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 -j1 } 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 chown -R root:root $pkgdir install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service mv $pkgdir/usr/bin/nfsiostat $pkgdir/usr/bin/$pkgname-nfsiostat }