2020-10-31 15:34:48 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
2020-12-18 20:50:42 +00:00
|
|
|
pkgname=redxen-config-haproxy
|
|
|
|
pkgver=2020.12.18
|
|
|
|
pkgrel=0
|
2020-10-31 15:34:48 +00:00
|
|
|
pkgdesc="HAProxy frontend configuration"
|
|
|
|
url="https://git.redxen.eu/RedXen"
|
|
|
|
arch="noarch"
|
|
|
|
license="none"
|
2020-12-18 20:50:42 +00:00
|
|
|
depends="haproxy redxen-secret-letsencrypt-fullchain redxen-data-haproxy-errorpages"
|
2020-11-01 14:28:32 +00:00
|
|
|
source="
|
|
|
|
main.cfg
|
|
|
|
"
|
2020-11-20 16:31:49 +00:00
|
|
|
options="!check" # Certificate is not readable by building user
|
2020-10-31 15:34:48 +00:00
|
|
|
|
|
|
|
package() {
|
2020-11-01 14:28:32 +00:00
|
|
|
install -Dm644 main.cfg "$pkgdir"/etc/haproxy/main.cfg
|
2020-10-31 15:34:48 +00:00
|
|
|
}
|
|
|
|
|
2020-11-01 14:28:32 +00:00
|
|
|
check() {
|
|
|
|
haproxy -c -f main.cfg
|
|
|
|
}
|
2020-10-31 15:34:48 +00:00
|
|
|
|
2020-12-18 20:50:42 +00:00
|
|
|
sha512sums="23c4ed7cd0b305bffd59774856adab6f996ebdb108ca588fb40206be115c671d6e32fc2ff3837b6946528593f313109cc74c5b191c0c1815385b2b7d2de2b670 main.cfg"
|