mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=icingaweb2-module-director
|
|
_module=${pkgname/*-/}
|
|
pkgver=1.4.3
|
|
pkgrel=0
|
|
pkgdesc="Configuration frontend for Icinga 2, integrated automation"
|
|
url="http://www.icinga.org"
|
|
arch="noarch !armhf"
|
|
license="GPL-2.0"
|
|
_php=php7
|
|
depends="icingaweb2 ${_php}-curl"
|
|
options="!check"
|
|
pkggroups="icingaweb2"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
mkdir -p "$pkgdir/etc/icingaweb2/modules/$_module"
|
|
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
|
|
mkdir -p "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module"
|
|
cp -a application library public schema test \
|
|
configuration.php module.info run.php \
|
|
"$pkgdir/usr/share/webapps/icingaweb2/modules/$_module"
|
|
cp -a doc "$pkgdir/usr/share/doc/$pkgname"
|
|
chgrp -R $pkggroups "$pkgdir/etc/icingaweb2/modules/$_module"
|
|
|
|
cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
|
|
You need to fix /etc/icingaweb2/modules/$_module with the owner of the user of your webserver
|
|
|
|
For nginx, as example:
|
|
# chown -R nginx /etc/icingaweb2/modules/$_module
|
|
or
|
|
# chown -R nobody /etc/icingaweb2/modules/$_module
|
|
|
|
For Apache:
|
|
# chown -R apache /etc/icingaweb2/modules/$_module
|
|
|
|
For lighttpd:
|
|
# chown -R lighttpd /etc/icingaweb2/modules/$_module
|
|
|
|
Remember to enable the module with:
|
|
|
|
# icingacli module enable $_module
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
sha512sums="2802de2f1d8ebac04be39cb2c3478ad1b6dac2ebdbcb39165d0316f684321eb4f0f3b2d851201641540a2b6f2fd714c8d78aea98b43259e413c14e2aa7b8f57c icingaweb2-module-director-1.4.3.tar.gz"
|