blob: 5f0bf9d7f644c259de30d1a20c0c4a19f2ac7bd1 (
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
71
72
73
74
75
76
77
78
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icingaweb2
pkgver=2.3.2
pkgrel=0
pkgdesc="Web Interface for Icinga2"
url="http://www.icinga.org"
arch="noarch"
license="GPL"
depends="icinga2 php php-gd php-ldap php-intl php-pgsql php-mysql
php-gettext php-ctype icinga2 php-openssl php-json php-dom
php-imagick php-pdo_mysql php-pdo_pgsql"
depends_dev=""
makedepends="$depends_dev"
pkggroups="icingaweb2"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/${pkgname}/archive/v${pkgver}.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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
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"
arch="noarch"
cd "$_builddir"
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
mv etc/bash_completion.d/icingacli "$subpkgdir"/usr/share/bash-completion/completions/icingacli
}
md5sums="4fbd92538c5331f6f4f44b2b5ff747fa icingaweb2-2.3.2.tar.gz"
sha256sums="89abfec58726cadc0380897880190ece84f74f34152b1146ee7b24244337b76d icingaweb2-2.3.2.tar.gz"
sha512sums="9cdea22df385e385077321ce482662b8e6529d0eef7be64880f695718431cf80de33e9dd40d480f3f284911aa58ef0d9d50a7ed52328d63612777569f9576052 icingaweb2-2.3.2.tar.gz"
|