1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/icingaweb2-module-reactbundle/APKBUILD

51 lines
1.6 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="icingaweb2-module-reactbundle"
_module=${pkgname/*-/}
pkgver=0.9.0
pkgrel=0
pkgdesc="ReactPHP-based 3rd party libraries for Icinga Web 2"
url="https://www.icinga.org"
arch="noarch !armhf !armv7 !s390x !mips !mips64 !x86"
license="GPL"
options="!check"
_php=php7
pkggroups="icingaweb2"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz"
build() {
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 vendor composer.json composer.lock module.info run.php \
"$pkgdir/usr/share/webapps/icingaweb2/modules/$_module"
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="92573e06cd12d118b7920e1cb5c19de2245b6d60e926d63bf505da36f8ad413954047a1c528126419380a7ff86457440fb530a4bb639423d3370265982896076 icingaweb2-module-reactbundle-0.9.0.tar.gz"