Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp initial version of reachover make- and supp...
details: https://anonhg.NetBSD.org/src/rev/2ad6e803bd4a
branches: trunk
changeset: 749956:2ad6e803bd4a
user: kardel <kardel%NetBSD.org@localhost>
date: Sun Dec 13 17:13:47 2009 +0000
description:
initial version of reachover make- and support-files
diffstat:
external/bsd/ntp/Makefile | 5 +
external/bsd/ntp/Makefile.inc | 57 +
external/bsd/ntp/bin/Makefile | 12 +
external/bsd/ntp/bin/Makefile.inc | 5 +
external/bsd/ntp/bin/ntp-keygen/Makefile | 26 +
external/bsd/ntp/bin/ntpd/Makefile | 89 +
external/bsd/ntp/bin/ntpdate/Makefile | 22 +
external/bsd/ntp/bin/ntpdc/Makefile | 25 +
external/bsd/ntp/bin/ntpq/Makefile | 26 +
external/bsd/ntp/bin/ntptime/Makefile | 25 +
external/bsd/ntp/importdate | 1 +
external/bsd/ntp/include/config.h | 1412 ++++++++++++++++++++++++++++++
external/bsd/ntp/lib/Makefile | 5 +
external/bsd/ntp/lib/Makefile.inc | 4 +
external/bsd/ntp/lib/libiscntp/Makefile | 44 +
external/bsd/ntp/lib/libntp/Makefile | 45 +
external/bsd/ntp/lib/libopts/Makefile | 19 +
external/bsd/ntp/lib/libparse/Makefile | 36 +
external/bsd/ntp/ntp2netbsd | 139 ++
external/bsd/ntp/scripts/mkver | 46 +
20 files changed, 2043 insertions(+), 0 deletions(-)
diffs (truncated from 2124 to 300 lines):
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/Makefile.inc Sun Dec 13 17:13:47 2009 +0000
@@ -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
\ No newline at end of file
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/Makefile.inc Sun Dec 13 17:13:47 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
+
+.include "../Makefile.inc"
+
+WARNS?= 2
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/ntp-keygen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/ntp-keygen/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/ntpd/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/ntpdate/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/ntpdate/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/ntpdc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/ntpdc/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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>
diff -r 0024765deb5d -r 2ad6e803bd4a external/bsd/ntp/bin/ntpq/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ntp/bin/ntpq/Makefile Sun Dec 13 17:13:47 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index