mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
atop: move to usr/bin; remove systemd support.
This commit is contained in:
parent
7ecb0d318e
commit
3686c32f60
1 changed files with 5 additions and 9 deletions
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'atop'
|
# Template file for 'atop'
|
||||||
pkgname=atop
|
pkgname=atop
|
||||||
version=2.1
|
version=2.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
build_options="systemd"
|
|
||||||
makedepends="ncurses-devel zlib-devel"
|
makedepends="ncurses-devel zlib-devel"
|
||||||
short_desc="A system and process level monitor"
|
short_desc="A system and process level monitor"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -14,15 +13,12 @@ checksum=39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f
|
||||||
|
|
||||||
pre_install() {
|
pre_install() {
|
||||||
sed -i '/chown/d' Makefile
|
sed -i '/chown/d' Makefile
|
||||||
vmkdir usr/sbin
|
sed -i 's,sbin,bin,g' Makefile
|
||||||
}
|
}
|
||||||
post_install() {
|
do_install() {
|
||||||
|
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} install
|
||||||
|
vsv atop
|
||||||
# Remove unused stuff.
|
# Remove unused stuff.
|
||||||
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
|
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
|
||||||
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
|
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
|
||||||
if [ "$build_option_systemd" ]; then
|
|
||||||
# systemd service
|
|
||||||
vinstall atop.service 644 usr/lib/systemd/system
|
|
||||||
fi
|
|
||||||
vsv atop
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue