diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2009-10-27 12:31:22 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2009-10-27 12:31:22 +0000 |
commit | b781a0f4fe751748befb52f65cd6b14dee678937 (patch) | |
tree | 2418997af8ef9d653c5c9722f0b211f55b769508 /databases/mysql-proxy | |
parent | 3a9ef882b473cef6272001a72dcb40069b263cf9 (diff) | |
download | ports-b781a0f4fe751748befb52f65cd6b14dee678937.tar.gz ports-b781a0f4fe751748befb52f65cd6b14dee678937.zip |
Notes
Diffstat (limited to 'databases/mysql-proxy')
-rw-r--r-- | databases/mysql-proxy/Makefile | 1 | ||||
-rw-r--r-- | databases/mysql-proxy/files/mysql-proxy.sh.in | 8 |
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" |