summaryrefslogtreecommitdiffstats
path: root/abs/extra/sysstat/PKGBUILD
blob: 12f5afe23a56fd2181285ae4fd77c3a8b17ccff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}