From Joerg.Pulz@frm2.tum.de  Mon Feb 28 18:27:17 2005
Return-Path: <Joerg.Pulz@frm2.tum.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 147B616A4CE; Mon, 28 Feb 2005 18:27:17 +0000 (GMT)
Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id B085D43D2F; Mon, 28 Feb 2005 18:27:11 +0000 (GMT)
	(envelope-from Joerg.Pulz@frm2.tum.de)
Received: from localhost (mailhost.frm2.tum.de [129.187.179.12])
	by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j1SIRAuU016593;
	Mon, 28 Feb 2005 19:27:10 +0100 (CET)
	(envelope-from jpulz@frm2.tum.de)
Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10])
	by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j1SIR9CS016589
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Mon, 28 Feb 2005 19:27:09 +0100 (CET)
	(envelope-from jpulz@frm2.tum.de)
Received: from hades.admin.frm2 (localhost [127.0.0.1])
	by hades.admin.frm2 (8.13.1/8.13.1) with ESMTP id j1SIR9pU052977;
	Mon, 28 Feb 2005 19:27:09 +0100 (CET)
	(envelope-from jpulz@frm2.tum.de)
Received: (from jpulz@localhost)
	by hades.admin.frm2 (8.13.1/8.13.1/Submit) id j1SIR9CQ052976;
	Mon, 28 Feb 2005 19:27:09 +0100 (CET)
	(envelope-from jpulz)
Message-Id: <200502281827.j1SIR9CQ052976@hades.admin.frm2>
Date: Mon, 28 Feb 2005 19:27:09 +0100 (CET)
From: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Reply-To: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Ollivier Robert <roberto@freebsd.org>
Subject: add MEINBERG clock support to the base ntpd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         78207
>Category:       bin
>Synopsis:       add MEINBERG clock support to the base ntpd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    roberto
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 28 18:30:14 GMT 2005
>Closed-Date:    Thu Jun 23 21:38:45 GMT 2005
>Last-Modified:  Thu Jun 23 21:38:45 GMT 2005
>Originator:     Joerg Pulz
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
ZWE FRM-II / TU-Munich
>Environment:
System: FreeBSD hades.admin.frm2 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #2: Mon Jan 17 08:13:26 CET 2005 root@hades.admin.frm2:/usr/obj/usr/src/sys/HADES i386


	
>Description:
	I use two hardware clocks manufactured by Meinberg GmbH (Germany)
	to sync all our client machines and servers via NTP.
	One clock is DCF77 based and the other clock is GPS based.
	After modifying the src/usr.sbin/ntp/config.h file and recompiling
	the whole ntp stuff, these clocks are working flawlessly over month's
	now.
	My question is: is it possible to officially include support for these
	clocks in the base ntp? This would save me from modifying the file
	ever and ever again.
	Using an additional installation from ports would solve this too, but
	i'm very happy with the base ntp, so why install another one..
	
>How-To-Repeat:
	FIX for now:
	Appended is a very small patch which enables support for these clocks.
	Apply the diff to src/usr.sbin/ntp/config.h.

	FIX for future ntp imports:
	Include one additional configure option when generating the config.h
	file. The necessary option is: --enable-MEINBERG

>Fix:

	

--- ntp_config.h.diff begins here ---
--- config.h.orig	Mon Feb 28 18:47:33 2005
+++ config.h	Mon Feb 28 18:47:48 2005
@@ -84,7 +84,7 @@
 #define CLOCK_LOCAL 1
 
 /* Meinberg clocks */
-/* #undef CLOCK_MEINBERG */
+#define CLOCK_MEINBERG 1
 
 /* EES M201 MSF receiver */
 /* #undef CLOCK_MSFEES */
--- ntp_config.h.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->roberto 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Thu Jun 23 13:20:03 GMT 2005 
Responsible-Changed-Why:  
Assign this to reberto@ as he takes care of the NTP stuff 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78207 
State-Changed-From-To: open->closed 
State-Changed-By: roberto 
State-Changed-When: Thu Jun 23 21:37:51 GMT 2005 
State-Changed-Why:  
re@ was kind enough to let me commit it. 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78207 
>Unformatted:
