mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-07 06:32:29 +01:00
57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=icingaweb2-module-businessprocess
|
|
_module=${pkgname/*-/}
|
|
pkgver=2.2.0
|
|
pkgrel=0
|
|
pkgdesc="Manage Business Processes in Icinga Web 2"
|
|
url="https://www.icinga.org/"
|
|
arch="noarch !armhf !armv7"
|
|
license="GPL-2.0"
|
|
_php=php7
|
|
depends="icingaweb2-module-director"
|
|
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 \
|
|
module.info run.php configuration.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 module enable $_module
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
sha512sums="a2c250f045f9717797f2dc176ef2ea3e46c0835116bde1061f8b042e21d9f756be6ac212397f23ad0cc5569f1ea9da3728f98992c7dac8e3c86a0f992ad43051 icingaweb2-module-businessprocess-2.2.0.tar.gz"
|