atop: move to usr/bin; remove systemd support.

This commit is contained in:
Juan RP 2015-06-03 10:05:00 +02:00
parent 7ecb0d318e
commit 3686c32f60

View file

@ -1,9 +1,8 @@
# Template file for 'atop'
pkgname=atop
version=2.1
revision=1
revision=2
build_style=gnu-makefile
build_options="systemd"
makedepends="ncurses-devel zlib-devel"
short_desc="A system and process level monitor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -14,15 +13,12 @@ checksum=39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f
pre_install() {
sed -i '/chown/d' Makefile
vmkdir usr/sbin
sed -i 's,sbin,bin,g' Makefile
}
post_install() {
do_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} install
vsv atop
# Remove unused stuff.
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
fi
vsv atop
}