aports/software-configs/haproxy-redxen-config/APKBUILD

25 lines
626 B
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=haproxy-redxen-config
pkgver=1
pkgrel=0
pkgdesc="HAProxy frontend configuration"
url="https://git.redxen.eu/RedXen"
arch="noarch"
license="none"
depends="haproxy letsencrypt-redxen-fullchain"
source="
main.cfg
"
options="!check" # Certificate is distributed separately
package() {
install -Dm644 main.cfg "$pkgdir"/etc/haproxy/main.cfg
}
check() {
haproxy -c -f main.cfg
}
sha512sums="3d47bdc1ed327578c367aaf44e9b0a1323b0da5764cdcf650935532672fe9840538fcd0763db16c96a97af0ac1c5c7905332b438c5ef3c9127034330f9df22b7 main.cfg"