15705382 SUNBT7031289 Update ntp to 4.2.7 s11u1-sru 0.175.1.13.0.4.0 S11.1SRU13.4
authorBrian Utterback <brian.utterback@oracle.com>
Fri, 11 Oct 2013 13:46:59 -0700
branchs11u1-sru
changeset 2795 a8138e69c041
parent 2794 a5bcbe239323
child 2800 663f38ad85e5
15705382 SUNBT7031289 Update ntp to 4.2.7 15722546 SUNBT7055402 ipmp cause reachability issues for ntp4 daemon 15727250 SUNBT7064417 ntpd errors on some new system 15751447 SUNBT7106031 Solaris 11 restrict noserve doesn't work right 15785388 SUNBT7161189 ntpd starts on S 11 in a forked status with error "ntpd indicates n 15813516 SUNBT7195495 ntpd crashed with SIGFPE (Arithmetic Exception) 16090481 ntp version 4 daemon crashes in isc_interfaceiter_first() 16741686 "ntpd" v4.2.5 cannot accept/query interface names longer than 15 characters. 16978017 ntpd debug in Solaris 11.1does not write any output 17000189 NTP needs to increase its file descriptor limit. 17000601 ntpd should log a message when it exits abnormally.
components/ntp/Makefile
components/ntp/Solaris/ntp.client
components/ntp/ntp.p5m
components/ntp/patches/10-etcfix.patch
components/ntp/patches/30-mode7.patch
components/ntp/patches/40-ntpwait.patch
components/ntp/patches/50-noserve.patch
components/ntp/patches/60-exit-message.patch
components/ntp/patches/etcfix.patch
components/ntp/patches/ins-ntp-wait.patch
components/ntp/patches/ins-ntpd.patch
components/ntp/patches/mc.patch
components/ntp/patches/mdns.patch
components/ntp/patches/noextra.patch
components/ntp/patches/ntpwait.patch
components/ntp/patches/timing.patch
--- a/components/ntp/Makefile	Fri Oct 18 05:25:47 2013 -0700
+++ b/components/ntp/Makefile	Fri Oct 11 13:46:59 2013 -0700
@@ -20,21 +20,21 @@
 #
 
 #
-# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		ntp-dev
-COMPONENT_PATCH_VERSION=	200
-COMPONENT_VERSION=	4.2.5
+COMPONENT_PATCH_VERSION=	381
+COMPONENT_VERSION=	4.2.7
 HUMAN_VERSION=		$(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
 COMPONENT_PROJECT_URL=	http://www.ntp.org/
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(HUMAN_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	\
-    sha256:97eeb4e90fba1ae3210e13574a4b3df715957cb9895264c6a455ee97dec87611
+    sha256:169e56bde7df2822c48e5dc8c3cebc6033a47fd278c8783aaf32770ca295fdcc
 COMPONENT_ARCHIVE_URL=	http://archive.ntp.org/ntp4/ntp-dev/$(COMPONENT_ARCHIVE)
 PATCH_LEVEL = 0
 
@@ -56,9 +56,7 @@
 CONFIGURE_OPTIONS +=	--enable-parse-clocks
 CONFIGURE_OPTIONS +=	--enable-ignore-dns-errors
 CONFIGURE_OPTIONS +=	--without-ntpsnmpd
-CONFIGURE_OPTIONS +=	--without-lineeditlibs
 CONFIGURE_OPTIONS +=	--with-openssl-libdir=/lib
-CONFIGURE_OPTIONS +=	--disable-getifaddrs
 
 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
 
--- a/components/ntp/Solaris/ntp.client	Fri Oct 18 05:25:47 2013 -0700
+++ b/components/ntp/Solaris/ntp.client	Fri Oct 11 13:46:59 2013 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
 
 # If you do not want to configure your client to listen for multicast, comment
 # this line out. This should only be used for casual time keeping, like keeping
@@ -26,6 +26,18 @@
 
 multicastclient 224.0.1.1
 
+# You can also use broadcast mode. Again, only use for casual timekeeping.
+
+# broadcastclient
+
+# The default is to require authentication. Without authentication you do not
+# have any control over what servers your system is getting its time from. 
+# It is possible for another system to target your system to change the time. 
+# However for casual time keeping and ease of administration authentication 
+# may not be necessary. Using authentication is recommended.
+
+disable auth
+
 # To configure NTP servers, replace the server_name with either the IP address
 # or hostname of the server you wish to use. If you just want to keep the time
 # in a causual way, one server may be enough for you. If you wish to keep it
--- a/components/ntp/ntp.p5m	Fri Oct 18 05:25:47 2013 -0700
+++ b/components/ntp/ntp.p5m	Fri Oct 11 13:46:59 2013 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 <transform file path=usr/share/doc/ntp/(.+$) -> set action.hash html/%<\1> >
@@ -91,20 +91,26 @@
 file path=usr/sbin/ntpq
 file path=usr/sbin/ntptime
 file path=usr/sbin/ntptrace
+file path=usr/share/doc/ntp/access.html
 file path=usr/share/doc/ntp/accopt.html
 file path=usr/share/doc/ntp/assoc.html
 file path=usr/share/doc/ntp/audio.html
+file path=usr/share/doc/ntp/authentic.html
 file path=usr/share/doc/ntp/authopt.html
+file path=usr/share/doc/ntp/autokey.html
 file path=usr/share/doc/ntp/bugs.html
 file path=usr/share/doc/ntp/build.html
+file path=usr/share/doc/ntp/clock.html
 file path=usr/share/doc/ntp/clockopt.html
+file path=usr/share/doc/ntp/cluster.html
 file path=usr/share/doc/ntp/comdex.html
 file path=usr/share/doc/ntp/config.html
 file path=usr/share/doc/ntp/confopt.html
 file path=usr/share/doc/ntp/copyright.html
 file path=usr/share/doc/ntp/debug.html
 file path=usr/share/doc/ntp/decode.html
-file path=usr/share/doc/ntp/description_files/description.jpg
+file path=usr/share/doc/ntp/discipline.html
+file path=usr/share/doc/ntp/discover.html
 file path=usr/share/doc/ntp/drivers/driver1.html
 file path=usr/share/doc/ntp/drivers/driver10.html
 file path=usr/share/doc/ntp/drivers/driver11.html
@@ -112,7 +118,6 @@
 file path=usr/share/doc/ntp/drivers/driver16.html
 file path=usr/share/doc/ntp/drivers/driver18.html
 file path=usr/share/doc/ntp/drivers/driver19.html
-file path=usr/share/doc/ntp/drivers/driver2.html
 file path=usr/share/doc/ntp/drivers/driver20.html
 file path=usr/share/doc/ntp/drivers/driver22.html
 file path=usr/share/doc/ntp/drivers/driver26.html
@@ -135,6 +140,7 @@
 file path=usr/share/doc/ntp/drivers/driver42.html
 file path=usr/share/doc/ntp/drivers/driver43.html
 file path=usr/share/doc/ntp/drivers/driver44.html
+file path=usr/share/doc/ntp/drivers/driver45.html
 file path=usr/share/doc/ntp/drivers/driver5.html
 file path=usr/share/doc/ntp/drivers/driver6.html
 file path=usr/share/doc/ntp/drivers/driver7.html
@@ -148,7 +154,7 @@
 file path=usr/share/doc/ntp/drivers/scripts/style.css
 file path=usr/share/doc/ntp/drivers/tf582_4.html
 file path=usr/share/doc/ntp/extern.html
-file path=usr/share/doc/ntp/gadget.html
+file path=usr/share/doc/ntp/filter.html
 file path=usr/share/doc/ntp/hints.html
 file path=usr/share/doc/ntp/hints/a-ux
 file path=usr/share/doc/ntp/hints/aix
@@ -178,17 +184,21 @@
 file path=usr/share/doc/ntp/hints/todo
 file path=usr/share/doc/ntp/hints/vxworks.html
 file path=usr/share/doc/ntp/hints/winnt.html
+file path=usr/share/doc/ntp/history.html
 file path=usr/share/doc/ntp/howto.html
+file path=usr/share/doc/ntp/huffpuff.html
 file path=usr/share/doc/ntp/icons/home.gif
 file path=usr/share/doc/ntp/icons/mail2.gif
+file path=usr/share/doc/ntp/icons/sitemap.png
 file path=usr/share/doc/ntp/index.html
 file path=usr/share/doc/ntp/kern.html
 file path=usr/share/doc/ntp/kernpps.html
 file path=usr/share/doc/ntp/keygen.html
-file path=usr/share/doc/ntp/manyopt.html
+file path=usr/share/doc/ntp/leap.html
 file path=usr/share/doc/ntp/miscopt.html
 file path=usr/share/doc/ntp/monopt.html
 file path=usr/share/doc/ntp/msyslog.html
+file path=usr/share/doc/ntp/ntp-wait.html
 file path=usr/share/doc/ntp/ntp_conf.html
 file path=usr/share/doc/ntp/ntpd.html
 file path=usr/share/doc/ntp/ntpdate.html
@@ -198,6 +208,7 @@
 file path=usr/share/doc/ntp/ntpq.html
 file path=usr/share/doc/ntp/ntptime.html
 file path=usr/share/doc/ntp/ntptrace.html
+file path=usr/share/doc/ntp/orphan.html
 file path=usr/share/doc/ntp/parsedata.html
 file path=usr/share/doc/ntp/parsenew.html
 file path=usr/share/doc/ntp/pic/9400n.jpg
@@ -222,16 +233,28 @@
 file path=usr/share/doc/ntp/pic/bustardfly.gif
 file path=usr/share/doc/ntp/pic/c51.jpg
 file path=usr/share/doc/ntp/pic/description.jpg
+file path=usr/share/doc/ntp/pic/discipline.gif
 file path=usr/share/doc/ntp/pic/dogsnake.gif
 file path=usr/share/doc/ntp/pic/driver29.gif
 file path=usr/share/doc/ntp/pic/driver43_1.gif
 file path=usr/share/doc/ntp/pic/driver43_2.jpg
 file path=usr/share/doc/ntp/pic/fg6021.gif
 file path=usr/share/doc/ntp/pic/fg6039.jpg
+file path=usr/share/doc/ntp/pic/fig_3_1.gif
 file path=usr/share/doc/ntp/pic/flatheads.gif
+file path=usr/share/doc/ntp/pic/flt1.gif
+file path=usr/share/doc/ntp/pic/flt2.gif
+file path=usr/share/doc/ntp/pic/flt3.gif
+file path=usr/share/doc/ntp/pic/flt4.gif
+file path=usr/share/doc/ntp/pic/flt5.gif
+file path=usr/share/doc/ntp/pic/flt6.gif
+file path=usr/share/doc/ntp/pic/flt7.gif
+file path=usr/share/doc/ntp/pic/flt8.gif
+file path=usr/share/doc/ntp/pic/flt9.gif
 file path=usr/share/doc/ntp/pic/freq1211.gif
 file path=usr/share/doc/ntp/pic/gadget.jpg
 file path=usr/share/doc/ntp/pic/gps167.jpg
+file path=usr/share/doc/ntp/pic/group.gif
 file path=usr/share/doc/ntp/pic/hornraba.gif
 file path=usr/share/doc/ntp/pic/igclock.gif
 file path=usr/share/doc/ntp/pic/neoclock4x.gif
@@ -258,10 +281,12 @@
 file path=usr/share/doc/ntp/pic/radio2.jpg
 file path=usr/share/doc/ntp/pic/sheepb.jpg
 file path=usr/share/doc/ntp/pic/stack1a.jpg
+file path=usr/share/doc/ntp/pic/sx5.gif
 file path=usr/share/doc/ntp/pic/thunderbolt.jpg
 file path=usr/share/doc/ntp/pic/tonea.gif
 file path=usr/share/doc/ntp/pic/tribeb.gif
 file path=usr/share/doc/ntp/pic/wingdorothy.gif
+file path=usr/share/doc/ntp/poll.html
 file path=usr/share/doc/ntp/pps.html
 file path=usr/share/doc/ntp/prefer.html
 file path=usr/share/doc/ntp/quick.html
@@ -278,16 +303,21 @@
 file path=usr/share/doc/ntp/scripts/confopt.txt
 file path=usr/share/doc/ntp/scripts/external.txt
 file path=usr/share/doc/ntp/scripts/footer.txt
+file path=usr/share/doc/ntp/scripts/hand.txt
 file path=usr/share/doc/ntp/scripts/install.txt
 file path=usr/share/doc/ntp/scripts/manual.txt
 file path=usr/share/doc/ntp/scripts/misc.txt
 file path=usr/share/doc/ntp/scripts/miscopt.txt
 file path=usr/share/doc/ntp/scripts/monopt.txt
 file path=usr/share/doc/ntp/scripts/refclock.txt
+file path=usr/share/doc/ntp/scripts/special.txt
 file path=usr/share/doc/ntp/scripts/style.css
+file path=usr/share/doc/ntp/select.html
 file path=usr/share/doc/ntp/sitemap.html
 file path=usr/share/doc/ntp/sntp.html
+file path=usr/share/doc/ntp/stats.html
 file path=usr/share/doc/ntp/tickadj.html
+file path=usr/share/doc/ntp/warp.html
 file path=usr/share/doc/ntp/xleave.html
 file manpages/ntp-keygen.1m path=usr/share/man/man1m/ntp-keygen.1m
 file manpages/ntpd.1m path=usr/share/man/man1m/ntpd.1m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/10-etcfix.patch	Fri Oct 11 13:46:59 2013 -0700
@@ -0,0 +1,50 @@
+This patch does the customization for the Solaris way
+of installing things. There is a method for doing this
+with the configure scripts, but these last few file
+paths have not been converted. When they are, this patch
+can go away.
+
+--- include/ntp_config.h.orig	Thu May 14 06:34:41 2009
++++ include/ntp_config.h	Thu May 14 06:15:12 2009
[email protected]@ -10,7 +10,7 @@
+  */
+ #ifndef CONFIG_FILE
+ # ifndef SYS_WINNT
+-#  define	CONFIG_FILE "/etc/ntp.conf"
++#  define	CONFIG_FILE "/etc/inet/ntp.conf"
+ # else /* SYS_WINNT */
+ #  define	CONFIG_FILE	"%windir%\\system32\\drivers\\etc\\ntp.conf"
+ #  define	ALT_CONFIG_FILE "%windir%\\ntp.conf"
+--- libntp/audio.c.orig	Thu May 14 06:34:41 2009
++++ libntp/audio.c	Thu May 14 06:15:12 2009
[email protected]@ -53,7 +53,7 @@
+ static struct audio_device device; /* audio device ident */
+ #endif /* HAVE_SYS_AUDIOIO_H */
+ #ifdef PCM_STYLE_SOUND
+-# define INIT_FILE "/etc/ntp.audio"
++# define INIT_FILE "/etc/inet/ntp.audio"
+ int agc =	SOUND_MIXER_WRITE_RECLEV; /* or IGAIN or LINE */
+ int monitor =	SOUND_MIXER_WRITE_VOLUME; /* or OGAIN */
+ int devmask = 0;
+--- ntpdate/ntpdate.c.orig	Thu May 14 06:34:41 2009
++++ ntpdate/ntpdate.c	Thu May 14 06:15:12 2009
[email protected]@ -179,7 +179,7 @@
+ 
+ #ifndef KEYFILE
+ # ifndef SYS_WINNT
+-#define KEYFILE 	"/etc/ntp.keys"
++#define KEYFILE 	"/etc/inet/ntp.keys"
+ # else
+ #define KEYFILE 	"%windir%\\ntp.keys"
+ # endif /* SYS_WINNT */
+--- ntpd/refclock_oncore.c.orig	Thu May 14 06:34:41 2009
++++ ntpd/refclock_oncore.c	Thu May 14 06:15:12 2009
[email protected]@ -1210,7 +1210,7 @@
+ 
+ 	FILE	*fd;
+ 	char	*cp, *cc, *ca, line[100], units[2], device[64], **cpp;
+-	char	*dirs[] = { "/etc/ntp", "/etc", 0 };
++	char	*dirs[] = { "/etc/inet", "/etc", 0 };
+ 	int	i, sign, lat_flg, long_flg, ht_flg, mode, mask;
+ 	double	f1, f2, f3;
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/30-mode7.patch	Fri Oct 11 13:46:59 2013 -0700
@@ -0,0 +1,15 @@
+This patch reenables support for the ntpdc command's protocol, which
+has been EOL'ed by the community. Once we finish the EOL process
+in Solaris, we can remove this patch. 
+
+--- ntpd/ntp_proto.c.fcs	2012-07-27 13:19:00.241528650 -0500
++++ ntpd/ntp_proto.c	2012-07-27 13:19:16.684268838 -0500
[email protected]@ -99,7 +99,7 @@ u_long	leap_expire;		/* leap information
+ static int leap_vote;		/* leap consensus */
+ keyid_t	sys_private;		/* private value for session seed */
+ int	sys_manycastserver;	/* respond to manycast client pkts */
+-int	ntp_mode7;		/* respond to ntpdc (mode7) */
++int	ntp_mode7 = TRUE;		/* respond to ntpdc (mode7) */
+ int	peer_ntpdate;		/* active peers in ntpdate mode */
+ int	sys_survivors;		/* truest of the truechimers */
+ char	*sys_ident = NULL;	/* identity scheme */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/40-ntpwait.patch	Fri Oct 11 13:46:59 2013 -0700
@@ -0,0 +1,18 @@
+This change allows ntp-wait to work with more versions
+of NTP, since the format changed slightly. It can be removed
+at the next upgrade since there will be no possibility 
+of running an older ntp with the old format.
+
+--- scripts/ntp-wait.in
++++ scripts/ntp-wait.in
[email protected]@ -20,8 +20,8 @@
+     while(<Q>) {
+       chomp;
+       # the first line should be similar to:
+-      # associd=0 status=0645 leap_none, sync_ntp, ...
+-      if (/^asso?c?id=0 status=(\S{4}) (\S+), (\S+),/i) {
++      # status=0645 leap_none, sync_ntp, ...
++      if (/status=(\S{4}) (\S+), (\S+),/i) {
+ 	my $status = $1;
+ 	my $leap = $2;
+ 	my $sync = $3;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/50-noserve.patch	Fri Oct 11 13:46:59 2013 -0700
@@ -0,0 +1,20 @@
+See:
+	http://bugzilla.ntp.org/show_bug.cgi?id=2367
+
+--- ntpd/ntp_proto.c
++++ ntpd/ntp_proto.c
[email protected]@ -429,9 +429,11 @@ receive(
+ 		process_control(rbufp, restrict_mask);
+ 		return;
+ 	}
+-	if (restrict_mask & RES_DONTSERVE) {
+-		sys_restricted++;
+-		return;				/* no time serve */
++	if (hismode == MODE_CLIENT) {
++		if (restrict_mask & RES_DONTSERVE) {
++			sys_restricted++;
++			return;				/* no time serve */
++		}
+ 	}
+ 
+ 	/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/60-exit-message.patch	Fri Oct 11 13:46:59 2013 -0700
@@ -0,0 +1,36 @@
+See: 
+
+	http://bugzilla.ntp.org/show_bug.cgi?id=2410
+
+
+--- ntpd/ntp_proto.c
++++ ntpd/ntp_proto.c
[email protected]@ -1856,23 +1856,27 @@ clock_update(
+ 	 * Clock exceeds panic threshold. Life as we know it ends.
+ 	 */
+ 	case -1:
++		msyslog(LOG_ERR, "Clock offset exceeds panic threshold.");
+ #ifdef HAVE_LIBSCF_H
+ 		/*
+ 		 * For Solaris enter the maintenance mode.
+ 		 */
+ 		if ((fmri = getenv("SMF_FMRI")) != NULL) {
+ 			if (smf_maintain_instance(fmri, 0) < 0) {
+-				printf("smf_maintain_instance: %s\n",
++				msyslog(LOG_ERR, "smf_maintain_instance: %s\n",
+ 				    scf_strerror(scf_error()));
+ 				exit(1);
+ 			}
+ 			/*
+ 			 * Sleep until SMF kills us.
+ 			 */
++			msyslog(LOG_ERR, "%s placed into maintenance. "
++			    "Set system clock by hand before clearing.", fmri);
+ 			for (;;)
+ 				pause();
+ 		}
+ #endif /* HAVE_LIBSCF_H */
++		msyslog(LOG_ERR, "Set system clock by hand.");
+ 		exit (-1);
+ 		/* not reached */
+ 
--- a/components/ntp/patches/etcfix.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
---- sntp/header.h.orig	Thu May 14 06:34:41 2009
-+++ sntp/header.h	Thu May 14 06:15:12 2009
[email protected]@ -19,10 +19,10 @@
- #define MAX_SOCKETS        10          /* Maximum number of addresses */
- 
- #ifndef LOCKNAME
--#    define LOCKNAME "/etc/sntp.pid"  /* Stores the pid */
-+#    define LOCKNAME "/var/run/sntp.pid"  /* Stores the pid */
- #endif
- #ifndef SAVENAME
--#    define SAVENAME "/etc/sntp.state" /* Stores the recovery state */
-+#    define SAVENAME "/var/ntp/sntp.state" /* Stores the recovery state */
- #endif
- 
- 
---- include/ntp_config.h.orig	Thu May 14 06:34:41 2009
-+++ include/ntp_config.h	Thu May 14 06:15:12 2009
[email protected]@ -10,7 +10,7 @@
-  */
- #ifndef CONFIG_FILE
- # ifndef SYS_WINNT
--#  define	CONFIG_FILE "/etc/ntp.conf"
-+#  define	CONFIG_FILE "/etc/inet/ntp.conf"
- # else /* SYS_WINNT */
- #  define	CONFIG_FILE	"%windir%\\system32\\drivers\\etc\\ntp.conf"
- #  define	ALT_CONFIG_FILE "%windir%\\ntp.conf"
---- libntp/audio.c.orig	Thu May 14 06:34:41 2009
-+++ libntp/audio.c	Thu May 14 06:15:12 2009
[email protected]@ -53,7 +53,7 @@
- static struct audio_device device; /* audio device ident */
- #endif /* HAVE_SYS_AUDIOIO_H */
- #ifdef PCM_STYLE_SOUND
--# define INIT_FILE "/etc/ntp.audio"
-+# define INIT_FILE "/etc/inet/ntp.audio"
- int agc =	SOUND_MIXER_WRITE_RECLEV; /* or IGAIN or LINE */
- int monitor =	SOUND_MIXER_WRITE_VOLUME; /* or OGAIN */
- int devmask = 0;
---- ntpdate/ntpdate.c.orig	Thu May 14 06:34:41 2009
-+++ ntpdate/ntpdate.c	Thu May 14 06:15:12 2009
[email protected]@ -192,7 +192,7 @@
- 
- #ifndef KEYFILE
- # ifndef SYS_WINNT
--#define KEYFILE 	"/etc/ntp.keys"
-+#define KEYFILE 	"/etc/inet/ntp.keys"
- # else
- #define KEYFILE 	"%windir%\\ntp.keys"
- # endif /* SYS_WINNT */
---- ntpdate/ntptimeset.c.orig	Thu May 14 06:34:41 2009
-+++ ntpdate/ntptimeset.c	Thu May 14 06:15:12 2009
[email protected]@ -270,7 +270,7 @@
- 
- #ifndef KEYFILE
- # ifndef SYS_WINNT
--#define KEYFILE 	"/etc/ntp.keys"
-+#define KEYFILE 	"/etc/inet/ntp.keys"
- # else
- #define KEYFILE 	"%windir%\\ntp.keys"
- # endif /* SYS_WINNT */
---- ntpdate/ntptime_config.c.orig	Thu May 14 06:34:41 2009
-+++ ntpdate/ntptime_config.c	Thu May 14 06:15:12 2009
[email protected]@ -37,7 +37,7 @@
-  */
- #ifndef CONFIG_FILE
- # ifndef SYS_WINNT
--#  define	CONFIG_FILE "/etc/ntp.conf"
-+#  define	CONFIG_FILE "/etc/inet/ntp.conf"
- # else /* SYS_WINNT */
- #  define	CONFIG_FILE 	"%windir%\\ntp.conf"
- #  define	ALT_CONFIG_FILE "%windir%\\ntp.ini"
---- ntpd/refclock_oncore.c.orig	Thu May 14 06:34:41 2009
-+++ ntpd/refclock_oncore.c	Thu May 14 06:15:12 2009
[email protected]@ -1188,7 +1188,7 @@
- 
- 	FILE	*fd;
- 	char	*cp, *cc, *ca, line[100], units[2], device[20], Msg[160], **cpp;
--	char	*dirs[] = { "/etc/ntp", "/etc", 0 };
-+	char	*dirs[] = { "/etc/inet", "/etc", 0 };
- 	int	i, sign, lat_flg, long_flg, ht_flg, mode, mask;
- 	double	f1, f2, f3;
- 
--- a/components/ntp/patches/ins-ntp-wait.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
---- scripts/Makefile.in.fcs	Mon Mar 28 10:55:26 2011
-+++ scripts/Makefile.in	Mon Mar 28 11:00:55 2011
[email protected]@ -58,11 +58,11 @@
- CONFIG_HEADER = $(top_builddir)/config.h
- CONFIG_CLEAN_FILES = calc_tickadj checktime freq_adj html2man mkver \
- 	ntp-wait ntpsweep ntptrace ntpver plot_summary summary
- am__installdirs = "$(DESTDIR)$(bindir)"
- binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
--SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS)
-+SCRIPTS = $(bin_SCRIPTS) $(lib_SCRIPTS) $(noinst_SCRIPTS)
- SOURCES =
- DIST_SOURCES =
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
- ACLOCAL = @[email protected]
- AMDEP_FALSE = @[email protected]
[email protected]@ -194,11 +194,12 @@
- sbindir = @[email protected]
- sharedstatedir = @[email protected]
- subdirs = @[email protected]
- sysconfdir = @[email protected]
- target_alias = @[email protected]
--bin_SCRIPTS = ntp-wait ntptrace
-+bin_SCRIPTS = ntptrace
-+lib_SCRIPTS = ntp-wait
- noinst_SCRIPTS = calc_tickadj checktime freq_adj html2man mkver ntpsweep ntpver plot_summary summary
- EXTRA_DIST = VersionName fixautomakedepsmagic genCommitLog genver	\
- 	hpadjtime.sh monitoring ntp-close ntp-groper ntp-restart	\
- 	ntp-status rc1 rc2 stats
- 
[email protected]@ -274,10 +275,30 @@
- 	  f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- 	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
- 	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
- 	done
- 
-+install-libSCRIPTS: $(lib_SCRIPTS)
-+	@$(NORMAL_INSTALL)
-+	test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)"
-+	@list='$(lib_SCRIPTS)'; for p in $$list; do \
-+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-+	  if test -f $$d$$p; then \
-+	    f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
-+	    echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \
-+	    $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(libexecdir)/$$f"; \
-+	  else :; fi; \
-+	done
-+
-+uninstall-libSCRIPTS:
-+	@$(NORMAL_UNINSTALL)
-+	@list='$(lib_SCRIPTS)'; for p in $$list; do \
-+	  f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
-+	  echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \
-+	  rm -f "$(DESTDIR)$(libexecdir)/$$f"; \
-+	done
-+
- mostlyclean-libtool:
- 	-rm -f *.lo
- 
- clean-libtool:
- 	-rm -rf .libs _libs
[email protected]@ -368,11 +389,11 @@
- 
- info-am:
- 
- install-data-am:
- 
--install-exec-am: install-binSCRIPTS
-+install-exec-am: install-binSCRIPTS install-libSCRIPTS
- 
- install-info: install-info-am
- 
- install-man:
- 
[email protected]@ -392,20 +413,20 @@
- 
- ps: ps-am
- 
- ps-am:
- 
--uninstall-am: uninstall-binSCRIPTS uninstall-info-am
-+uninstall-am: uninstall-binSCRIPTS uninstall-libSCRIPTS uninstall-info-am
- 
- .PHONY: all all-am check check-am clean clean-generic clean-libtool \
- 	distclean distclean-generic distclean-libtool distdir dvi \
- 	dvi-am html html-am info info-am install install-am \
--	install-binSCRIPTS install-data install-data-am install-exec \
-+	install-binSCRIPTS install-libSCRIPTS install-data install-data-am install-exec \
- 	install-exec-am install-info install-info-am install-man \
- 	install-strip installcheck installcheck-am installdirs \
- 	maintainer-clean maintainer-clean-generic mostlyclean \
- 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
--	uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am
-+	uninstall uninstall-am uninstall-binSCRIPTS uninstall-libSCRIPTS uninstall-info-am
- 
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
--- a/components/ntp/patches/ins-ntpd.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
---- ntpd/Makefile.in.fcs	Mon Mar 28 10:52:07 2011
-+++ ntpd/Makefile.in	Mon Mar 28 10:54:13 2011
[email protected]@ -243,11 +243,11 @@
- am__include = @[email protected]
- am__leading_dot = @[email protected]
- am__quote = @[email protected]
- am__tar = @[email protected]
- am__untar = @[email protected]
--bindir = ${exec_prefix}/${BINSUBDIR}
-+bindir = @[email protected]
- build = @[email protected]
- build_alias = @[email protected]
- build_cpu = @[email protected]
- build_os = @[email protected]
- build_vendor = @[email protected]
--- a/components/ntp/patches/mc.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-*** ntpd/ntp_io.c.orig	Fri Jul 30 06:57:58 2010
---- ntpd/ntp_io.c	Fri Jul 30 06:58:46 2010
-***************
-*** 1869,1875 ****
-  
-  	case AF_INET:
-  		if (setsockopt(iface->fd, IPPROTO_IP, IP_MULTICAST_IF,
-! 			       (char *)NSRCADR(&iface->sin),
-  			       sizeof(NSRCADR(&iface->sin)))) {
-  
-  			msyslog(LOG_ERR,
---- 1869,1875 ----
-  
-  	case AF_INET:
-  		if (setsockopt(iface->fd, IPPROTO_IP, IP_MULTICAST_IF,
-! 			       (void *)&NSRCADR(&iface->sin),
-  			       sizeof(NSRCADR(&iface->sin)))) {
-  
-  			msyslog(LOG_ERR,
--- a/components/ntp/patches/mdns.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,317 +0,0 @@
---- ntpd/ntpd-opts.c.orig	Thu Jul 29 09:29:51 2010
-+++ ntpd/ntpd-opts.c	Thu Jul 29 09:43:40 2010
[email protected]@ -243,6 +243,24 @@
- #define NOVIRTUALIPS_FLAGS       (OPTST_DISABLED)
- 
- /*
-+ *  Mdns option description:
-+ */
-+#ifdef HAVE_DNSREGISTRATION
-+tSCC    zMdnsText[] =
-+        "Register with mDNS as a NTP server";
-+tSCC    zMdns_NAME[]               = "MDNS";
-+tSCC    zMdns_Name[]               = "mdns";
-+#define MDNS_FLAGS       (OPTST_DISABLED)
-+
-+#else   /* disable Mdns */
-+#define VALUE_OPT_MDNS NO_EQUIVALENT
-+#define MDNS_FLAGS       (OPTST_OMITTED | OPTST_NO_INIT)
-+#define zMdnsText       NULL
-+#define zMdns_NAME      NULL
-+#define zMdns_Name      NULL
-+#endif  /* HAVE_DNSREGISTRATION */
-+
-+/*
-  *  Modifymmtimer option description:
-  */
- #ifdef SYS_WINNT
[email protected]@ -673,10 +691,22 @@
-      /* desc, NAME, name */ zNovirtualipsText, zNovirtualips_NAME, zNovirtualips_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 15, VALUE_OPT_MODIFYMMTIMER,
--     /* equiv idx, value */ 15, VALUE_OPT_MODIFYMMTIMER,
-+  {  /* entry idx, value */ 15, VALUE_OPT_MDNS,
-+     /* equiv idx, value */ 15, VALUE_OPT_MDNS,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-+     /* opt state flags  */ MDNS_FLAGS, 0,
-+     /* last opt argumnt */ { NULL },
-+     /* arg list/cookie  */ NULL,
-+     /* must/cannot opts */ NULL, NULL,
-+     /* option proc      */ NULL,
-+     /* desc, NAME, name */ zMdnsText, zMdns_NAME, zMdns_Name,
-+     /* disablement strs */ NULL, NULL },
-+
-+  {  /* entry idx, value */ 16, VALUE_OPT_MODIFYMMTIMER,
-+     /* equiv idx, value */ 16, VALUE_OPT_MODIFYMMTIMER,
-+     /* equivalenced to  */ NO_EQUIVALENT,
-+     /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ MODIFYMMTIMER_FLAGS, 0,
-      /* last opt argumnt */ { NULL },
-      /* arg list/cookie  */ NULL,
[email protected]@ -685,8 +715,8 @@
-      /* desc, NAME, name */ zModifymmtimerText, zModifymmtimer_NAME, zModifymmtimer_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 16, VALUE_OPT_NOFORK,
--     /* equiv idx, value */ 16, VALUE_OPT_NOFORK,
-+  {  /* entry idx, value */ 17, VALUE_OPT_NOFORK,
-+     /* equiv idx, value */ 17, VALUE_OPT_NOFORK,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ NOFORK_FLAGS, 0,
[email protected]@ -697,8 +727,8 @@
-      /* desc, NAME, name */ zNoforkText, zNofork_NAME, zNofork_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 17, VALUE_OPT_NICE,
--     /* equiv idx, value */ 17, VALUE_OPT_NICE,
-+  {  /* entry idx, value */ 18, VALUE_OPT_NICE,
-+     /* equiv idx, value */ 18, VALUE_OPT_NICE,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ NICE_FLAGS, 0,
[email protected]@ -709,8 +739,8 @@
-      /* desc, NAME, name */ zNiceText, zNice_NAME, zNice_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 18, VALUE_OPT_PIDFILE,
--     /* equiv idx, value */ 18, VALUE_OPT_PIDFILE,
-+  {  /* entry idx, value */ 19, VALUE_OPT_PIDFILE,
-+     /* equiv idx, value */ 19, VALUE_OPT_PIDFILE,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ PIDFILE_FLAGS, 0,
[email protected]@ -721,8 +751,8 @@
-      /* desc, NAME, name */ zPidfileText, zPidfile_NAME, zPidfile_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 19, VALUE_OPT_PRIORITY,
--     /* equiv idx, value */ 19, VALUE_OPT_PRIORITY,
-+  {  /* entry idx, value */ 20, VALUE_OPT_PRIORITY,
-+     /* equiv idx, value */ 20, VALUE_OPT_PRIORITY,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ PRIORITY_FLAGS, 0,
[email protected]@ -733,8 +763,8 @@
-      /* desc, NAME, name */ zPriorityText, zPriority_NAME, zPriority_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 20, VALUE_OPT_QUIT,
--     /* equiv idx, value */ 20, VALUE_OPT_QUIT,
-+  {  /* entry idx, value */ 21, VALUE_OPT_QUIT,
-+     /* equiv idx, value */ 21, VALUE_OPT_QUIT,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ QUIT_FLAGS, 0,
[email protected]@ -745,8 +775,8 @@
-      /* desc, NAME, name */ zQuitText, zQuit_NAME, zQuit_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 21, VALUE_OPT_PROPAGATIONDELAY,
--     /* equiv idx, value */ 21, VALUE_OPT_PROPAGATIONDELAY,
-+  {  /* entry idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY,
-+     /* equiv idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ PROPAGATIONDELAY_FLAGS, 0,
[email protected]@ -757,8 +787,8 @@
-      /* desc, NAME, name */ zPropagationdelayText, zPropagationdelay_NAME, zPropagationdelay_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 22, VALUE_OPT_STATSDIR,
--     /* equiv idx, value */ 22, VALUE_OPT_STATSDIR,
-+  {  /* entry idx, value */ 23, VALUE_OPT_STATSDIR,
-+     /* equiv idx, value */ 23, VALUE_OPT_STATSDIR,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ STATSDIR_FLAGS, 0,
[email protected]@ -769,8 +799,8 @@
-      /* desc, NAME, name */ zStatsdirText, zStatsdir_NAME, zStatsdir_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 23, VALUE_OPT_TRUSTEDKEY,
--     /* equiv idx, value */ 23, VALUE_OPT_TRUSTEDKEY,
-+  {  /* entry idx, value */ 24, VALUE_OPT_TRUSTEDKEY,
-+     /* equiv idx, value */ 24, VALUE_OPT_TRUSTEDKEY,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, NOLIMIT, 0,
-      /* opt state flags  */ TRUSTEDKEY_FLAGS, 0,
[email protected]@ -781,8 +811,8 @@
-      /* desc, NAME, name */ zTrustedkeyText, zTrustedkey_NAME, zTrustedkey_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 24, VALUE_OPT_USER,
--     /* equiv idx, value */ 24, VALUE_OPT_USER,
-+  {  /* entry idx, value */ 25, VALUE_OPT_USER,
-+     /* equiv idx, value */ 25, VALUE_OPT_USER,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ USER_FLAGS, 0,
[email protected]@ -793,8 +823,8 @@
-      /* desc, NAME, name */ zUserText, zUser_NAME, zUser_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 25, VALUE_OPT_UPDATEINTERVAL,
--     /* equiv idx, value */ 25, VALUE_OPT_UPDATEINTERVAL,
-+  {  /* entry idx, value */ 26, VALUE_OPT_UPDATEINTERVAL,
-+     /* equiv idx, value */ 26, VALUE_OPT_UPDATEINTERVAL,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ UPDATEINTERVAL_FLAGS, 0,
[email protected]@ -805,8 +835,8 @@
-      /* desc, NAME, name */ zUpdateintervalText, zUpdateinterval_NAME, zUpdateinterval_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 26, VALUE_OPT_VAR,
--     /* equiv idx, value */ 26, VALUE_OPT_VAR,
-+  {  /* entry idx, value */ 27, VALUE_OPT_VAR,
-+     /* equiv idx, value */ 27, VALUE_OPT_VAR,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, NOLIMIT, 0,
-      /* opt state flags  */ VAR_FLAGS, 0,
[email protected]@ -817,8 +847,8 @@
-      /* desc, NAME, name */ zVarText, zVar_NAME, zVar_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 27, VALUE_OPT_DVAR,
--     /* equiv idx, value */ 27, VALUE_OPT_DVAR,
-+  {  /* entry idx, value */ 28, VALUE_OPT_DVAR,
-+     /* equiv idx, value */ 28, VALUE_OPT_DVAR,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, NOLIMIT, 0,
-      /* opt state flags  */ DVAR_FLAGS, 0,
[email protected]@ -829,8 +859,8 @@
-      /* desc, NAME, name */ zDvarText, zDvar_NAME, zDvar_Name,
-      /* disablement strs */ NULL, NULL },
- 
--  {  /* entry idx, value */ 28, VALUE_OPT_SLEW,
--     /* equiv idx, value */ 28, VALUE_OPT_SLEW,
-+  {  /* entry idx, value */ 29, VALUE_OPT_SLEW,
-+     /* equiv idx, value */ 29, VALUE_OPT_SLEW,
-      /* equivalenced to  */ NO_EQUIVALENT,
-      /* min, max, act ct */ 0, 1, 0,
-      /* opt state flags  */ SLEW_FLAGS, 0,
[email protected]@ -967,7 +997,7 @@
-       NO_EQUIVALENT, /* '-#' option index */
-       NO_EQUIVALENT /* index of default opt */
-     },
--    34 /* full option count */, 31 /* user option count */,
-+    35 /* full option count */, 32 /* user option count */,
-     ntpd_full_usage, ntpd_short_usage,
-     NULL, NULL
- };
---- ntpd/ntpd.c.orig	Wed Aug 12 04:07:05 2009
-+++ ntpd/ntpd.c	Thu Jul 29 09:48:44 2010
[email protected]@ -166,7 +166,7 @@
-  * after we have synched the first time. If the attempt fails, then try again once per 
-  * minute for up to 5 times. After all, we may be starting before mDNS.
-  */
--int mdnsreg = 1;
-+int mdnsreg = 0;
- int mdnstries = 5;
- #endif  /* HAVE_DNSREGISTRATION */
- 
[email protected]@ -540,6 +540,9 @@
- 	if (HAVE_OPT( NOVIRTUALIPS ))
- 		listen_to_virtual_ips = 0;
- 
-+	if (HAVE_OPT( MDNS ))
-+		mdnsreg = 1;
-+
- 	/*
- 	 * Limit specific interfaces
- 	 */
---- ntpd/ntpd-opts.h.orig	Wed Aug 12 04:42:23 2009
-+++ ntpd/ntpd-opts.h	Thu Jul 29 09:39:13 2010
[email protected]@ -67,28 +67,29 @@
-     INDEX_OPT_KEYFILE           = 12,
-     INDEX_OPT_LOGFILE           = 13,
-     INDEX_OPT_NOVIRTUALIPS      = 14,
--    INDEX_OPT_MODIFYMMTIMER     = 15,
--    INDEX_OPT_NOFORK            = 16,
--    INDEX_OPT_NICE              = 17,
--    INDEX_OPT_PIDFILE           = 18,
--    INDEX_OPT_PRIORITY          = 19,
--    INDEX_OPT_QUIT              = 20,
--    INDEX_OPT_PROPAGATIONDELAY  = 21,
--    INDEX_OPT_STATSDIR          = 22,
--    INDEX_OPT_TRUSTEDKEY        = 23,
--    INDEX_OPT_USER              = 24,
--    INDEX_OPT_UPDATEINTERVAL    = 25,
--    INDEX_OPT_VAR               = 26,
--    INDEX_OPT_DVAR              = 27,
--    INDEX_OPT_SLEW              = 28,
--    INDEX_OPT_USEPCC            = 29,
--    INDEX_OPT_PCCFREQ           = 30,
--    INDEX_OPT_VERSION           = 31,
--    INDEX_OPT_HELP              = 32,
--    INDEX_OPT_MORE_HELP         = 33
-+    INDEX_OPT_MDNS              = 15,
-+    INDEX_OPT_MODIFYMMTIMER     = 16,
-+    INDEX_OPT_NOFORK            = 17,
-+    INDEX_OPT_NICE              = 18,
-+    INDEX_OPT_PIDFILE           = 19,
-+    INDEX_OPT_PRIORITY          = 20,
-+    INDEX_OPT_QUIT              = 21,
-+    INDEX_OPT_PROPAGATIONDELAY  = 22,
-+    INDEX_OPT_STATSDIR          = 23,
-+    INDEX_OPT_TRUSTEDKEY        = 24,
-+    INDEX_OPT_USER              = 25,
-+    INDEX_OPT_UPDATEINTERVAL    = 26,
-+    INDEX_OPT_VAR               = 27,
-+    INDEX_OPT_DVAR              = 28,
-+    INDEX_OPT_SLEW              = 29,
-+    INDEX_OPT_USEPCC            = 30,
-+    INDEX_OPT_PCCFREQ           = 31,
-+    INDEX_OPT_VERSION           = 32,
-+    INDEX_OPT_HELP              = 33,
-+    INDEX_OPT_MORE_HELP         = 34
- } teOptIndex;
- 
--#define OPTION_CT    34
-+#define OPTION_CT    35
- #define NTPD_VERSION       "4.2.5p200"
- #define NTPD_FULL_VERSION  "ntpd - NTP daemon program - Ver. 4.2.5p200"
- 
[email protected]@ -177,6 +178,10 @@
- #  warning undefining NOVIRTUALIPS due to option name conflict
- #  undef   NOVIRTUALIPS
- # endif
-+# ifdef    MDNS
-+#  warning undefining MDNS due to option name conflict
-+#  undef   MDNS
-+# endif
- # ifdef    MODIFYMMTIMER
- #  warning undefining MODIFYMMTIMER due to option name conflict
- #  undef   MODIFYMMTIMER
[email protected]@ -257,6 +262,7 @@
- # undef KEYFILE
- # undef LOGFILE
- # undef NOVIRTUALIPS
-+# undef MDNS
- # undef MODIFYMMTIMER
- # undef NOFORK
- # undef NICE
[email protected]@ -302,6 +308,9 @@
- #define VALUE_OPT_KEYFILE        'k'
- #define VALUE_OPT_LOGFILE        'l'
- #define VALUE_OPT_NOVIRTUALIPS   'L'
-+#ifdef HAVE_DNSREGISTRATION
-+#define VALUE_OPT_MDNS           'm'
-+#endif /* HAVE_DNSREGISTRATION */
- #ifdef SYS_WINNT
- #define VALUE_OPT_MODIFYMMTIMER  'M'
- #endif /* SYS_WINNT */
[email protected]@ -319,8 +328,8 @@
- #endif /* HAVE_DROPROOT */
- #define VALUE_OPT_UPDATEINTERVAL 'U'
- #define OPT_VALUE_UPDATEINTERVAL (DESC(UPDATEINTERVAL).optArg.argInt)
--#define VALUE_OPT_VAR            26
--#define VALUE_OPT_DVAR           27
-+#define VALUE_OPT_VAR            27
-+#define VALUE_OPT_DVAR           28
- #define VALUE_OPT_SLEW           'x'
- #ifdef SYS_WINNT
- #define VALUE_OPT_USEPCC         29
--- a/components/ntp/patches/noextra.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
---- configure.orig	Thu May 14 06:34:41 2009
-+++ configure	Thu May 14 06:15:13 2009
[email protected]@ -459,8 +459,6 @@
- #endif"
- 
- ac_subdirs_all="$ac_subdirs_all arlib"
--ac_subdirs_all="$ac_subdirs_all sntp"
--ac_subdirs_all="$ac_subdirs_all gsoc_sntp"
- ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP YACC VPATH_HACK_TRUE VPATH_HACK_FALSE LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS BINSUBDIR subdirs ARLIB_DIR LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL PATH_SH PATH_PERL PATH_NET_SNMP_CONFIG EDITLINE_LIBS HAVE_INLINE LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB LCRYPTO EF_PROGS EF_LIBS MAKE_CHECK_LAYOUT TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM SNMP_LIBS SNMP_CPPFLAGS SNMP_CFLAGS MAKE_NTPSNMPD LSCF LIBOBJS LTLIBOBJS'
- ac_subst_files=''
- 
[email protected]@ -48060,11 +48058,9 @@
- 
- 
- 
--subdirs="$subdirs sntp"
- 
- 
- 
--subdirs="$subdirs gsoc_sntp"
- 
- 
- cat >confcache <<\_ACEOF
---- Makefile.in.orig	Thu May 14 06:34:41 2009
-+++ Makefile.in	Thu May 14 06:15:13 2009
[email protected]@ -217,8 +217,8 @@
- ACLOCAL_AMFLAGS = -I m4 -I libopts/m4
- NULL = 
- SUBDIRS = scripts include ElectricFence $(am__append_1) @[email protected] \
--	libntp libparse ntpd ntpdate ntpdc ntpq ntpsnmpd parseutil \
--	adjtimed clockstuff kernel gsoc_sntp sntp util $(NULL)
-+	libntp libparse ntpd ntpdate ntpdc ntpq parseutil \
-+	adjtimed clockstuff kernel util $(NULL)
- DIST_SUBDIRS = \
- 	scripts		\
- 	include		\
[email protected]@ -231,13 +231,10 @@
- 	ntpdate		\
- 	ntpdc		\
- 	ntpq		\
--	ntpsnmpd	\
- 	parseutil	\
- 	adjtimed	\
- 	clockstuff	\
- 	kernel		\
--	gsoc_sntp	\
--	sntp		\
- 	util		\
- 	$(NULL)
- 
--- a/components/ntp/patches/ntpwait.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
---- scripts/ntp-wait.in.orig	Thu May 14 06:34:42 2009
-+++ scripts/ntp-wait.in	Thu May 14 06:15:13 2009
[email protected]@ -20,8 +20,8 @@
-     while(<Q>) {
-       chomp;
-       # the first line should be similar to:
--      # associd=0 status=0645 leap_none, sync_ntp, ...
--      if (/^associd=0 status=(\S{4}) (\S+), (\S+),/) {
-+      # status=0645 leap_none, sync_ntp, ...
-+      if (/status=(\S{4}) (\S+), (\S+),/) {
- 	my $status = $1;
- 	my $leap = $2;
- 	my $sync = $3;
--- a/components/ntp/patches/timing.patch	Fri Oct 18 05:25:47 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
---- ntpd/ntp_proto.c.orig	Thu May 14 06:34:42 2009
-+++ ntpd/ntp_proto.c	Thu May 14 06:15:13 2009
[email protected]@ -1629,6 +1629,16 @@
- 	char	*fmri;
- #endif /* HAVE_LIBSCF_H */
- 
-+#ifdef DEBUG_TIMING
-+{
-+        char buf[2048];
-+
-+        snprintf(buf, sizeof(buf), "%lu %lu %d %d epoch",
-+                 sys_epoch,peer->epoch,peer->epoch-sys_epoch,current_time - peer->epoch);
-+        record_timing_stats(buf);
-+}
-+#endif
-+
- 	/*
- 	 * Update the system state variables. We do this very carefully,
- 	 * as the poll interval might need to be clamped differently.