aports/config/nginx/APKBUILD

46 lines
1.5 KiB
Plaintext
Raw Normal View History

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
2021-02-07 21:36:32 +00:00
_svcname=nginx
. ../APKBUILD-config.common
pkgver=2021.01.26
pkgrel=2
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="1d42a2d3d9eea4ef953d11dd0f3ee0a36554b3dfabf606eb62bb5b60625601c696ac1366db492a056cc360e257322835516385946b93e424895e8d994bf5634f main.conf
abba14b4ed423455d9a6993b48f44c3464e37dc6a05119b3084d0519bbc62c7551cee721c25f0543b67ed80425c71dbe0ef5d3f8c9436faf7706d6d18414b149 seedbox.conf
a8e85e18ae1f8c7f6f35fe27d879cc8642133cc63a3a44c6fd8b875eb3a3f2ccc9e3de1d95691bee574d4ead375ef096585b807dd301bc02b2fad312bc74cf24 alpine.conf
2020-12-29 19:37:53 +00:00
0b5e7a0bb935ee0aa20c72ab1e7eb4ff4dcce22564fb7b354d28574e15e23bc7661414936d23be47afc9d465f44b3e2a55f14f1bb14d009286196e8615c6f729 homepage.conf"