From a19bf3643d32bba09143b1eb770bcebf89add1d6 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 8 Feb 2017 15:35:07 +0000 Subject: testing/icingaweb2-module-fileshipper: new aport --- testing/icingaweb2-module-fileshipper/APKBUILD | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 testing/icingaweb2-module-fileshipper/APKBUILD (limited to 'testing') diff --git a/testing/icingaweb2-module-fileshipper/APKBUILD b/testing/icingaweb2-module-fileshipper/APKBUILD new file mode 100644 index 0000000000..de3c3a8196 --- /dev/null +++ b/testing/icingaweb2-module-fileshipper/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=icingaweb2-module-fileshipper +_module=${pkgname/*-/} +pkgver=1.0.0 +pkgrel=0 +pkgdesc="Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director" +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 library 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 <