# Contributor: Alex Denes # Maintainer: Alex Denes _svcname=nginx . ../APKBUILD-config.common pkgver=2021.05.03 pkgrel=0 depends="nginx-mod-http-zip" checkdepends="nginx" subpackages="$pkgname-seedbox $pkgname-alpine $pkgname-homepage" source=" main.conf modules/seedbox.conf modules/alpine.conf modules/homepage.conf " package() { install -Dm400 main.conf "$pkgdir"/etc/nginx/redxen.conf } seedbox() { install_if="redxen-config-transmission-daemon" install -Dm400 "$srcdir"/seedbox.conf "$subpkgdir"/etc/nginx/http.d/redxen/seedbox.conf } alpine() { install_if="redxen-secret-nginx-httpauth-alpine" install -Dm400 "$srcdir"/alpine.conf "$subpkgdir"/etc/nginx/http.d/redxen/alpine.conf } homepage() { install_if="redxen-data-homepage" install -Dm400 "$srcdir"/homepage.conf "$subpkgdir"/etc/nginx/http.d/redxen/homepage.conf } check() { nginx -p / -c main.conf -t } sha512sums="032fcb53d7c7fa848c67398e26d1b9d643c795c2c0c6061e58d79abc5168f6e2482172b14966a01513e5ea183a92150fdc6c0fcb581ad04668fd32e3409ef1ed main.conf abba14b4ed423455d9a6993b48f44c3464e37dc6a05119b3084d0519bbc62c7551cee721c25f0543b67ed80425c71dbe0ef5d3f8c9436faf7706d6d18414b149 seedbox.conf a8e85e18ae1f8c7f6f35fe27d879cc8642133cc63a3a44c6fd8b875eb3a3f2ccc9e3de1d95691bee574d4ead375ef096585b807dd301bc02b2fad312bc74cf24 alpine.conf 0b5e7a0bb935ee0aa20c72ab1e7eb4ff4dcce22564fb7b354d28574e15e23bc7661414936d23be47afc9d465f44b3e2a55f14f1bb14d009286196e8615c6f729 homepage.conf"