32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Template file for 'sysstat'
|
|
pkgname=sysstat
|
|
version=11.1.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-yesterday --enable-install-isag --enable-copy-only --disable-file-attr"
|
|
make_dirs="/var/log/sa 0755 root root"
|
|
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=62cac0d2f934c1a372a4c8e10cae028e9c3e45c6cd327b8556b906796e0987b1
|
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
else
|
|
configure_args+=" --with-systemdsystemunitdir=none --enable-install-cron"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i 's/lib64/lib/' configure
|
|
export conf_dir=/etc/default
|
|
export cron_owner=$(whoami)
|
|
vmkdir etc/cron.daily
|
|
vmkdir etc/cron.hourly
|
|
vmkdir usr/lib/systemd/system
|
|
}
|