From ask@develooper.com  Sat Nov 26 17:28:10 2011
Return-Path: <ask@develooper.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1E82C106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2011 17:28:10 +0000 (UTC)
	(envelope-from ask@develooper.com)
Received: from talk1.solfo.com (talk.solfo.com [64.235.248.100])
	by mx1.freebsd.org (Postfix) with ESMTP id 096F58FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2011 17:28:09 +0000 (UTC)
Received: from d1650.bur.sol (d1650.bur.sol [10.50.20.45])
	by talk1.solfo.com (Postfix) with ESMTP id 1F8121F0CF
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2011 09:05:36 -0800 (PST)
Received: from d1650.bur.sol (localhost [127.0.0.1])
	by d1650.bur.sol (8.14.5/8.14.5) with ESMTP id pAQ0ccAM060929
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Nov 2011 16:38:38 -0800 (PST)
	(envelope-from ask@d1650.bur.sol)
Received: (from ask@localhost)
	by d1650.bur.sol (8.14.5/8.14.5/Submit) id pAQ0cbxM060928;
	Fri, 25 Nov 2011 16:38:37 -0800 (PST)
	(envelope-from ask)
Message-Id: <201111260038.pAQ0cbxM060928@d1650.bur.sol>
Date: Fri, 25 Nov 2011 16:38:37 -0800 (PST)
From: Ask Bjoern Hansen <ask@develooper.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Add option to ntp port to enable SHM driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         162897
>Category:       ports
>Synopsis:       Add option to net/ntp to enable SHM driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 26 17:30:10 UTC 2011
>Closed-Date:    Sun Nov 27 21:15:47 UTC 2011
>Last-Modified:  Tue Mar 13 16:56:33 UTC 2012
>Originator:     Ask Bjoern Hansen
>Release:        FreeBSD 9.0-RC2 i386
>Organization:
>Environment:
System: FreeBSD d1650.bur.sol 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:09:11 UTC 2011 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


The following small patch makes it easy to enable the SHM driver in the NTP port.

There are many other drivers, too, but this one seems less esoteric than most of the other 
non-default ones.  It's used by gpsd, for example, to work with the small Garmin PPS+serial
gps, but also by some Meinberg systems.


Ask


--- Makefile~	2011-10-20 17:06:38.000000000 -0700
+++ Makefile	2011-11-25 12:05:31.000000000 -0800
@@ -31,7 +31,8 @@
 
 OPTIONS=	NTPSNMPD "Build and install ntpsnmpd" OFF \
 		RAWDCF "Enable RAWDCF option" OFF \
-		SSL "Enable SSL" ON
+		SSL "Enable SSL" ON \
+		SHM "Enable SHM driver" OFF
 
 .include <bsd.port.options.mk>
 
@@ -39,6 +40,10 @@
 CONFIGURE_ARGS+=	--enable-RAWDCF
 .endif
 
+.if defined(WITH_SHM)
+CONFIGURE_ARGS+=	--enable-SHM
+.endif
+
 .if !defined(WITH_SSL)
 CONFIGURE_ARGS+=	--without-crypto
 PLIST_SUB+=		SSL="@comment "
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cy 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Nov 27 16:56:40 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162897 
State-Changed-From-To: open->analyzed 
State-Changed-By: cy 
State-Changed-When: Sun Nov 27 17:14:19 UTC 2011 
State-Changed-Why:  
This same patch will need to be added to the other NTP ports as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162897 
State-Changed-From-To: analyzed->closed 
State-Changed-By: cy 
State-Changed-When: Sun Nov 27 19:41:50 UTC 2011 
State-Changed-Why:  
Added options for all drivers that build under FreeBSD. 

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