void-packages/srcpkgs/atop/template

30 lines
804 B
Plaintext
Raw Normal View History

2013-03-08 11:17:56 +01:00
# Template file for 'atop'
pkgname=atop
2014-04-25 18:47:16 +02:00
version=2.0.2
wrksrc=atop-${version}
2014-10-13 12:43:53 +02:00
revision=3
2013-03-08 11:17:56 +01:00
build_style=gnu-makefile
2014-10-13 12:43:53 +02:00
build_options="systemd"
replaces="runit-void<20141013_2"
2013-03-08 11:17:56 +01: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/"
2014-04-25 18:47:16 +02:00
distfiles="http://www.atoptool.nl/download/$pkgname-$version.tar.gz"
checksum=a620dbe0de7c7ee004949b201bed27559a8dd6cbdee651c7a3e15fc584723409
2013-03-08 11:17:56 +01:00
2014-10-13 12:43:53 +02:00
pre_install() {
sed -i '/chown/d' Makefile
}
2013-03-08 11:17:56 +01:00
post_install() {
# Remove unused stuff.
rm -f ${DESTDIR}/usr/bin/atop{,sar}-2.0
rm -rf ${DESTDIR}/etc/{init,logrotate}.d ${DESTDIR}/var
2014-08-21 11:32:04 +02:00
if [ "$build_option_systemd" ]; then
# systemd service
vinstall atop.service 644 usr/lib/systemd/system
fi
2014-10-13 12:43:53 +02:00
vsv atop
2013-03-08 11:17:56 +01:00
}