aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2009-10-27 20:31:22 +0800
committerclsung <clsung@FreeBSD.org>2009-10-27 20:31:22 +0800
commit956574f38de4712106ba60af84adc436a091da00 (patch)
tree2eeb055c629dd648927516f069ccdcedc6c28782
parentb41dc8bda437457d1f707c0f776e98d99bc1d2cd (diff)
downloadfreebsd-ports-gnome-956574f38de4712106ba60af84adc436a091da00.tar.gz
freebsd-ports-gnome-956574f38de4712106ba60af84adc436a091da00.tar.zst
freebsd-ports-gnome-956574f38de4712106ba60af84adc436a091da00.zip
- allow multiple backend addresses with mysql-proxy startup script
- bump PORTREVISION PR: ports/136028 Submitted by: Alexey V dot Degtyarev <alexey_AT_renatasystems dot org>
-rw-r--r--databases/mysql-proxy/Makefile1
-rw-r--r--databases/mysql-proxy/files/mysql-proxy.sh.in8
2 files changed, 7 insertions, 2 deletions
diff --git a/databases/mysql-proxy/Makefile b/databases/mysql-proxy/Makefile
index 88c3460fd227..86e4fba048ab 100644
--- a/databases/mysql-proxy/Makefile
+++ b/databases/mysql-proxy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mysql-proxy
PORTVERSION= 0.7.2
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= MySQL-Proxy
diff --git a/databases/mysql-proxy/files/mysql-proxy.sh.in b/databases/mysql-proxy/files/mysql-proxy.sh.in
index 491887a231ac..770179975cde 100644
--- a/databases/mysql-proxy/files/mysql-proxy.sh.in
+++ b/databases/mysql-proxy/files/mysql-proxy.sh.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/databases/mysql-proxy/files/Attic/mysql-proxy.sh.in,v 1.2 2009-07-09 02:49:52 clsung Exp $
+# $FreeBSD: /tmp/pcvs/ports/databases/mysql-proxy/files/Attic/mysql-proxy.sh.in,v 1.3 2009-10-27 12:31:22 clsung Exp $
#
# PROVIDE: mysql-proxy
@@ -39,10 +39,14 @@ load_rc_config $name
: ${mysql_proxy_address=":4040"}
: ${mysql_proxy_backend_addresses="127.0.0.1:3306"}
: ${mysql_proxy_pid_file="/var/run/mysql-proxy.pid"}
+proxy_backend_addresses=""
+for addr in ${mysql_proxy_backend_addresses}; do
+ proxy_backend_addresses="${proxy_backend_addresses} --proxy-backend-addresses=${addr}"
+done
pidfile="${mysql_proxy_pid_file}"
command=%%PREFIX%%/libexec/mysql-proxy
-command_args="--admin-address=${mysql_proxy_admin_address} --proxy-address=${mysql_proxy_address} --proxy-backend-addresses=${mysql_proxy_backend_addresses} ${mysql_proxy_args} --daemon --pid-file=${mysql_proxy_pid_file}"
+command_args="--admin-address=${mysql_proxy_admin_address} --proxy-address=${mysql_proxy_address} ${proxy_backend_addresses} ${mysql_proxy_args} --daemon --pid-file=${mysql_proxy_pid_file}"
procname=%%PREFIX%%/libexec/mysql-proxy
run_rc_command "$1"