From: NTP Release Engineering Date: Sun, 16 Jun 2024 05:48:23 +0000 (-0700) Subject: build, flock-build, and buildkey updates from stenn@ntp.org X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6b1bb85050cfd297df7628621acb19bcc75ca9;p=thirdparty%2Fntp.git build, flock-build, and buildkey updates from stenn@ntp.org bk: 666e7ca7jDHqu_t8vXcv52vEO-H7DA --- diff --git a/ChangeLog b/ChangeLog index f4a196aa5..dad7b483b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +--- +* build script: Use hostname.site for NTF build hosts. Use the full + hostname for the buildkey. +* flock-build: Try to use the full hostname for the buildkey. + --- (4.2.8p18) 2024/05/25 Released by Harlan Stenn diff --git a/build b/build index f6dca6b35..fa90c22a5 100755 --- a/build +++ b/build @@ -2,7 +2,8 @@ LOGF=make.log IAM=`hostname || uname -n` -MYNAME=`IFS=. ; set $IAM ; echo $1` +MYNAME=`echo $IAM | cut -d. -f1` +MYNAME2=`echo $IAM | cut -d. -f1-2` SIG= case "$1" in @@ -10,7 +11,7 @@ case "$1" in SIG=$1 shift CONFIG_ARGS="$@" - KEY=`sed -e q < .buildkey-$MYNAME` + KEY=`sed -e q < .buildkey-$IAM` case "$SIG" in $KEY) ;; *) @@ -52,9 +53,12 @@ esac case "$NTP_BDIR" in '') case "$IAM" in - *.ntp.org | *.ntfo.org) + *.ntp.org) NTP_BDIR=host ;; + *.ntfo.org) + NTP_BDIR=host2 + ;; *.udel.edu) NTP_BDIR=host # HMS: --enable-local-libopts is the default now... @@ -76,6 +80,9 @@ case "$NTP_BDIR" in host) BASEDIR=A.$MYNAME ;; + host2) + BASEDIR=A.$MYNAME2 + ;; cvo) BASEDIR=A.$CVO ;; diff --git a/flock-build b/flock-build index 14767b934..07ac3d6f1 100755 --- a/flock-build +++ b/flock-build @@ -7,7 +7,7 @@ case "$1" in '--one'|'-1') shift FB_FIRSTONLY=1 - LIST=$MYNAME + LIST=$IAM ;; *) FB_FIRSTONLY=0 @@ -51,7 +51,7 @@ c_d=${PWD:-`pwd`} SIG=`perl -e 'print rand'` case "$LIST" in - '') LIST="pogo" ;; + '') LIST="pogo.udel.edu" ;; esac for i in $LIST