void-packages/srcpkgs/atop/template

29 lines
829 B
Bash

# Template file for 'atop'
pkgname=atop
version=2.4.0
revision=2
build_style=gnu-makefile
makedepends="ncurses-devel zlib-devel"
short_desc="System and process level monitor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.atoptool.nl/"
distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
checksum=be1c010a77086b7d98376fce96514afcd73c3f20a8d1fe01520899ff69a73d69
make_dirs="/var/log/atop 755 root root"
pre_install() {
sed -i '/chown/d' Makefile
sed -i 's/04711/0755/' Makefile
sed -i 's,sbin,bin,g' Makefile
sed -i 's,bin/sh,bin/bash,' atop.daily
}
do_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} sysvinstall
vsv atop
# Remove unused stuff.
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
}