# Template file for 'atop' pkgname=atop version=2.1 revision=1 build_style=gnu-makefile build_options="systemd" makedepends="ncurses-devel zlib-devel" short_desc="A system and process level monitor" maintainer="Juan RP " license="GPL-2" homepage="http://www.atoptool.nl/" 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}-${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 }