blob: 9cb9369289c11609491d353616e6ed1be0900e21 (
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
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icingaweb2
pkgver=2.4.1
pkgrel=3
pkgdesc="Web Interface for Icinga2"
url="http://www.icinga.org"
arch="noarch !armhf"
license="GPL"
_php=php7
depends="icinga2 $_php ${_php}-gd ${_php}-ldap ${_php}-intl ${_php}-pgsql
${_php}-mysqlnd ${_php}-gettext ${_php}-ctype ${_php}-openssl ${_php}-sockets
${_php}-json ${_php}-dom ${_php}-imagick ${_php}-pdo_mysql
${_php}-pdo_pgsql"
pkggroups="icingaweb2"
options="!check"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
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/$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 -Dm644 COPYING "$pkgdir/usr/share/licenses/icingaweb2/LICENSE"
cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
You need to add to $pkgroups group the owner of the user of your webserver
For nginx, as example:
# adduser nginx $pkgusers
or
#adduser nobody $pkgusers
For Apache:
# adduser apache $pkgusers
For lighttpd:
# adduser lighttpd $pkgusers
Also, you may remove the user of your webserver from group 'icingacmd' if no other icinga web interface is installed.
EOF
}
bashcomp() {
depends="bash"
pkgdesc="Bash completions for $pkgname"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
mv etc/bash_completion.d/icingacli "$subpkgdir"/usr/share/bash-completion/completions/icingacli
}
md5sums="d603099f529c9c0e318767350ed93e76 icingaweb2-2.4.1.tar.gz"
sha256sums="27150d96a2172d0fa0c77389970052a1bf7aa6553494e80837f6699e96e24bc6 icingaweb2-2.4.1.tar.gz"
sha512sums="21ac8faea3e339cfc668407cef826cf4a8f01c964ad102e2c9bc9716e20c3177cea10ec575b99a5a4bb0a9681032b83427c250c5288b037a70d27dc919d0f641 icingaweb2-2.4.1.tar.gz"
|