atop: update to 2.1.

This commit is contained in:
Juan RP 2015-01-28 17:53:19 +01:00
parent e3478d76c6
commit ee40615e1d

View file

@ -1,26 +1,25 @@
# Template file for 'atop'
pkgname=atop
version=2.0.2
wrksrc=atop-${version}
revision=3
version=2.1
revision=1
build_style=gnu-makefile
build_options="systemd"
replaces="runit-void<20141013_2"
makedepends="ncurses-devel zlib-devel"
short_desc="A system and process level monitor"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.atoptool.nl/"
distfiles="http://www.atoptool.nl/download/$pkgname-$version.tar.gz"
checksum=a620dbe0de7c7ee004949b201bed27559a8dd6cbdee651c7a3e15fc584723409
distfiles="http://www.atoptool.nl/download/atop-${version}-1.tar.gz"
checksum=39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f
pre_install() {
sed -i '/chown/d' Makefile
vmkdir usr/sbin
}
post_install() {
# Remove unused stuff.
rm -f ${DESTDIR}/usr/bin/atop{,sar}-2.0
rm -rf ${DESTDIR}/etc/{init,logrotate}.d ${DESTDIR}/var
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
if [ "$build_option_systemd" ]; then
# systemd service
vinstall atop.service 644 usr/lib/systemd/system