updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / collectl / PKGBUILD
blobe1d527ee83ea344ff2c96bb6eefa5fa0d0926318
1 # Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
2 # Contributor: Marco Lima <cipparello gmail com>
3 pkgname=collectl
4 pkgver=3.6.0
5 _smallver=3
6 pkgrel=2
7 pkgdesc="Collect Process and System Information"
8 url="http://collectl.sourceforge.net/"
9 license=('PerlArtistic' 'GPL')
10 arch=('i686' 'x86_64')
11 depends=('perl')
12 optdepends=('pciutils: list PCI devices'
13             'ethtool: display net cards settings'
14             'dmidecode: Desktop Management Interface data'
15             'inetutils: hostname command')
16 backup=(etc/collectl.conf etc/conf.d/collectl.conf)
17 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver-$_smallver/$pkgname-$pkgver.src.tar.gz"
18         collectl
19         collectl.conf.d)
20 options=('docs')
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
25   # don't install daemon scripts
26   sed -i 's|INITDIR=$DESTDIR/$ETCDIR/init.d|INITDIR=$ETCDIR/init.d|' INSTALL || return 1
27   echo 'rm -rf $INITDIR' >> INSTALL || return 1
29   DESTDIR=${pkgdir} ./INSTALL || return 1
31   # instead, install the init script & configuration file
32   install -D -m755 ../collectl "$pkgdir/"etc/rc.d/collectl
33   install -D -m644 ../collectl.conf.d "$pkgdir/"etc/conf.d/collectl.conf
37 md5sums=('2976e8f75adcc273655f0760687e6d2c'
38          'a7d921b01a1cc84f21a6d7527c78783b'
39          '60519647aaffde84aaced48acf4e4323')