atop: added systemd build option.
This commit is contained in:
parent
953e8b07c3
commit
36a2be41b1
|
@ -2,10 +2,9 @@
|
|||
pkgname=atop
|
||||
version=2.0.2
|
||||
wrksrc=atop-${version}
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-makefile
|
||||
makedepends="ncurses-devel zlib-devel"
|
||||
systemd_services="atop.service true"
|
||||
short_desc="A system and process level monitor"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
|
@ -13,10 +12,17 @@ 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
|
||||
|
||||
post_install() {
|
||||
# Remove unused stuff.
|
||||
rm -f ${DESTDIR}/usr/bin/atop{,sar}-2.0
|
||||
rm -rf ${DESTDIR}/etc/{init,logrotate}.d ${DESTDIR}/var
|
||||
# systemd service
|
||||
vinstall atop.service 644 usr/lib/systemd/system
|
||||
if [ "$build_option_systemd" ]; then
|
||||
# systemd service
|
||||
vinstall atop.service 644 usr/lib/systemd/system
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue