Index: head/net/balance/Makefile =================================================================== --- head/net/balance/Makefile (revision 216525) +++ head/net/balance/Makefile (revision 216526) @@ -1,32 +1,33 @@ # New ports collection makefile for: balance # Date created: Wed 6 Dec 2000 # Whom: Joseph Scott # # $FreeBSD$ # PORTNAME= balance PORTVERSION= 3.35 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.inlab.de/ \ ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= balance MAINTAINER= joseph@randomnetworks.com COMMENT= Simple but powerful generic tcp proxy with round robin features ALL_TARGET= balance USE_RC_SUBR= balance.sh MAN1= balance.1 pre-build: @${REINPLACE_CMD} -e 's|^CFLAGS|CFLAGS?|' \ -e 's|^CC|CC?|' ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/balance ${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/balance.1 ${PREFIX}/man/man1 @${MKDIR} /var/run/balance .include Property changes on: head/net/balance/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.22 \ No newline at end of property +1.23 \ No newline at end of property Index: head/net/balance/files/balance.sh.in =================================================================== --- head/net/balance/files/balance.sh.in (revision 216525) +++ head/net/balance/files/balance.sh.in (revision 216526) @@ -1,79 +1,81 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: balance # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable balance: # #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" # # See balance(8) for flags # . %%RC_SUBR%% name=balance rcvar=`set_rcvar` command=%%PREFIX%%/bin/balance start_cmd=start_cmd stop_cmd=stop_cmd status_cmd=status_cmd 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 } stop_cmd() { if [ -x "${command}" ]; then for host in ${balance_hosts}; do eval ports=\"\${balance_${host}_ports}\" eval address=\"\${balance_${host}_address}\" for port in ${ports}; do echo "balance at ${address}:${port}" "${command}" -b ${address} -c kill ${port} done done fi } status_cmd() { if [ -x "${command}" ]; then for host in ${balance_hosts}; do eval ports=\"\${balance_${host}_ports}\" eval address=\"\${balance_${host}_address}\" for port in ${ports}; do echo "balance at ${address}:${port}" "${command}" -b ${address} -c show ${port} done done fi } # set defaults balance_enable=${balance_enable:-"NO"} load_rc_config $name run_rc_command "$1" Property changes on: head/net/balance/files/balance.sh.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property