aboutsummaryrefslogtreecommitdiffstats
path: root/community/icingaweb2-module-incubator/APKBUILD
blob: 5c4bf0e61aa0935376015d1dd2e58ffcae88418a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="icingaweb2-module-incubator"
_module=${pkgname/*-/}
pkgver=0.12.0
pkgrel=1
pkgdesc="Bleeding edge libraries useful for Icinga Web 2 modules"
url="https://icinga.com/"
arch="noarch !armhf !armv7 !s390x !x86"
license="MIT"
options="!check"
_php=php8
depends="icingaweb2"
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="
b2c500966310992f44c8180b7aa6d116dc97b0f57fbea3bb7cd8e8eaa8c789aed481eb55eb45851e6f0c9594f40411ad724f7562f9f52987f6ebec21cf8f7871  icingaweb2-module-incubator-0.12.0.tar.gz
"