diff options
author | roberto <roberto@FreeBSD.org> | 1999-12-13 14:09:56 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 1999-12-13 14:09:56 +0000 |
commit | 2c4532a5b204bf46ef9bed83b39fad4796af075f (patch) | |
tree | 24b9c349b4d68d37c1d8135507f472611002728c /usr.sbin/ntp/scripts | |
parent | 51419295b1881d06d16787b11610eb01251cae2a (diff) | |
download | FreeBSD-src-2c4532a5b204bf46ef9bed83b39fad4796af075f.zip FreeBSD-src-2c4532a5b204bf46ef9bed83b39fad4796af075f.tar.gz |
Please welcome the brand new ntp4 daemon & utilities in the FreeBSD tree.
This is the second part of the commit (the third -- link in usr.sbin/Makefile)
will be done after a more complete review by phk & obrien.
NOTE: the number of drivers included in the default configuration is very
minimal, mainly local clocks and the one I use RAWDCF. Anyone wanting to
have a more complete version will find recompilation very easy.
It builds and runs on both alpha & i386. It also does survive "make world".
Reviewed by: phk, obrien (partly)
Diffstat (limited to 'usr.sbin/ntp/scripts')
-rwxr-xr-x | usr.sbin/ntp/scripts/mkver | 32 | ||||
-rwxr-xr-x | usr.sbin/ntp/scripts/ntpver | 8 |
2 files changed, 40 insertions, 0 deletions
diff --git a/usr.sbin/ntp/scripts/mkver b/usr.sbin/ntp/scripts/mkver new file mode 100755 index 0000000..f7be718 --- /dev/null +++ b/usr.sbin/ntp/scripts/mkver @@ -0,0 +1,32 @@ +#!/bin/sh +# $FreeBSD$ +PROG=${1-UNKNOWN} + +ConfStr="$PROG" + +case "" in + '') ;; + *) ConfStr="$ConfStr RSAREF" ;; +esac + +ConfStr="$ConfStr 4.0.98f `date`" + +if [ ! -f .version ]; then + echo 0 > .version +fi +RUN="`cat .version`" +RUN="`expr $RUN + 1`" +echo $RUN > .version + +ConfStr="$ConfStr (${RUN})" + +echo "Version <${ConfStr}>"; + +rm -f version.c +cat > version.c << -EoF- +/* + * version file for $PROG + */ +#include <config.h> +const char * Version = "${ConfStr}"; +-EoF- diff --git a/usr.sbin/ntp/scripts/ntpver b/usr.sbin/ntp/scripts/ntpver new file mode 100755 index 0000000..6dbc510 --- /dev/null +++ b/usr.sbin/ntp/scripts/ntpver @@ -0,0 +1,8 @@ +#!/bin/sh +# $FreeBSD$ +# print version string of NTP daemon +# Copyright (c) 1997 by Ulrich Windl +# Modified 970318: Harlan Stenn: rewritten... +# usage: ntpver hostname + +ntpq -c "rv 0 daemon_version" $* | awk '/daemon_version/ { print $2 }' |