atop: added runit service.
This commit is contained in:
parent
35e341921c
commit
be37811570
|
@ -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
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue