head	1.1;
access;
symbols
	RELENG_8_4:1.1.0.22
	RELENG_9_1_0_RELEASE:1.1
	RELENG_9_1:1.1.0.20
	RELENG_9_1_BP:1.1
	RELENG_8_3_0_RELEASE:1.1
	RELENG_8_3:1.1.0.18
	RELENG_8_3_BP:1.1
	RELENG_9_0_0_RELEASE:1.1
	RELENG_9_0:1.1.0.16
	RELENG_9_0_BP:1.1
	RELENG_9:1.1.0.14
	RELENG_9_BP:1.1
	RELENG_7_4_0_RELEASE:1.1.2.1
	RELENG_8_2_0_RELEASE:1.1
	RELENG_7_4:1.1.2.1.0.8
	RELENG_7_4_BP:1.1.2.1
	RELENG_8_2:1.1.0.12
	RELENG_8_2_BP:1.1
	RELENG_8_1_0_RELEASE:1.1
	RELENG_8_1:1.1.0.10
	RELENG_8_1_BP:1.1
	RELENG_7_3_0_RELEASE:1.1.2.1
	RELENG_7_3:1.1.2.1.0.6
	RELENG_7_3_BP:1.1.2.1
	RELENG_8_0_0_RELEASE:1.1
	RELENG_8_0:1.1.0.8
	RELENG_8_0_BP:1.1
	RELENG_8:1.1.0.6
	RELENG_8_BP:1.1
	RELENG_7_2_0_RELEASE:1.1.2.1
	RELENG_7_2:1.1.2.1.0.4
	RELENG_7_2_BP:1.1.2.1
	RELENG_7_1_0_RELEASE:1.1.2.1
	RELENG_6_4_0_RELEASE:1.1.4.1
	RELENG_7_1:1.1.2.1.0.2
	RELENG_7_1_BP:1.1.2.1
	RELENG_6_4:1.1.4.1.0.2
	RELENG_6_4_BP:1.1.4.1
	RELENG_6:1.1.0.4
	RELENG_7:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2008.08.22.15.58.00;	author roberto;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.22.1;
next	;

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

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

1.1.22.1
date	2008.08.22.15.58.00;	author svnexp;	state dead;
branches;
next	1.1.22.2;

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


desc
@@


1.1
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
@#! /bin/sh

#  This "bootstrap" script performs various pre-autoreconf actions
#  that are required after pulling fresh sources from the repository.
#
#  NOTE:  THE NTP VERSION NUMBER COMES FROM packageinfo.sh
#
#  all other instances of it anywhere in the source base have propagated
#  from this one source.
#
#  To use the raw sources from the repository, you must have the following
#  tools available to you:
#
#  1.  Autoconf and Automake.
#
#  2.  lynx.  This is used to extract the COPYRIGHT file extracted from
#      the html documentation.
#
#  *** The following are no longer needed for simple builds from the repo
#  3.  AutoGen.  The repository does *not* contain the files generated from
#      the option definition files and it does not contain the libopts
#      tear-off/redistributable library.
#
#      Note: AutoGen needs GNU Guile.
#
#  4.  gunzip.  The tear-off library is a gzipped tarball.

set -e

scripts/genver

# autoreconf says:
# The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL,
# AUTOPOINT, LIBTOOLIZE, M4 are honored.

AUTORECONF=${AUTORECONF:-autoreconf}

case `hostname` in
 pogo.udel.edu)
    if fgrep -q 4.2.4 version.m4; then
	AUTOCONF=autoconf-2.59
	AUTOHEADER=autoheader-2.59
	AUTOMAKE=automake-1.9
	ACLOCAL=aclocal-1.9
	export AUTOCONF AUTOHEADER AUTOMAKE ACLOCAL
    fi
    ;;
esac

# 20060629: HMS: Let's try checking in libopts and the autogen-generated files
## The copy for ntp...
#rm -rf libopts*
#gunzip -c $(autoopts-config --libsrc) | (
#  tar -xvf -
#  mv libopts-*.*.* libopts )

## The copy for sntp...
#rm -rf sntp/libopts*
#gunzip -c $(autoopts-config --libsrc) | (
#  cd sntp
#  tar -xvf -
#  mv libopts-*.*.* libopts )

def_files=`find [B-Za-z]* -type f -name '*.def' -print | fgrep -v /SCCS/`
prog_opt_files=`grep -l '^prog.name' $def_files`

## AutoGen stuff

#incdir=${PWD}/include

#for f in ${prog_opt_files}
#do
#  ( cd $(dirname ${f})
#    echo "Running autogen on $f..."
#    autogen -L${incdir} $(basename ${f})
#  ) || exit 1
#done

## Non-AutoGen stuff

for i in autogen-version.def version.def
do
    cmp -s include/$i sntp/$i || cp -p include/$i sntp/$i
done

# touch the stuff generated by the opt files

for f in ${prog_opt_files}
do
    f=`echo $f | sed -e 's/-opts.def//'`
    l=
    for i in `ls -1 $f*`
    do
	case "$i" in
	 *.c|*.h|*.1|*.texi|*.menu)
	    l="$l $i"
	    ;;
	esac
    done
    case "$l" in
     '') ;;
     *) touch $l
	;;
    esac
done

## EOAutoGen stuff

cp bincheck.mf sntp/

${AUTORECONF} -i -v

# HMS: 20060618: Now that we use separate copies of libopts
# we should only need the previous line.
#
## HMS: 20060615: the next line seems to be needed to make sure
## we get the correct srcdir path in sntp/libopts/Makefile.in
#rm -rf sntp/autom4te.cache
#
#(cd sntp && ${AUTORECONF} -i -v)
@


1.1.22.1
log
@file bootstrap was added on branch RELENG_8_4 on 2013-03-28 13:01:44 +0000
@
text
@d1 120
@


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

#  This "bootstrap" script performs various pre-autoreconf actions
#  that are required after pulling fresh sources from the repository.
#
#  NOTE:  THE NTP VERSION NUMBER COMES FROM packageinfo.sh
#
#  all other instances of it anywhere in the source base have propagated
#  from this one source.
#
#  To use the raw sources from the repository, you must have the following
#  tools available to you:
#
#  1.  Autoconf and Automake.
#
#  2.  lynx.  This is used to extract the COPYRIGHT file extracted from
#      the html documentation.
#
#  *** The following are no longer needed for simple builds from the repo
#  3.  AutoGen.  The repository does *not* contain the files generated from
#      the option definition files and it does not contain the libopts
#      tear-off/redistributable library.
#
#      Note: AutoGen needs GNU Guile.
#
#  4.  gunzip.  The tear-off library is a gzipped tarball.

set -e

scripts/genver

# autoreconf says:
# The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL,
# AUTOPOINT, LIBTOOLIZE, M4 are honored.

AUTORECONF=${AUTORECONF:-autoreconf}

case `hostname` in
 pogo.udel.edu)
    if fgrep -q 4.2.4 version.m4; then
	AUTOCONF=autoconf-2.59
	AUTOHEADER=autoheader-2.59
	AUTOMAKE=automake-1.9
	ACLOCAL=aclocal-1.9
	export AUTOCONF AUTOHEADER AUTOMAKE ACLOCAL
    fi
    ;;
esac

# 20060629: HMS: Let's try checking in libopts and the autogen-generated files
## The copy for ntp...
#rm -rf libopts*
#gunzip -c $(autoopts-config --libsrc) | (
#  tar -xvf -
#  mv libopts-*.*.* libopts )

## The copy for sntp...
#rm -rf sntp/libopts*
#gunzip -c $(autoopts-config --libsrc) | (
#  cd sntp
#  tar -xvf -
#  mv libopts-*.*.* libopts )

def_files=`find [B-Za-z]* -type f -name '*.def' -print | fgrep -v /SCCS/`
prog_opt_files=`grep -l '^prog.name' $def_files`

## AutoGen stuff

#incdir=${PWD}/include

#for f in ${prog_opt_files}
#do
#  ( cd $(dirname ${f})
#    echo "Running autogen on $f..."
#    autogen -L${incdir} $(basename ${f})
#  ) || exit 1
#done

## Non-AutoGen stuff

for i in autogen-version.def version.def
do
    cmp -s include/$i sntp/$i || cp -p include/$i sntp/$i
done

# touch the stuff generated by the opt files

for f in ${prog_opt_files}
do
    f=`echo $f | sed -e 's/-opts.def//'`
    l=
    for i in `ls -1 $f*`
    do
	case "$i" in
	 *.c|*.h|*.1|*.texi|*.menu)
	    l="$l $i"
	    ;;
	esac
    done
    case "$l" in
     '') ;;
     *) touch $l
	;;
    esac
done

## EOAutoGen stuff

cp bincheck.mf sntp/

${AUTORECONF} -i -v

# HMS: 20060618: Now that we use separate copies of libopts
# we should only need the previous line.
#
## HMS: 20060615: the next line seems to be needed to make sure
## we get the correct srcdir path in sntp/libopts/Makefile.in
#rm -rf sntp/autom4te.cache
#
#(cd sntp && ${AUTORECONF} -i -v)
@


1.1.4.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
@@


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

MFH ntpd 4.2.4p5.

Approved by:	re (kensmith)
@
text
@@

