Commit 384ec2b7 authored by Francesco Colista's avatar Francesco Colista
Browse files

community/icinga2: fixed how to figure out the correct version

parent 853ed457
......@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icinga2
pkgver=2.6.1
pkgrel=0
pkgrel=1
pkgdesc="An open source host, service and network monitoring program"
url="http://www.icinga.org"
arch="all !armhf"
......@@ -19,7 +19,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pk
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$builddir"
rm -r third-party/yajl
mkdir -p build
......@@ -28,19 +27,21 @@ prepare() {
build() {
cd "$builddir"/build
cmake "$srcdir/$pkgname-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DICINGA2_RUNDIR=/run \
-DCMAKE_INSTALL_SBINDIR=/usr/sbin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DICINGA2_SYSCONFIGFILE=/etc/icinga2 \
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \
-DICINGA2_USER=$pkgusers \
-DICINGA2_GROUP=${pkggroups}cmd \
-DICINGA2_COMMAND_USER=$pkgusers \
-DICINGA2_COMMAND_GROUP=${pkggroups}cmd \
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=no
-DCMAKE_BUILD_TYPE=None \
-DICINGA2_GIT_VERSION_INFO=OFF \
-DICINGA2_UNITY_BUILD=FALSE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DICINGA2_RUNDIR=/run \
-DCMAKE_INSTALL_SBINDIR=/usr/sbin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DICINGA2_SYSCONFIGFILE=/etc/icinga2 \
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \
-DICINGA2_USER=$pkgusers \
-DICINGA2_GROUP=${pkggroups}cmd \
-DICINGA2_COMMAND_GROUP=${pkggroups}cmd \
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=no
make || return 1
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment