2020-12-18 20:50:42 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
pkgname=redxen-config-nginx
|
2020-12-19 22:31:50 +00:00
|
|
|
pkgver=2020.12.19
|
|
|
|
pkgrel=0
|
2020-12-18 20:50:42 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-12-19 22:31:50 +00:00
|
|
|
sha512sums="a24873ff4a79c27ae15bcd09c6667aecb1f8c657759ba2914ace780bd5c68822d175637c87001c375e4460b941b0d3c3b07abf13a114fb057983e07b0b501eae main.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
abba14b4ed423455d9a6993b48f44c3464e37dc6a05119b3084d0519bbc62c7551cee721c25f0543b67ed80425c71dbe0ef5d3f8c9436faf7706d6d18414b149 seedbox.conf
|
|
|
|
0f378efcd72933ee0c44be2e2e150ad49e5019df1fb06485aa31f0690530932dff68876678dbfa5b1757f23d14d9ee779cfd0f16eadf7fb17881fa26d987738c alpine.conf
|
|
|
|
c35ffedd042aba924e02ba028dd84449c091352abfe7ea0f69f3031ee8ba0dc62498a42cab6c3e9bfd60205f4efe7d09537933095f966c7d4e139cd94d5022aa homepage.conf"
|