From 2094d852cd04636a3ed2ed70a534cfe3ab8bfd43 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 22 Apr 2016 18:10:18 +0000 Subject: community/icingaweb2: moved from testing --- community/icingaweb2/APKBUILD | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 community/icingaweb2/APKBUILD (limited to 'community') diff --git a/community/icingaweb2/APKBUILD b/community/icingaweb2/APKBUILD new file mode 100644 index 0000000000..b5209494eb --- /dev/null +++ b/community/icingaweb2/APKBUILD @@ -0,0 +1,77 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=icingaweb2 +pkgver=2.3.1 +pkgrel=1 +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="www-data" +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 + chgrp -R $pkggroups "$pkgdir"/etc/$pkgname + install -Dm644 COPYING "$pkgdir/usr/share/licenses/icingaweb2/LICENSE" + + cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <