summaryrefslogtreecommitdiffstats
path: root/main/haproxy
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-08-24 08:34:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-16 12:50:06 +0000
commit46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3 (patch)
treedb5d3d4be169ff32fda7e5cce4b3f2e37ba5ace5 /main/haproxy
parent39fe9fe32eab1af8d3bbfd40ded256f4d3df674a (diff)
downloadaports-46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3.tar.bz2
aports-46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3.tar.xz
main/haproxy: allow user override config file location
Use HAPROXY_CONF=/etc/mylocation.cfg in /etc/conf.d/haproxy ref #1339
Diffstat (limited to 'main/haproxy')
-rw-r--r--main/haproxy/APKBUILD4
-rw-r--r--main/haproxy/haproxy.initd2
2 files changed, 3 insertions, 3 deletions
diff --git a/main/haproxy/APKBUILD b/main/haproxy/APKBUILD
index 9aee06943..344d39e76 100644
--- a/main/haproxy/APKBUILD
+++ b/main/haproxy/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.4.18
-pkgrel=3
+pkgrel=4
pkgdesc="A TCP/HTTP reverse proxy for high availability environments"
url="http://haproxy.1wt.eu"
arch="all"
@@ -27,4 +27,4 @@ package() {
}
md5sums="4ac88bb1a76c4b84ed4f6131183bedbe haproxy-1.4.18.tar.gz
-572195d08dbb1c198b8edade46681b49 haproxy.initd"
+0891c7f7b98899b7e7bf767ae92b652e haproxy.initd"
diff --git a/main/haproxy/haproxy.initd b/main/haproxy/haproxy.initd
index 7855afa04..3d48ab96e 100644
--- a/main/haproxy/haproxy.initd
+++ b/main/haproxy/haproxy.initd
@@ -7,7 +7,7 @@ extra_commands="checkconfig"
extra_started_commands="reload"
command=/usr/sbin/haproxy
-CONFFILE=/etc/${SVCNAME}.cfg
+CONFFILE=${HAPROXY_CONF:-/etc/${SVCNAME}.cfg}
PIDFILE=/var/run/${SVCNAME}.pid
depend() {