diff options
-rw-r--r-- | community/icinga2/APKBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/community/icinga2/APKBUILD b/community/icinga2/APKBUILD index 86050bb880..7bb9ee3129 100644 --- a/community/icinga2/APKBUILD +++ b/community/icinga2/APKBUILD @@ -12,7 +12,7 @@ makedepends="$depends_dev cmake bison flex boost-dev yajl-dev postgresql-dev mariadb-dev libressl-dev libedit-dev" install="$pkgname.pre-install $pkgname.post-install" pkgusers="icinga" -pkggroups="icinga" +pkggroups="icinga icingacmd" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz $pkgname.initd" @@ -45,9 +45,9 @@ build() { -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 \ + -DICINGA2_USER=icinga \ + -DICINGA2_GROUP=icingacmd \ + -DICINGA2_COMMAND_GROUP=icingacmd \ -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=no make } @@ -80,11 +80,11 @@ EOF rm "$pkgdir"/etc/init.d/$pkgname - chown -R $pkgusers:$pkggroups "$pkgdir"/etc/icinga2 - chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/icinga2 - chown $pkgusers:$pkggroups "$pkgdir"/var/spool/icinga2 - chown -R $pkgusers:${pkggroups}cmd "$pkgdir"/var/cache/icinga2 - chown -R $pkgusers:${pkggroups}cmd "$pkgdir"/var/log/icinga2 + chown -R icinga:icinga "$pkgdir"/etc/icinga2 + chown -R icinga:icinga "$pkgdir"/var/lib/icinga2 + chown icinga:icinga "$pkgdir"/var/spool/icinga2 + chown -R icinga:icingacmd "$pkgdir"/var/cache/icinga2 + chown -R icinga:icingacmd "$pkgdir"/var/log/icinga2 install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF |