head	1.3;
access;
symbols
	RELENG_8_4:1.3.0.8
	RELENG_9_1_0_RELEASE:1.3
	RELENG_9_1:1.3.0.6
	RELENG_9_1_BP:1.3
	RELENG_8_3_0_RELEASE:1.2
	RELENG_8_3:1.2.0.10
	RELENG_8_3_BP:1.2
	RELENG_9_0_0_RELEASE:1.3
	RELENG_9_0:1.3.0.4
	RELENG_9_0_BP:1.3
	RELENG_9:1.3.0.2
	RELENG_9_BP:1.3
	RELENG_7_4_0_RELEASE:1.1.1.3.18.1
	RELENG_8_2_0_RELEASE:1.2
	RELENG_7_4:1.1.1.3.18.1.0.8
	RELENG_7_4_BP:1.1.1.3.18.1
	RELENG_8_2:1.2.0.8
	RELENG_8_2_BP:1.2
	RELENG_8_1_0_RELEASE:1.2
	RELENG_8_1:1.2.0.6
	RELENG_8_1_BP:1.2
	RELENG_7_3_0_RELEASE:1.1.1.3.18.1
	RELENG_7_3:1.1.1.3.18.1.0.6
	RELENG_7_3_BP:1.1.1.3.18.1
	RELENG_8_0_0_RELEASE:1.2
	RELENG_8_0:1.2.0.4
	RELENG_8_0_BP:1.2
	RELENG_8:1.2.0.2
	RELENG_8_BP:1.2
	RELENG_7_2_0_RELEASE:1.1.1.3.18.1
	RELENG_7_2:1.1.1.3.18.1.0.4
	RELENG_7_2_BP:1.1.1.3.18.1
	RELENG_7_1_0_RELEASE:1.1.1.3.18.1
	RELENG_6_4_0_RELEASE:1.1.1.3.8.1
	RELENG_7_1:1.1.1.3.18.1.0.2
	RELENG_7_1_BP:1.1.1.3.18.1
	RELENG_6_4:1.1.1.3.8.1.0.2
	RELENG_6_4_BP:1.1.1.3.8.1
	RELENG_7_0_0_RELEASE:1.1.1.3
	RELENG_6_3_0_RELEASE:1.1.1.3
	RELENG_7_0:1.1.1.3.0.22
	RELENG_7_0_BP:1.1.1.3
	RELENG_6_3:1.1.1.3.0.20
	RELENG_6_3_BP:1.1.1.3
	RELENG_7:1.1.1.3.0.18
	RELENG_7_BP:1.1.1.3
	RELENG_6_2_0_RELEASE:1.1.1.3
	RELENG_6_2:1.1.1.3.0.16
	RELENG_6_2_BP:1.1.1.3
	RELENG_5_5_0_RELEASE:1.1.1.3
	RELENG_5_5:1.1.1.3.0.14
	RELENG_5_5_BP:1.1.1.3
	RELENG_6_1_0_RELEASE:1.1.1.3
	RELENG_6_1:1.1.1.3.0.12
	RELENG_6_1_BP:1.1.1.3
	RELENG_6_0_0_RELEASE:1.1.1.3
	RELENG_6_0:1.1.1.3.0.10
	RELENG_6_0_BP:1.1.1.3
	RELENG_6:1.1.1.3.0.8
	RELENG_6_BP:1.1.1.3
	RELENG_5_4_0_RELEASE:1.1.1.3
	RELENG_5_4:1.1.1.3.0.6
	RELENG_5_4_BP:1.1.1.3
	RELENG_4_11_0_RELEASE:1.1.1.1.2.1
	RELENG_4_11:1.1.1.1.2.1.0.14
	RELENG_4_11_BP:1.1.1.1.2.1
	RELENG_5_3_0_RELEASE:1.1.1.3
	RELENG_5_3:1.1.1.3.0.4
	RELENG_5_3_BP:1.1.1.3
	RELENG_5:1.1.1.3.0.2
	RELENG_5_BP:1.1.1.3
	v4_2_0:1.1.1.3
	RELENG_4_10_0_RELEASE:1.1.1.1.2.1
	RELENG_4_10:1.1.1.1.2.1.0.12
	RELENG_4_10_BP:1.1.1.1.2.1
	RELENG_5_2_1_RELEASE:1.1.1.2
	RELENG_5_2_0_RELEASE:1.1.1.2
	RELENG_5_2:1.1.1.2.0.6
	RELENG_5_2_BP:1.1.1.2
	RELENG_4_9_0_RELEASE:1.1.1.1.2.1
	RELENG_4_9:1.1.1.1.2.1.0.10
	RELENG_4_9_BP:1.1.1.1.2.1
	RELENG_5_1_0_RELEASE:1.1.1.2
	RELENG_5_1:1.1.1.2.0.4
	RELENG_5_1_BP:1.1.1.2
	RELENG_4_8_0_RELEASE:1.1.1.1.2.1
	RELENG_4_8:1.1.1.1.2.1.0.8
	RELENG_4_8_BP:1.1.1.1.2.1
	RELENG_5_0_0_RELEASE:1.1.1.2
	RELENG_5_0:1.1.1.2.0.2
	RELENG_5_0_BP:1.1.1.2
	v4_1_1b:1.1.1.2
	v4_1_1a:1.1.1.1
	RELENG_4_7_0_RELEASE:1.1.1.1.2.1
	RELENG_4_7:1.1.1.1.2.1.0.6
	RELENG_4_7_BP:1.1.1.1.2.1
	RELENG_4_6_2_RELEASE:1.1.1.1.2.1
	RELENG_4_6_1_RELEASE:1.1.1.1.2.1
	RELENG_4_6_0_RELEASE:1.1.1.1.2.1
	RELENG_4_6:1.1.1.1.2.1.0.4
	RELENG_4_6_BP:1.1.1.1.2.1
	RELENG_4_5_0_RELEASE:1.1.1.1.2.1
	RELENG_4_5:1.1.1.1.2.1.0.2
	RELENG_4_5_BP:1.1.1.1.2.1
	RELENG_4:1.1.1.1.0.2
	v4_1_0:1.1.1.1
	DMILLS:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2009.12.15.14.58.10;	author roberto;	state Exp;
branches
	1.3.8.1;
next	1.2;

1.2
date	2008.08.22.15.58.00;	author roberto;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.29.14.35.07;	author roberto;	state Exp;
branches
	1.1.1.1;
next	;

1.3.8.1
date	2009.12.15.14.58.10;	author svnexp;	state dead;
branches;
next	1.3.8.2;

1.3.8.2
date	2013.03.28.13.01.44;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2001.08.29.14.35.07;	author roberto;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;

1.1.1.2
date	2002.11.04.19.34.46;	author roberto;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.07.20.15.01.01;	author roberto;	state Exp;
branches
	1.1.1.3.8.1
	1.1.1.3.18.1;
next	;

1.1.1.1.2.1
date	2001.12.21.17.38.54;	author roberto;	state Exp;
branches;
next	;

1.1.1.3.8.1
date	2008.09.04.12.49.54;	author roberto;	state Exp;
branches;
next	;

1.1.1.3.18.1
date	2008.09.03.08.49.07;	author roberto;	state Exp;
branches;
next	;


desc
@@


1.3
log
@SVN rev 200576 on 2009-12-15 14:58:10Z by roberto

Merge 4.2.4p8 into contrib (r200452 & r200454).

Subversion is being difficult here so take a hammer and get it in.

MFC after:		2 weeks
Security:		CVE-2009-3563
@
text
@#! /bin/sh

BUILD_ARGS="$@@"
PARSE="--enable-parse-clocks"
#PARSE=
STD="--enable-simulator"

case "$SIMUL" in
 '') PARALLEL_BUILDS=1
     ;;
 *)  PARALLEL_BUILDS=$SIMUL
esac

case "$PARALLEL_BUILDS" in
 1)  ;;
 *)  echo Launching $PARALLEL_BUILDS parallel builds on each machine
esac

# Backroom:
#   barnstable	   freebsd-6.1
#   beauregard	   freebsd-6.0
# X churchy	   alpha-dec-osf5.1
#   deacon	   sparc-sun-solaris2.10
#   grundoon	   freebsd-6.2
#   howland	   freebsd-6.1
# o macabre	   freebsd-6.1-STABLE
# o mort	   freebsd-6.1
#   whimsy	   sparc-sun-solaris2.10

# Campus:
# * baldwin	   sparc-sun-solaris2.10
# * bridgeport	   sparc-sun-solaris2.10
# * cowbird	   freebsd-6.1
# * malarky	   sparc-sun-solaris2.10
# * pogo	   sparc-sun-solaris2.10
# * rackety	   freebsd-6.1

# HMS: we need $PWD because solaris produces /deacon/backroom when
# we are in /backroom and in general there is no /deacon/backroom.
c_d=${PWD:-`pwd`}

SIG=`perl -e 'print rand'`

case "$LIST" in
 '') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
esac

for i in $LIST
do
    SKIPTHIS=0
    [ -f .buildkey-$i ] && SKIPTHIS=1
    case "$SKIPTHIS" in
     1)
        echo flock-build running on $i? check LIST, skipping
        ;;
     0)   
        echo $i
        echo $SIG > .buildkey-$i
        case "1" in
         0)
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
            ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
            ;;
         1)
            cat > .flockbuild-$i-$SIG <<ENDQUOT
#!/bin/sh

# depends on job control and expects to be invoked under ssh -tt

cd $c_d
COUNT=0

./build $SIG $PARSE $STD $BUILD_ARGS &

COUNT=\`expr \$COUNT + 1\`
echo $i started build \$COUNT of 4
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait

./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS &

COUNT=\`expr \$COUNT + 1\`
echo $i started build \$COUNT of 4
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait

./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS &

COUNT=\`expr \$COUNT + 1\`
echo $i started build \$COUNT of 4
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait

./build $SIG        $STD --disable-all-clocks $BUILD_ARGS &

COUNT=\`expr \$COUNT + 1\`
echo $i started build \$COUNT of 4
wait
echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
rm .buildkey-$i
ENDQUOT
           chmod +x .flockbuild-$i-$SIG
           ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
                    rm $c_d/.flockbuild-$i-$SIG" 2>/dev/null &
        esac
    esac
done
echo `date -u '+%H:%M:%S'` flock-build launched
@


1.3.8.1
log
@file flock-build was added on branch RELENG_8_4 on 2013-03-28 13:01:44 +0000
@
text
@d1 106
@


1.3.8.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 52
#! /bin/sh

BUILD_ARGS="$@@"
PARSE="--enable-parse-clocks"
#PARSE=
STD="--enable-simulator"

# Backroom:
#   beauregard	   freebsd-6
# o churchy	   alpha-dec-osf5.1
#   deacon	   sparc-sun-solaris2.10
#   grundoon	   freebsd-6.1
#   howland	   freebsd-6.1
# o macabre	   sparc-sun-solaris2.8
# o mort	   sparc-sun-solaris2.8
#   whimsy	   sparc-sun-solaris2.10

# Campus:
# * baldwin	   sparc-sun-solaris2.10
# * bridgeport	   sparc-sun-solaris2.10
# * cowbird	   freebsd-6.1
# * malarky	   sparc-sun-solaris2.10
# * pogo	   sparc-sun-solaris2.10
# * rackety	   freebsd-6.1

c_d=${PWD:-`pwd`}

SIG=`perl -e 'print rand'`
echo $SIG > .buildkey

case "$LIST" in
 '') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
esac

for i in $LIST
do
    echo $i
    case "1" in
     0)
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
	;;
     1) ssh $i "cd $c_d ; \
./build $SIG $PARSE $STD $BUILD_ARGS ; \
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
&
	;;
    esac
done
@


1.2
log
@SVN rev 182007 on 2008-08-22 15:58:00Z by roberto

Merge ntpd & friends 4.2.4p5 from vendor/ntp/dist into head.  Next commit
will update usr.sbin/ntp to match this.

MFC after:	2 weeks
@
text
@d8 11
d20 3
a22 2
#   beauregard	   freebsd-6
# o churchy	   alpha-dec-osf5.1
d24 1
a24 1
#   grundoon	   freebsd-6.1
d26 2
a27 2
# o macabre	   sparc-sun-solaris2.8
# o mort	   sparc-sun-solaris2.8
d38 2
a42 1
echo $SIG > .buildkey
d50 54
a103 14
    echo $i
    case "1" in
     0)
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
	;;
     1) ssh $i "cd $c_d ; \
./build $SIG $PARSE $STD $BUILD_ARGS ; \
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
&
	;;
d106 1
@


1.1
log
@Initial revision
@
text
@d6 1
d8 9
a16 13
# * baldwin        sparc-sun-solaris2.7
#   bridgeport     sparc-sun-solaris2.6
#   bunnylou       alpha-dec-osf4.0
# * churchy        alpha-dec-osf4.0
#   cowbird        alpha-dec-osf4.0
#   grundoon       sparc-sun-sunos4.1.3
# * hepzibah       freebsd-2.2.5
#   malarky        sparc-sun-solaris2.8
# * pogo           sparc-sun-solaris2.8
# * porkypine      mips-dec-ultrix4.4
# * rackety        sparc-sun-sunos4.1.3/cc
# * snavely        hppa1.1-hp-hpux10.20
#   whimsy         sparc-sun-solaris2.7
d18 9
a26 1
c_d=`pwd`
d32 1
a32 1
 '') LIST="baldwin churchy hepzibah pogo porkypine rackety snavely" ;;
d40 3
a42 3
    ssh $i "cd $c_d ; ./build $SIG $PARSE $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE --with-crypto=autokey $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE --without-crypto $BUILD_ARGS" &
d45 5
a49 3
./build $SIG $PARSE $BUILD_ARGS ; \
./build $SIG $PARSE --with-crypto=autokey $BUILD_ARGS ; \
./build $SIG $PARSE --without-crypto $BUILD_ARGS" &
@


1.1.1.1
log
@Virgin import of ntpd 4.1.0
@
text
@@


1.1.1.2
log
@Virgin import of ntpd 4.1.1b
@
text
@d7 1
a7 1
#   baldwin        sparc-sun-solaris2.7
d9 2
a10 2
# * bunnylou       alpha-dec-osf4.0
# * churchy        alpha-dec-osf5.1
d13 1
a13 1
# * hepzibah       freebsd-4
a17 1
# ? roogey	   debian
d19 1
a19 1
#   whimsy         sparc-sun-solaris2.8
d27 1
a27 1
 '') LIST="bunnylou churchy hepzibah pogo porkypine rackety snavely" ;;
@


1.1.1.3
log
@Virgin import of ntpd 4.2.0
@
text
@a5 1
SNTP="--with-sntp"
d7 11
a17 20
# Backroom:
#   beauregard	   freebsd-4
#   deacon	   sparc-sun-solaris2.7
#   grundoon	   sparc-sun-sunos4.1.3
#   howland	   freebsd-4
#   mort	   sparc-sun-solaris2.8
#   whimsy	   sparc-sun-solaris2.8

# Campus:
# * albert	   redhat-8
#   baldwin	   sparc-sun-solaris2.8
#   bridgeport	   sparc-sun-solaris2.8
# * bunnylou	   alpha-dec-osf4.0
# * churchy	   alpha-dec-osf5.1
#   cowbird	   alpha-dec-osf4.0
# * hepzibah	   freebsd-4
#   malarky	   sparc-sun-solaris2.8
# * pogo	   sparc-sun-solaris2.8
# * porkypine	   mips-dec-ultrix4.4
# * rackety	   sparc-sun-sunos4.1.3/cc
d19 2
a20 1
# * snavely	   hppa1.1-hp-hpux10.20
d28 1
a28 1
 '') LIST="albert bunnylou churchy hepzibah pogo porkypine rackety snavely" ;;
d36 3
a38 2
    ssh $i "cd $c_d ; ./build $SIG $PARSE $SNTP $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $SNTP --without-crypto $BUILD_ARGS" &
d41 3
a43 2
./build $SIG $PARSE $SNTP $BUILD_ARGS ; \
./build $SIG $PARSE $SNTP --without-crypto $BUILD_ARGS" &
@


1.1.1.3.8.1
log
@SVN rev 182752 on 2008-09-04 12:49:54Z by roberto

MFH ntpd 4.2.4p5.

Main difference with the stable/7 merge is that 6.x does not support -lrt and
the corresponding *timer functions.

Approved by:	re (kensmith)
@
text
@d6 1
a6 1
STD="--enable-simulator"
d9 6
a14 8
#   beauregard	   freebsd-6
# o churchy	   alpha-dec-osf5.1
#   deacon	   sparc-sun-solaris2.10
#   grundoon	   freebsd-6.1
#   howland	   freebsd-6.1
# o macabre	   sparc-sun-solaris2.8
# o mort	   sparc-sun-solaris2.8
#   whimsy	   sparc-sun-solaris2.10
d17 13
a29 6
# * baldwin	   sparc-sun-solaris2.10
# * bridgeport	   sparc-sun-solaris2.10
# * cowbird	   freebsd-6.1
# * malarky	   sparc-sun-solaris2.10
# * pogo	   sparc-sun-solaris2.10
# * rackety	   freebsd-6.1
d31 1
a31 1
c_d=${PWD:-`pwd`}
d37 1
a37 1
 '') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
d45 2
a46 3
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
d49 2
a50 5
./build $SIG $PARSE $STD $BUILD_ARGS ; \
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
&
@


1.1.1.3.18.1
log
@SVN rev 182716 on 2008-09-03 08:49:07Z by roberto

MFH ntpd 4.2.4p5.

Approved by:	re (kensmith)
@
text
@d6 1
a6 1
STD="--enable-simulator"
d9 6
a14 8
#   beauregard	   freebsd-6
# o churchy	   alpha-dec-osf5.1
#   deacon	   sparc-sun-solaris2.10
#   grundoon	   freebsd-6.1
#   howland	   freebsd-6.1
# o macabre	   sparc-sun-solaris2.8
# o mort	   sparc-sun-solaris2.8
#   whimsy	   sparc-sun-solaris2.10
d17 13
a29 6
# * baldwin	   sparc-sun-solaris2.10
# * bridgeport	   sparc-sun-solaris2.10
# * cowbird	   freebsd-6.1
# * malarky	   sparc-sun-solaris2.10
# * pogo	   sparc-sun-solaris2.10
# * rackety	   freebsd-6.1
d31 1
a31 1
c_d=${PWD:-`pwd`}
d37 1
a37 1
 '') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
d45 2
a46 3
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
    ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
d49 2
a50 5
./build $SIG $PARSE $STD $BUILD_ARGS ; \
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS ; \
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS ; \
./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" \
&
@


1.1.1.1.2.1
log
@MFC: ntp 4.1.0.

	See ChangeLog for all the many changes/bug fixes/new drivers.

	This code has been in CURRENT for months and several people use
	this version on 4.4-STABLE.

Approved by:	re
@
text
@@

