void-packages/srcpkgs/atop/template

29 lines
757 B
Text
Raw Normal View History

2013-03-08 10:17:56 +00:00
# Template file for 'atop'
pkgname=atop
2015-01-28 16:53:19 +00:00
version=2.1
revision=1
2013-03-08 10:17:56 +00:00
build_style=gnu-makefile
2014-10-13 10:43:53 +00:00
build_options="systemd"
2013-03-08 10:17:56 +00:00
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/"
2015-01-28 16:53:19 +00:00
distfiles="http://www.atoptool.nl/download/atop-${version}-1.tar.gz"
checksum=39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f
2013-03-08 10:17:56 +00:00
2014-10-13 10:43:53 +00:00
pre_install() {
sed -i '/chown/d' Makefile
2015-01-28 16:53:19 +00:00
vmkdir usr/sbin
2014-10-13 10:43:53 +00:00
}
2013-03-08 10:17:56 +00:00
post_install() {
# Remove unused stuff.
2015-01-28 16:53:19 +00:00
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
2014-08-21 09:32:04 +00:00
if [ "$build_option_systemd" ]; then
# systemd service
vinstall atop.service 644 usr/lib/systemd/system
fi
2014-10-13 10:43:53 +00:00
vsv atop
2013-03-08 10:17:56 +00:00
}