From 37f5f2e2c026458b138b8a3f74522471f7996c06 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 8 Feb 2017 16:14:13 +0000 Subject: testing/icingaweb2-module-pnp: new aport --- testing/icingaweb2-module-pnp/APKBUILD | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 testing/icingaweb2-module-pnp/APKBUILD (limited to 'testing') diff --git a/testing/icingaweb2-module-pnp/APKBUILD b/testing/icingaweb2-module-pnp/APKBUILD new file mode 100644 index 0000000000..db5ab33554 --- /dev/null +++ b/testing/icingaweb2-module-pnp/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=icingaweb2-module-pnp +_module=${pkgname/*-/} +pkgver=1.0.1 +pkgrel=0 +pkgdesc="Integrate PNP graphs into Icinga Web 2 " +url="http://www.icinga.org" +arch="noarch" +license="GPL2" +_php=php5 +depends="icingaweb2-module-director ${_php}-xml" +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 module.info run.php configuration.php \ + "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module" + chgrp -R $pkggroups "$pkgdir/etc/icingaweb2/modules/$_module" + cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <