From e76c166c58ff8f48f93232248140424e654d1eef Mon Sep 17 00:00:00 2001 From: pav Date: Tue, 8 Jul 2008 11:54:56 +0000 Subject: - Add support for setting startup flags in rc script via rc.conf variable PR: ports/125209 Submitted by: Case Dorsett Approved by: Joseph Scott (maintainer) --- net/balance/Makefile | 1 + net/balance/files/balance.sh.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/balance/Makefile b/net/balance/Makefile index 22a9c88720cb..f20ebcbd5ce0 100644 --- a/net/balance/Makefile +++ b/net/balance/Makefile @@ -7,6 +7,7 @@ PORTNAME= balance PORTVERSION= 3.35 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.inlab.de/ \ ${MASTER_SITE_SOURCEFORGE_EXTENDED} diff --git a/net/balance/files/balance.sh.in b/net/balance/files/balance.sh.in index 73c0ee98d4a5..53b1bf0382c0 100644 --- a/net/balance/files/balance.sh.in +++ b/net/balance/files/balance.sh.in @@ -12,6 +12,7 @@ # #balance_enable="YES" #balance_hosts="host1" +#balance_host1_flags="-a" #balance_host1_address="host1.external.example" #balance_host1_ports="http 8180" #balance_host1_targets="host1.internal.example" @@ -34,10 +35,11 @@ start_cmd() if [ -x "${command}" ]; then for host in ${balance_hosts}; do eval ports=\"\${balance_${host}_ports}\" + eval flags=\"\${balance_${host}_flags}\" eval address=\"\${balance_${host}_address}\" eval targets=\"\${balance_${host}_targets}\" for port in ${ports}; do - "${command}" -b ${address} ${port} ${targets} + "${command}" ${flags} -b ${address} ${port} ${targets} done done fi -- cgit