aboutsummaryrefslogblamecommitdiffstats
path: root/testing/icingaweb2-module-fileshipper/APKBUILD
blob: 3a6d874f87e10bff6e8977b901df1d72363a8fd3 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                           

            
                                                                                           
                             
                           
                 
         
























                                                                                             
  















                                                        
                                                                                                                                                                                         
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icingaweb2-module-fileshipper
_module=${pkgname/*-/}
pkgver=1.1.0
pkgrel=0
pkgdesc="Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director"
url="https://www.icinga.org/"
arch="noarch !armhf !armv7"
license="GPL-2.0"
_php=php7
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 <<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="e6bd6a5b136684ebf0a6f7fdf48e16f79b4e7903c3988e72ef46143ac877ed969a439cd486b4a841268127a24a5678cadd28d942c390519ca663fedbb7c31832  icingaweb2-module-fileshipper-1.1.0.tar.gz"