ports/162897: Add option to ntp port to enable SHM driver

Ask Bjoern Hansen ask at develooper.com
Sat Nov 26 17:30:11 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list