summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2005-01-06 23:09:31 +0000
committerKris Kennaway <kris@FreeBSD.org>2005-01-06 23:09:31 +0000
commitdb37071d1d2de1c4e6318d83ee0096f893a1016e (patch)
tree17fa5dfe4211fb76bb27337259cd479d39297f3a /Tools
parent* Include portbuild.conf before portbuild.${hostname} to reset the default (diff)
Allow machines to use an alternate address for polling for job load (e.g.
if the machine is behind a NAT and is not directly addressable, we can use a localhost port forward to contact it) Approved by: portmgr (self)
Notes
Notes: svn path=/head/; revision=125738
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/pollmachine4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/pollmachine b/Tools/portbuild/scripts/pollmachine
index 75cd9885ddee..6484bb37344c 100755
--- a/Tools/portbuild/scripts/pollmachine
+++ b/Tools/portbuild/scripts/pollmachine
@@ -10,12 +10,14 @@ else
queue=0
fi
-infoseek_host=$m
infoseek_port=infoseek
. ${buildroot}/${i}/portbuild.conf
if [ -f ${buildroot}/${i}/portbuild.${m} ]; then
. ${buildroot}/${i}/portbuild.${m}
fi
+if [ -z "${infoseek_host}" ]; then
+ infoseek_host=$m
+fi
if (/usr/local/bin/nc -w 5 ${infoseek_host} ${infoseek_port} > ${buildroot}/${i}/loads/$m < /dev/null); then
if [ "${queue}" = 1 ]; then
num=$(awk '{print $1}' ${buildroot}/${i}/loads/$m)