diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-08 11:54:56 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-08 11:54:56 +0000 |
commit | d90d9ddf599f4cc18c15dc94dba1c073c8c10833 (patch) | |
tree | f86aedbba3862f0ec5487cef91ca36c0f3472df8 /net/balance | |
parent | - Simplify build (diff) |
- Add support for setting startup flags in rc script via rc.conf variable
PR: ports/125209
Submitted by: Case Dorsett <casedorsett@gmail.com>
Approved by: Joseph Scott <joseph@randomnetworks.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=216526
Diffstat (limited to 'net/balance')
-rw-r--r-- | net/balance/Makefile | 1 | ||||
-rw-r--r-- | net/balance/files/balance.sh.in | 4 |
2 files changed, 4 insertions, 1 deletions
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 |