diff options
Diffstat (limited to 'community/atop/PKGBUILD')
-rw-r--r-- | community/atop/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/community/atop/PKGBUILD b/community/atop/PKGBUILD new file mode 100644 index 000000000..2d1f99a9a --- /dev/null +++ b/community/atop/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 92271 2013-06-03 13:35:40Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: John Gerritse <john.gerritse@gmail.com> + +pkgname=atop +pkgver=2.0.2 +pkgrel=1 +pkgdesc="A system and process level monitor." +arch=(i686 x86_64) +url="http://www.atoptool.nl/" +license=('GPL') +depends=('ncurses' 'sh' 'zlib') +source=(http://www.atoptool.nl/download/atop-${pkgver}.tar.gz) +md5sums=('f1dd1984584f9635712cb7196e25620c') + +build() { + cd $srcdir/$pkgname-${pkgver/_/-} + sed -i 's#root ##' atop.cron + make +} + +package() { + cd $srcdir/$pkgname-${pkgver/_/-} + make DESTDIR=$pkgdir INIPATH=/etc/rc.d install + rm -f $pkgdir/etc/cron.d/atop + install -dm0755 $pkgdir/etc/cron.daily + mv $pkgdir/etc/atop/atop.daily $pkgdir/etc/cron.daily/atop + install -Dm0644 atop.service $pkgdir/usr/lib/systemd/system/atop.service + rm -rf $pkgdir/etc/rc.d +} |