# Template file for 'sysstat'
pkgname=sysstat
version=12.7.7
revision=1
build_style=gnu-configure
configure_args="--enable-copy-only --disable-file-attr
 --with-systemdsystemunitdir= --enable-install-cron --enable-sensors"
conf_files="/etc/default/sysstat /etc/default/sysstat.ioconf"
hostmakedepends="pkg-config gettext"
makedepends="libsensors-devel"
depends="lm_sensors"
short_desc="Collection of performance monitoring tools"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://sysstat.github.io/"
distfiles="https://sysstat.github.io/sysstat-packages/sysstat-${version}.tar.xz"
checksum=79bddfca14130797c02aa4d819528aaa243c879e5bbd1c404cd43c9953a8cdf9

post_extract() {
	vsed -i 's/lib64/lib/' configure
	vsed -i '/LFLAGS =/d; s/LFLAGS/LDFLAGS/g' Makefile.in
}
pre_configure() {
	export conf_dir=/etc/default
	vmkdir etc/cron.d
}
post_install() {
	vbin contrib/isag/isag
	vman contrib/isag/isag.1
}
