atop: added runit service.

This commit is contained in:
Juan RP 2014-10-13 12:43:53 +02:00
parent 35e341921c
commit be37811570
2 changed files with 10 additions and 6 deletions

3
srcpkgs/atop/files/atop/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
mkdir -p /var/log/atop || exit 1
exec atop -a -w /var/log/atop/atop_$(date +%Y%m%d) 600

View File

@ -2,8 +2,10 @@
pkgname=atop
version=2.0.2
wrksrc=atop-${version}
revision=2
revision=3
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>"
@ -12,11 +14,9 @@ homepage="http://www.atoptool.nl/"
distfiles="http://www.atoptool.nl/download/$pkgname-$version.tar.gz"
checksum=a620dbe0de7c7ee004949b201bed27559a8dd6cbdee651c7a3e15fc584723409
build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="atop.service true"
fi
pre_install() {
sed -i '/chown/d' Makefile
}
post_install() {
# Remove unused stuff.
rm -f ${DESTDIR}/usr/bin/atop{,sar}-2.0
@ -25,4 +25,5 @@ post_install() {
# systemd service
vinstall atop.service 644 usr/lib/systemd/system
fi
vsv atop
}