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 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icinga2 pkgname=icinga2
pkgver=2.6.1 pkgver=2.6.1
pkgrel=0 pkgrel=1
pkgdesc="An open source host, service and network monitoring program" pkgdesc="An open source host, service and network monitoring program"
url="http://www.icinga.org" url="http://www.icinga.org"
arch="all !armhf" arch="all !armhf"
...@@ -19,7 +19,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pk ...@@ -19,7 +19,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pk
builddir="$srcdir/$pkgname-$pkgver" builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
local i
cd "$builddir" cd "$builddir"
rm -r third-party/yajl rm -r third-party/yajl
mkdir -p build mkdir -p build
...@@ -28,19 +27,21 @@ prepare() { ...@@ -28,19 +27,21 @@ prepare() {
build() { build() {
cd "$builddir"/build cd "$builddir"/build
cmake "$srcdir/$pkgname-$pkgver" \ cmake "$srcdir/$pkgname-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DICINGA2_GIT_VERSION_INFO=OFF \
-DICINGA2_RUNDIR=/run \ -DICINGA2_UNITY_BUILD=FALSE \
-DCMAKE_INSTALL_SBINDIR=/usr/sbin \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \ -DICINGA2_RUNDIR=/run \
-DICINGA2_SYSCONFIGFILE=/etc/icinga2 \ -DCMAKE_INSTALL_SBINDIR=/usr/sbin \
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DICINGA2_USER=$pkgusers \ -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DICINGA2_GROUP=${pkggroups}cmd \ -DICINGA2_SYSCONFIGFILE=/etc/icinga2 \
-DICINGA2_COMMAND_USER=$pkgusers \ -DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \
-DICINGA2_COMMAND_GROUP=${pkggroups}cmd \ -DICINGA2_USER=$pkgusers \
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=no -DICINGA2_GROUP=${pkggroups}cmd \
-DICINGA2_COMMAND_GROUP=${pkggroups}cmd \
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=no
make || return 1 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