39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'sysstat'
|
|
pkgname=sysstat
|
|
version=11.1.4
|
|
revision=2
|
|
build_pie=yes
|
|
build_style=gnu-configure
|
|
configure_args="--enable-install-isag --enable-copy-only --disable-file-attr"
|
|
make_dirs="/var/log/sa 0755 root root"
|
|
conf_files="/etc/default/sysstat /etc/default/sysstat.ioconf"
|
|
hostmakedepends="pkg-config"
|
|
depends="lm_sensors"
|
|
short_desc="A collection of performance monitoring tools"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://pagesperso-orange.fr/sebastien.godard/"
|
|
distfiles="http://pagesperso-orange.fr/sebastien.godard/${pkgname}-${version}.tar.gz"
|
|
checksum=73fb6ce9663bb97dfd8fb83e48f6f57f679a58129ae8a98abf36af45b008bce1
|
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
else
|
|
configure_args+=" --with-systemdsystemunitdir= --enable-install-cron"
|
|
fi
|
|
|
|
post_extract() {
|
|
echo '#include <limits.h>' >>common.h
|
|
echo '#include <sys/sysmacros.h>' >>common.h
|
|
sed -i 's/lib64/lib/' configure
|
|
}
|
|
pre_configure() {
|
|
export conf_dir=/etc/default
|
|
export cron_owner=$(whoami)
|
|
vmkdir etc/cron.daily
|
|
vmkdir etc/cron.hourly
|
|
vmkdir usr/lib/systemd/system
|
|
}
|