void-packages/srcpkgs/atop/template

27 lines
775 B
Bash

# Template file for 'atop'
pkgname=atop
version=2.3.0
revision=2
build_style=gnu-makefile
makedepends="ncurses-devel zlib-devel"
short_desc="A system and process level monitor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.atoptool.nl/"
distfiles="http://www.atoptool.nl/download/atop-${version}.tar.gz"
checksum=73e4725de0bafac8c63b032e8479e2305e3962afbe977ec1abd45f9e104eb264
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
}