# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=icingaweb2 pkgver=2.11.4 pkgrel=0 pkgdesc="Web Interface for Icinga2" url="https://icinga.com/docs/icinga-web-2/latest/doc/01-About/" # x86: php6-pecl-imagick missing arch="noarch !armhf !armv7 !s390x !x86" license="GPL-2.0-only" _php=php81 depends="$_php $_php-intl $_php-dom $_php-opcache $_php-session $_php-curl $_php-gettext $_php-ctype $_php-openssl $_php-sockets icinga-php-library icinga-php-thirdparty" pkgusers="icingaweb2" pkggroups="icingaweb2" options="!check" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch $pkgname-sqlite-backend:backend_sqlite $pkgname-mysql-backend:backend_mysql $pkgname-postgres-backend:backend_postgres $pkgname-ldap:ldap " source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/icingaweb2/archive/refs/tags/v$pkgver.tar.gz fix-env-php8.patch" # secfixes: # 2.9.0-r0: # - CVE-2021-32746 # - CVE-2021-32747 build() { return 0 } package() { mkdir -p "$pkgdir/etc/$pkgname" mkdir -p "$pkgdir/usr/bin" mkdir -p "$pkgdir/usr/share/webapps/$pkgname" mkdir -p "$pkgdir/var/log/$pkgname" mkdir -p "$pkgdir/usr/share/doc/$pkgname" cp -r application doc library modules public bin etc "$pkgdir"/usr/share/webapps/$pkgname ln -s /usr/share/webapps/icingaweb2/bin/icingacli "$pkgdir"/usr/bin/icingacli chmod 2770 "$pkgdir"/etc/$pkgname chgrp -R $pkggroups "$pkgdir"/etc/$pkgname chmod 750 "$pkgdir"/var/log/$pkgname install -d -g $pkggroups -m 0775 "$pkgdir"/var/lib/$pkgname install -Dm644 LICENSE "$pkgdir/usr/share/licenses/icingaweb2/LICENSE" cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <