1 # Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
2 # Contributor: Marco Lima <cipparello gmail com>
7 pkgdesc="Collect Process and System Information"
8 url="http://collectl.sourceforge.net/"
9 license=('PerlArtistic' 'GPL')
10 arch=('i686' 'x86_64')
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"
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')