blob: b0f8ccfde899e9732ea5f2de9de6532906acb109 (
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
|
# $Id: PKGBUILD 79031 2012-10-29 09:19:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: John Gerritse <john.gerritse@gmail.com>
pkgname=atop
pkgver=2.0_1
pkgrel=1
pkgdesc="A system and process level monitor."
arch=(i686 x86_64 'mips64el')
url="http://www.atoptool.nl/"
license=('GPL')
depends=('ncurses' 'sh' 'zlib')
source=(http://www.atoptool.nl/download/atop-${pkgver/_/-}.tar.gz)
md5sums=('6867ea2211edaf8140b94130470d646b')
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
sed -i 's|/etc/atop/atop.daily|/etc/cron.daily/atop|g' $pkgdir/etc/rc.d/atop
install -Dm0644 atop.service $pkgdir/usr/lib/systemd/system/atop.service
}
|