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-01-27 00:05:48 +00:00
|
|
|
pkgver=2021.01.26
|
2021-02-09 19:11:29 +00:00
|
|
|
pkgrel=2
|
|
|
|
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-01-16 17:26:29 +00:00
|
|
|
sha512sums="1d42a2d3d9eea4ef953d11dd0f3ee0a36554b3dfabf606eb62bb5b60625601c696ac1366db492a056cc360e257322835516385946b93e424895e8d994bf5634f 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"
|