aports/configs/nginx/APKBUILD

48 lines
1.6 KiB
Plaintext
Raw Normal View History

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-config-nginx
2020-12-29 19:37:53 +00:00
pkgver=2020.12.29
pkgrel=0
pkgdesc="NGINX configuration"
url="https://git.redxen.eu/RedXen"
arch="noarch"
license="none"
depends="nginx nginx-mod-http-zip"
subpackages="$pkgname-seedbox $pkgname-alpine $pkgname-homepage"
source="
main.conf
modules/seedbox.conf
modules/alpine.conf
modules/homepage.conf
"
options="!check"
builddir="$srcdir"
package() {
install -Dm400 main.conf "$pkgdir"/etc/nginx/redxen.conf
}
seedbox() {
install_if="redxen-config-transmission"
install -Dm400 "$srcdir"/seedbox.conf "$subpkgdir"/etc/nginx/conf.d/redxen/seedbox.conf
}
alpine() {
install_if="redxen-secret-nginx-httpauth-alpine"
install -Dm400 "$srcdir"/alpine.conf "$subpkgdir"/etc/nginx/conf.d/redxen/alpine.conf
}
homepage() {
install_if="redxen-data-homepage"
install -Dm400 "$srcdir"/homepage.conf "$subpkgdir"/etc/nginx/conf.d/redxen/homepage.conf
}
check() {
nginx -p / -c main.conf -t
}
sha512sums="a24873ff4a79c27ae15bcd09c6667aecb1f8c657759ba2914ace780bd5c68822d175637c87001c375e4460b941b0d3c3b07abf13a114fb057983e07b0b501eae main.conf
abba14b4ed423455d9a6993b48f44c3464e37dc6a05119b3084d0519bbc62c7551cee721c25f0543b67ed80425c71dbe0ef5d3f8c9436faf7706d6d18414b149 seedbox.conf
2020-12-29 19:37:53 +00:00
44c48417f10047ecec4313b2d6b5056ff69e585d29044288c50e876683b012a1d204b66c529a53d21f5b0910066656151b3f05dbcde48f4132a983b4a0619bf5 alpine.conf
0b5e7a0bb935ee0aa20c72ab1e7eb4ff4dcce22564fb7b354d28574e15e23bc7661414936d23be47afc9d465f44b3e2a55f14f1bb14d009286196e8615c6f729 homepage.conf"