Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2011 16:38:37 -0800 (PST)
From:      Ask Bjoern Hansen <ask@develooper.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/162897: Add option to ntp port to enable SHM driver
Message-ID:  <201111260038.pAQ0cbxM060928@d1650.bur.sol>
Resent-Message-ID: <201111261730.pAQHUAXg046958@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         162897
>Category:       ports
>Synopsis:       Add option to ntp port to enable SHM driver
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 26 17:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111260038.pAQ0cbxM060928>