31 lines
831 B
Bash
31 lines
831 B
Bash
# Template file for 'atop'
|
|
pkgname=atop
|
|
version=2.10.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_install_target="sysvinstall"
|
|
make_use_env=true
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ncurses-devel zlib-devel libglib-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=e7a673cf2c82578e7dd82ecb0dec83fd9ecb30828b2561c28a9fa5aaf75d5f93
|
|
|
|
make_dirs="/var/log/atop 755 root root"
|
|
|
|
pre_install() {
|
|
vsed -e 's,sbin,bin,g' \
|
|
-e '/$(DEFPATH)/d' -i Makefile
|
|
vsed -e 's,bin/sh,bin/bash,' -i atop.daily
|
|
}
|
|
|
|
post_install() {
|
|
vsv atop
|
|
# Remove unused stuff.
|
|
rm -f ${DESTDIR}/usr/bin/atop{,sar}-${version}
|
|
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/var
|
|
}
|