# Maintainer: Natanael Copa pkgname=atop pkgver=2.3.0 pkgrel=0 pkgdesc="Resource-specific view of processes" url="http://www.atoptool.nl/" arch="all" license="GPL2+" depends="" makedepends="zlib-dev ncurses-dev linux-headers" subpackages="$pkgname-doc" source="http://www.atoptool.nl/download/atop-$pkgver.tar.gz atop-bb-compat.patch atop.initd" builddir="$srcdir"/$pkgname-$pkgver options="suid" prepare() { cd "$builddir" default_prepare sed -i -e '/^CFLAGS/s: = -O : += :' \ -e '/^LDFLAGS/s: = : += :' Makefile cp "$srcdir"/atop.initd atop.init chmod a+rx atop.init } build() { cd "$builddir" } package() { cd "$builddir" mkdir -p "$pkgdir"/var/log/atop "$pkgdir"/var/run "$pkgdir"/usr/sbin make -j1 DESTDIR="$pkgdir" \ INIPATH=/etc/init.d \ SCRPATH=/etc/periodic/daily \ sysvinstall rm -fr "$pkgdir"/etc/cron.d mv "$pkgdir"/etc/periodic/daily/atop.daily \ "$pkgdir"/etc/periodic/daily/atop } sha512sums="51cc868545403cab439a66cc38fe9324c6ff7537e6dad5271fa3f0a22cbad471b0e15186d4f78f0080129301ba0a59e0c1cd1cc694bc3a4f982118a8d0cae429 atop-2.3.0.tar.gz 165e5f17f1a752f8663a774d72476eac5693f93922b32fa198f09233ca6dfde2d6c63b10c31d0388ac9f10d210e7067787f30ef25e0ef9419a1520486f290b15 atop-bb-compat.patch 172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd"