2020-12-18 20:50:42 +00:00
|
|
|
# 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
|
|
|
|
|
2021-05-03 18:30:12 +00:00
|
|
|
pkgver=2021.05.03
|
|
|
|
pkgrel=0
|
2021-02-09 19:11:29 +00:00
|
|
|
depends="nginx-mod-http-zip"
|
|
|
|
checkdepends="nginx"
|
2020-12-18 20:50:42 +00:00
|
|
|
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() {
|
2021-01-27 00:05:48 +00:00
|
|
|
install_if="redxen-config-transmission-daemon"
|
2021-01-16 17:26:29 +00:00
|
|
|
install -Dm400 "$srcdir"/seedbox.conf "$subpkgdir"/etc/nginx/http.d/redxen/seedbox.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
alpine() {
|
|
|
|
install_if="redxen-secret-nginx-httpauth-alpine"
|
2021-01-16 17:26:29 +00:00
|
|
|
install -Dm400 "$srcdir"/alpine.conf "$subpkgdir"/etc/nginx/http.d/redxen/alpine.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
homepage() {
|
|
|
|
install_if="redxen-data-homepage"
|
2021-01-16 17:26:29 +00:00
|
|
|
install -Dm400 "$srcdir"/homepage.conf "$subpkgdir"/etc/nginx/http.d/redxen/homepage.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
nginx -p / -c main.conf -t
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:30:12 +00:00
|
|
|
sha512sums="032fcb53d7c7fa848c67398e26d1b9d643c795c2c0c6061e58d79abc5168f6e2482172b14966a01513e5ea183a92150fdc6c0fcb581ad04668fd32e3409ef1ed main.conf
|
2020-12-18 20:50:42 +00:00
|
|
|
abba14b4ed423455d9a6993b48f44c3464e37dc6a05119b3084d0519bbc62c7551cee721c25f0543b67ed80425c71dbe0ef5d3f8c9436faf7706d6d18414b149 seedbox.conf
|
2021-01-16 17:26:29 +00:00
|
|
|
a8e85e18ae1f8c7f6f35fe27d879cc8642133cc63a3a44c6fd8b875eb3a3f2ccc9e3de1d95691bee574d4ead375ef096585b807dd301bc02b2fad312bc74cf24 alpine.conf
|
2020-12-29 19:37:53 +00:00
|
|
|
0b5e7a0bb935ee0aa20c72ab1e7eb4ff4dcce22564fb7b354d28574e15e23bc7661414936d23be47afc9d465f44b3e2a55f14f1bb14d009286196e8615c6f729 homepage.conf"
|