aboutsummaryrefslogtreecommitdiffstats
path: root/community/icingaweb2-module-director/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-08-09 09:27:51 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-08-09 09:27:51 +0000
commit887eaa1f505c054fcd518a7b0121ab2a14df6d64 (patch)
tree0d4cf1aec166d49cec2821521720b9988e3d7739 /community/icingaweb2-module-director/APKBUILD
parent212576253be920d0bc59a3435e7d68565f794857 (diff)
downloadaports-887eaa1f505c054fcd518a7b0121ab2a14df6d64.tar.bz2
aports-887eaa1f505c054fcd518a7b0121ab2a14df6d64.tar.xz
community/icingaweb2-module-director: moved from testing
Diffstat (limited to 'community/icingaweb2-module-director/APKBUILD')
-rw-r--r--community/icingaweb2-module-director/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/community/icingaweb2-module-director/APKBUILD b/community/icingaweb2-module-director/APKBUILD
new file mode 100644
index 0000000000..828cf6cca5
--- /dev/null
+++ b/community/icingaweb2-module-director/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=icingaweb2-module-director
+_module=${pkgname/*-/}
+pkgver=1.3.1
+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
+
+}
+
+sha512sums="68d32e9ab089a1625dd2bc321001ffd0e84aedda81d651080e493829102ff359bcb465cde0d87bba7171c13145c18fd6c689b20091eb0644584f11137b24067a icingaweb2-module-director-1.3.1.tar.gz"