void-packages/srcpkgs/icinga2/template

36 lines
1.1 KiB
Bash

# Template file for 'icinga2'
pkgname=icinga2
version=2.9.3
revision=10
build_style=cmake
build_helper="qemu"
configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc
-DCMAKE_INSTALL_LOCALSTATEDIR=/var -DICINGA2_RUNDIR=/run
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins/"
hostmakedepends="flex git"
makedepends="openssl-devel boost-devel libmariadbclient-devel libedit-devel
yajl-devel postgresql-libs-devel"
depends="monitoring-plugins"
conf_files="/etc/${pkgname}/*.conf
/etc/$pkgname/conf.d/*.conf
/etc/$pkgname/features-available/*.conf"
short_desc="Scalable and extensible monitoring system"
maintainer="Corné Oppelaar <hello@eaterofco.de>"
license="GPL-2.0-or-later"
homepage="https://www.icinga.org/"
distfiles="https://github.com/Icinga/icinga2/archive/v${version}.tar.gz"
checksum=37a4d0ecdba9f0229330cfeb773fad4751f3517df2f8846c3bec9deec1fcf045
system_accounts="icinga"
system_groups="icingacmd"
icinga_groups="icingacmd"
post_install() {
vsv icinga2
# remove useless files
rm -rf ${DESTDIR}/etc/{init.d,sysconfig}
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions
}