initial version of reachover make- and support-files
This commit is contained in:
parent
abb0f93cd7
commit
1ca06f9c92
5
external/bsd/ntp/Makefile
vendored
Normal file
5
external/bsd/ntp/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:49 kardel Exp $
|
||||
|
||||
SUBDIR+= lib .WAIT bin
|
||||
|
||||
.include <bsd.subdir.mk>
|
57
external/bsd/ntp/Makefile.inc
vendored
Normal file
57
external/bsd/ntp/Makefile.inc
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
.if !defined(NTP_MAKEFILE_INC)
|
||||
NTP_MAKEFILE_INC=yes
|
||||
|
||||
USE_FORT?= yes # network client/server
|
||||
|
||||
WARNS?= 0
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if ${MKCRYPTO} == "no"
|
||||
NTP_USE_OPENSSL?=no
|
||||
.endif
|
||||
|
||||
IDIST= ${NETBSDSRCDIR}/external/bsd/ntp/dist
|
||||
NTP_SRCDIR= ${NETBSDSRCDIR}/external/bsd/ntp
|
||||
NTP_HTMLDIR= /usr/share/doc/html/ntp
|
||||
|
||||
SYSCONFDIR=/etc
|
||||
LOCALSTATEDIR=/var
|
||||
|
||||
CPPFLAGS+=-DHAVE_CONFIG_H
|
||||
CPPFLAGS+=-I${NTP_SRCDIR}/include \
|
||||
-I${IDIST}/include \
|
||||
-I${IDIST}/lib/isc/include \
|
||||
-I${IDIST}/lib/isc/unix/include \
|
||||
-I${IDIST}/lib/isc/nothreads/include
|
||||
|
||||
.if defined(PROG)
|
||||
LIBNTP!= cd ${.CURDIR}/../../lib/libntp && ${PRINTOBJDIR}
|
||||
LIBISC!= cd ${.CURDIR}/../../lib/libiscntp && ${PRINTOBJDIR}
|
||||
LIBOPTS!= cd ${.CURDIR}/../../lib/libopts && ${PRINTOBJDIR}
|
||||
LIBPARSE!= cd ${.CURDIR}/../../lib/libparse && ${PRINTOBJDIR}
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBOPTS} -lopts
|
||||
DPADD+= ${LIBNTP}/libntp.a ${LIBOPTS}/libopts.a
|
||||
|
||||
.if (${MKCRYPTO} != "no")
|
||||
LDADD+= -lcrypto -lcrypt
|
||||
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
|
||||
.endif
|
||||
|
||||
SRCS+= version.c
|
||||
|
||||
CLEANFILES+=version.c version.o
|
||||
version.c: ${LIBNTP}/libntp.a ${.CURDIR}/../../scripts/mkver ${.CURDIR}/../../importdate
|
||||
${_MKTARGET_CREATE}
|
||||
${HOST_SH} ${.CURDIR}/../../scripts/mkver ${PROG} > /dev/null
|
||||
|
||||
.endif # defined(PROG)
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
||||
|
||||
.endif
|
12
external/bsd/ntp/bin/Makefile
vendored
Normal file
12
external/bsd/ntp/bin/Makefile
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
SUBDIR= ntp-keygen ntpd ntpdate ntpdc ntpq ntptime
|
||||
|
||||
.if ("${MKCRYPTO}" != "no")
|
||||
SUBDIR+= ntp-keygen
|
||||
CPPFLAGS+=-DOPENSSL
|
||||
.endif
|
||||
|
||||
.include "Makefile.inc"
|
||||
|
||||
.include <bsd.subdir.mk>
|
5
external/bsd/ntp/bin/Makefile.inc
vendored
Normal file
5
external/bsd/ntp/bin/Makefile.inc
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
WARNS?= 2
|
26
external/bsd/ntp/bin/ntp-keygen/Makefile
vendored
Normal file
26
external/bsd/ntp/bin/ntp-keygen/Makefile
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
NOGCCERROR=yes
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
||||
PROG= ntp-keygen
|
||||
MAN=
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= ntp-keygen-opts.c \
|
||||
ntp-keygen.c
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBISC} -liscntp -lm
|
||||
DPADD+= ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/util
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
89
external/bsd/ntp/bin/ntpd/Makefile
vendored
Normal file
89
external/bsd/ntp/bin/ntpd/Makefile
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
NOGCCERROR=yes
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
||||
PROG= ntpd
|
||||
MAN=
|
||||
#MAN= named.8 lwresd.8 named.conf.5
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= cmd_args.c \
|
||||
ntp_config.c \
|
||||
ntp_control.c \
|
||||
ntp_crypto.c \
|
||||
ntp_data_structures.c \
|
||||
ntp_filegen.c \
|
||||
ntp_intres.c \
|
||||
ntp_io.c \
|
||||
ntp_loopfilter.c \
|
||||
ntp_monitor.c \
|
||||
ntp_parser.c \
|
||||
ntp_peer.c \
|
||||
ntp_proto.c \
|
||||
ntp_refclock.c \
|
||||
ntp_request.c \
|
||||
ntp_restrict.c \
|
||||
ntp_scanner.c \
|
||||
ntp_signd.c \
|
||||
ntp_timer.c \
|
||||
ntp_util.c \
|
||||
ntpd-opts.c \
|
||||
ntpd.c \
|
||||
ntpsim.c \
|
||||
refclock_acts.c \
|
||||
refclock_arbiter.c \
|
||||
refclock_arc.c \
|
||||
refclock_as2201.c \
|
||||
refclock_atom.c \
|
||||
refclock_bancomm.c \
|
||||
refclock_chronolog.c \
|
||||
refclock_chu.c \
|
||||
refclock_conf.c \
|
||||
refclock_datum.c \
|
||||
refclock_dumbclock.c \
|
||||
refclock_fg.c \
|
||||
refclock_gpsvme.c \
|
||||
refclock_heath.c \
|
||||
refclock_hopfpci.c \
|
||||
refclock_hopfser.c \
|
||||
refclock_hpgps.c \
|
||||
refclock_irig.c \
|
||||
refclock_jjy.c \
|
||||
refclock_jupiter.c \
|
||||
refclock_leitch.c \
|
||||
refclock_local.c \
|
||||
refclock_msfees.c \
|
||||
refclock_mx4200.c \
|
||||
refclock_neoclock4x.c \
|
||||
refclock_nmea.c \
|
||||
refclock_oncore.c \
|
||||
refclock_palisade.c \
|
||||
refclock_parse.c \
|
||||
refclock_pcf.c \
|
||||
refclock_pst.c \
|
||||
refclock_ripencc.c \
|
||||
refclock_shm.c \
|
||||
refclock_tpro.c \
|
||||
refclock_trak.c \
|
||||
refclock_true.c \
|
||||
refclock_tt560.c \
|
||||
refclock_ulink.c \
|
||||
refclock_wwv.c \
|
||||
refclock_wwvb.c \
|
||||
refclock_zyfer.c
|
||||
|
||||
LDADD+= -L${LIBPARSE} -lparse -L${LIBISC} -liscntp -lm -lutil -ldns_sd
|
||||
DPADD+= ${LIBPARSE}/libparse.a ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/ntpd
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
22
external/bsd/ntp/bin/ntpdate/Makefile
vendored
Normal file
22
external/bsd/ntp/bin/ntpdate/Makefile
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ntpdate
|
||||
MAN=
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= ntpdate.c
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBISC} -liscntp -lm
|
||||
DPADD+= ${LIBNTP}/libntp.a ${LIBISC}/libiscntp.a ${LIBM}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/ntpdate
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
25
external/bsd/ntp/bin/ntpdc/Makefile
vendored
Normal file
25
external/bsd/ntp/bin/ntpdc/Makefile
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ntpdc
|
||||
MAN=
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= ntpdc.c \
|
||||
ntpdc_ops.c \
|
||||
ntpdc-opts.c
|
||||
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBISC} -liscntp -lm -ledit
|
||||
DPADD+= ${LIBISC}/libiscntp.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL} ${LIBEDIT}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/ntpdc
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
26
external/bsd/ntp/bin/ntpq/Makefile
vendored
Normal file
26
external/bsd/ntp/bin/ntpq/Makefile
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
# NOGCCERROR=yes
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ntpq
|
||||
MAN=
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= ntpq.c \
|
||||
ntpq-subs.c \
|
||||
ntpq-opts.c
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBOPTS} -lopts -L${LIBISC} -liscntp -ledit -lm
|
||||
#DPADD+= ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/ntpq
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
25
external/bsd/ntp/bin/ntptime/Makefile
vendored
Normal file
25
external/bsd/ntp/bin/ntptime/Makefile
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
NOGCCERROR=yes
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
||||
PROG= ntptime
|
||||
MAN=
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= ntptime.c
|
||||
|
||||
LDADD+= -L${LIBNTP} -lntp -L${LIBISC} -liscntp -lm
|
||||
DPADD+= ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST=${IDIST}/util
|
||||
|
||||
CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
|
||||
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.prog.mk>
|
1
external/bsd/ntp/importdate
vendored
Normal file
1
external/bsd/ntp/importdate
vendored
Normal file
@ -0,0 +1 @@
|
||||
Sun Dec 13 14:48:32 UTC 2009 (import)
|
1412
external/bsd/ntp/include/config.h
vendored
Normal file
1412
external/bsd/ntp/include/config.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
external/bsd/ntp/lib/Makefile
vendored
Normal file
5
external/bsd/ntp/lib/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
SUBDIR+= libntp libiscntp libopts libparse
|
||||
|
||||
.include <bsd.subdir.mk>
|
4
external/bsd/ntp/lib/Makefile.inc
vendored
Normal file
4
external/bsd/ntp/lib/Makefile.inc
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
WARNS?= 2
|
44
external/bsd/ntp/lib/libiscntp/Makefile
vendored
Normal file
44
external/bsd/ntp/lib/libiscntp/Makefile
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
LIB=iscntp
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST= ${IDIST}/lib/isc
|
||||
|
||||
.PATH.c:: ${DIST} ${DIST}/nls ${DIST}/unix ${DIST}/nothreads
|
||||
|
||||
SRCS= assertions.c \
|
||||
buffer.c \
|
||||
condition.c \
|
||||
dir.c \
|
||||
error.c \
|
||||
errno2result.c \
|
||||
event.c \
|
||||
file.c \
|
||||
inet_ntop.c \
|
||||
inet_pton.c \
|
||||
interfaceiter.c \
|
||||
lib.c \
|
||||
log.c \
|
||||
md5.c \
|
||||
msgcat.c \
|
||||
net.c \
|
||||
netaddr.c \
|
||||
netscope.c \
|
||||
ondestroy.c \
|
||||
random.c \
|
||||
result.c \
|
||||
stdio.c \
|
||||
stdtime.c \
|
||||
strerror.c \
|
||||
task.c \
|
||||
thread.c \
|
||||
time.c \
|
||||
sockaddr.c
|
||||
|
||||
.include <bsd.lib.mk>
|
45
external/bsd/ntp/lib/libntp/Makefile
vendored
Normal file
45
external/bsd/ntp/lib/libntp/Makefile
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:47 kardel Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
LIB=ntp
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST= ${IDIST}/libntp
|
||||
|
||||
.PATH.c: ${DIST}
|
||||
|
||||
SRCS=systime.c a_md5encrypt.c adjtime.c atoint.c atolfp.c atouint.c audio.c \
|
||||
authkeys.c authreadkeys.c authusekey.c bsd_strerror.c buftvtots.c \
|
||||
caljulian.c caltontp.c calyearstart.c clocktime.c clocktypes.c \
|
||||
decodenetnum.c dofptoa.c dolfptoa.c emalloc.c findconfig.c fptoa.c \
|
||||
fptoms.c getopt.c hextoint.c hextolfp.c humandate.c icom.c inttoa.c \
|
||||
iosignal.c lib_strbuf.c machines.c memmove.c mfptoa.c ntp_lineedit.c \
|
||||
mfptoms.c mktime.c modetoa.c mstolfp.c msutotsf.c msyslog.c netof.c \
|
||||
ntp_rfc2553.c numtoa.c numtohost.c octtoint.c prettydate.c ntp_random.c \
|
||||
recvbuff.c refnumtoa.c snprintf.c socktoa.c socktohost.c ssl_init.c \
|
||||
statestr.c strdup.c strstr.c syssignal.c tsftomsu.c tstotv.c tvtots.c \
|
||||
uglydate.c uinttoa.c ymd2yd.c
|
||||
# net.c netaddr.c netscope.c \
|
||||
# ondestroy.c random.c result.c stdio.c stdtime.c strerror.c task.c \
|
||||
# thread.c time.c sockaddr.c
|
||||
# not found in libparse
|
||||
# assertions.c
|
||||
# buffer.c
|
||||
# conditions.c
|
||||
# dir.c
|
||||
# error.c
|
||||
# errno2result.c
|
||||
# event.c
|
||||
# file.c
|
||||
# inet_ntop.c
|
||||
# inet_pton.c
|
||||
# interfaceiter.c
|
||||
# lib.c
|
||||
# log.c
|
||||
# md5.c
|
||||
# msgcat.c
|
||||
.include <bsd.lib.mk>
|
19
external/bsd/ntp/lib/libopts/Makefile
vendored
Normal file
19
external/bsd/ntp/lib/libopts/Makefile
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:47 kardel Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
LIB=opts
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST= ${IDIST}/libopts
|
||||
|
||||
CPPFLAGS+=-I${DIST}
|
||||
|
||||
.PATH.c: ${DIST}
|
||||
|
||||
SRCS=libopts.c
|
||||
|
||||
.include <bsd.lib.mk>
|
36
external/bsd/ntp/lib/libparse/Makefile
vendored
Normal file
36
external/bsd/ntp/lib/libparse/Makefile
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/12/13 17:13:47 kardel Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
LIB=parse
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
DIST= ${IDIST}/libparse
|
||||
|
||||
.PATH.c: ${DIST}
|
||||
|
||||
SRCS= parse.c \
|
||||
parse_conf.c \
|
||||
clk_meinberg.c \
|
||||
clk_schmid.c \
|
||||
clk_rawdcf.c \
|
||||
clk_trimtsip.c \
|
||||
clk_dcf7000.c \
|
||||
clk_trimtaip.c \
|
||||
clk_rcc8000.c \
|
||||
clk_hopf6021.c \
|
||||
clk_computime.c \
|
||||
clk_wharton.c \
|
||||
clk_varitext.c \
|
||||
data_mbg.c \
|
||||
info_trimble.c \
|
||||
trim_info.c \
|
||||
binio.c \
|
||||
ieee754io.c \
|
||||
mfp_mul.c \
|
||||
gpstolfp.c
|
||||
|
||||
.include <bsd.lib.mk>
|
139
external/bsd/ntp/ntp2netbsd
vendored
Executable file
139
external/bsd/ntp/ntp2netbsd
vendored
Executable file
@ -0,0 +1,139 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $NetBSD: ntp2netbsd,v 1.1 2009/12/13 17:13:48 kardel Exp $
|
||||
#
|
||||
# Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# ntp2netbsd: convert a ntp source tree into a
|
||||
# netbsd ntp source tree, under src/dist,
|
||||
# based on bind2netbsd by Bernd Ernesti
|
||||
#
|
||||
# Rough instructions for importing new NTP release:
|
||||
#
|
||||
# $ cd /some/where/temporary
|
||||
# $ tar xpfz /new/ntp/release/tar/file
|
||||
# $ sh /usr/src/external/bsd/ntp/ntp2netbsd ntp-4.x.y `pwd`
|
||||
# $ cd src/externaä/bsd/ntp/dist
|
||||
# $ cvs import -m "Import ntp 4.x.y" src/dist/ntp UDEL ntp-4-x-y
|
||||
# $ cd ../../../../../ntp-4.x.y
|
||||
# $ run ./configure --enable-all-clocks --enable-parse-clocks
|
||||
# $ echo cp config.h /usr/src/external/bsd/ntp/include
|
||||
# - not really - we have some changed defaults and the vax port has no ieee.h support.
|
||||
# so do a careful diff and patch - Frank Kardel
|
||||
# $ echo cp scripts/mkver /usr/src/external/bsd/ntp/scripts
|
||||
# merge possible changes to mkver
|
||||
# our version uses the import date in the file
|
||||
# /usr/src/external/bsd/ntp/importdate for the date and buildnumber information
|
||||
# to achieve consistent version string over all builds
|
||||
# $ cd ..
|
||||
# $ rm -r src ntp-4.x.y
|
||||
# $ cd /usr/src/external/bsd/ntp
|
||||
# $ cvs update
|
||||
# $ cvs commit -m "Updated autoconf generated files for ntp 4.x.y."
|
||||
#
|
||||
# - check makefiles to see if any extra sources have been added,
|
||||
# esp. libntp and ntpd.
|
||||
# - check for and remove img tags in html docs.
|
||||
# - update distrib/sets if necessary.
|
||||
# - update src/external/bsd/ntp/importdate to match the date of this import
|
||||
#
|
||||
if [ $# -ne 2 ]; then echo "ntp2netbsd src dest"; exit 1; fi
|
||||
|
||||
r=$1
|
||||
d=$2/src/external/bsd/ntp/dist
|
||||
|
||||
case "$d" in
|
||||
/*)
|
||||
;;
|
||||
*)
|
||||
d=`/bin/pwd`/$d
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$r" in
|
||||
/*)
|
||||
;;
|
||||
*)
|
||||
r=`/bin/pwd`/$r
|
||||
;;
|
||||
esac
|
||||
|
||||
echo preparing directory $d
|
||||
rm -rf $d
|
||||
mkdir -p $d
|
||||
|
||||
### Copy the files and directories
|
||||
echo copying $r to $d
|
||||
cd $r
|
||||
pax -rw * $d
|
||||
|
||||
echo removing unneeded directories and files
|
||||
|
||||
### Remove unneeded directories
|
||||
cd $d
|
||||
rm -r ports html/pic
|
||||
|
||||
### Remove .cvsignore
|
||||
find $d -name '.cvsignore*' -exec rm {} \;
|
||||
|
||||
### Remove the $'s around RCS tags
|
||||
find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
|
||||
sed -e 's/\$\(Id.*\) \$/\1/' \
|
||||
-e 's/\$\(Created.*\) \$/\1/' \
|
||||
-e 's/\$\(Header.*\) \$/\1/' \
|
||||
< $f > /tmp/ntp1f$$ && mv /tmp/ntp1f$$ $f && \
|
||||
echo removed \$RCS tag from $f
|
||||
done
|
||||
|
||||
### Add our NetBSD RCS Id
|
||||
find $d -name '*.[chly]' -print | while read c; do
|
||||
sed 1q < $c | grep -q '\$NetBSD' || (
|
||||
echo "/* \$NetBSD\$ */" >/tmp/ntp3n$$
|
||||
echo "" >>/tmp/ntp3n$$
|
||||
cat $c >> /tmp/ntp3n$$
|
||||
mv /tmp/ntp3n$$ $c && echo added NetBSD RCS tag to $c
|
||||
)
|
||||
done
|
||||
|
||||
echo done
|
||||
|
||||
### Clean up any CVS directories that might be around.
|
||||
echo "cleaning up CVS residue."
|
||||
(
|
||||
cd $d
|
||||
find . -type d -name "CVS" -print | xargs rm -r
|
||||
)
|
||||
echo done
|
||||
|
||||
### Fixing file and directory permissions.
|
||||
echo "Fixing file/directory permissions."
|
||||
(
|
||||
cd $d
|
||||
find . -type f -print | xargs chmod u+rw,go+r
|
||||
find . -type d -print | xargs chmod u+rwx,go+rx
|
||||
)
|
||||
echo done
|
||||
|
||||
exit 0
|
46
external/bsd/ntp/scripts/mkver
vendored
Executable file
46
external/bsd/ntp/scripts/mkver
vendored
Executable file
@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
PROG=${1-UNKNOWN}
|
||||
|
||||
ConfStr="$PROG"
|
||||
|
||||
ConfStr="$ConfStr 4.2.6"
|
||||
|
||||
case "$CSET" in
|
||||
'') ;;
|
||||
*) ConfStr="$ConfStr@$CSET" ;;
|
||||
esac
|
||||
|
||||
case "-lcrypto" in
|
||||
'') ;;
|
||||
-lcrypto)
|
||||
ConfStr="${ConfStr}-o" ;;
|
||||
*) ConfStr="${ConfStr}-?" ;;
|
||||
esac
|
||||
|
||||
ifile="`dirname $0`/../importdate"
|
||||
|
||||
if [ -f "$ifile" ]; then
|
||||
ConfStr="$ConfStr "`cat "$ifile"`
|
||||
else
|
||||
ConfStr="$ConfStr `LC_TIME=C TZ= date`"
|
||||
|
||||
if [ ! -f .version ]; then
|
||||
echo 0 > .version
|
||||
fi
|
||||
RUN="`cat .version`"
|
||||
RUN="`expr $RUN + 1`"
|
||||
echo $RUN > .version
|
||||
|
||||
ConfStr="$ConfStr (${RUN})"
|
||||
fi
|
||||
|
||||
echo "Version <${ConfStr}>";
|
||||
|
||||
rm -f version.c
|
||||
cat > version.c << -EoF-
|
||||
/*
|
||||
* version file for $PROG
|
||||
*/
|
||||
#include <config.h>
|
||||
const char * Version = "${ConfStr}";
|
||||
-EoF-
|
Loading…
Reference in New Issue
Block a user