blob: 56b86068fc2a356302d9760ab1303c551854ad2e (
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
57
58
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icingaweb2-module-director
_module=${pkgname/*-/}
pkgver=1.3.0
pkgrel=0
pkgdesc="Configuration frontend for Icinga 2, integrated automation"
url="http://www.icinga.org"
arch="noarch !armhf"
license="GPL2"
_php=php5
depends="icingaweb2 ${_php}-curl"
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
}
md5sums="165960a7435ca28f4f73ea37bb97a0d3 icingaweb2-module-director-1.3.0.tar.gz"
sha256sums="eceaa12aa14421ea18bbacc59f1f38810455e11ee2cfbc3af742402c62cb9317 icingaweb2-module-director-1.3.0.tar.gz"
sha512sums="9f9eb2c49acc99823a023837027d3da7410d49c119f2ba865b8b14b140ee5220845281485043e8f5113f71ecad92f708f99fc222f608b980e7fa9baf83d31544 icingaweb2-module-director-1.3.0.tar.gz"
|