[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ntp PARSE clocks
- To: ports@openbsd.org
- Subject: ntp PARSE clocks
- From: Matthias Kilian <kili@outback.escape.de>
- Date: Sat, 31 Jul 2004 21:48:09 +0200
- Cc: Dan Harnett <danh@openbsd.org>
- Content-Disposition: inline
- Mail-Followup-To: ports@openbsd.org, Dan Harnett <danh@openbsd.org>
- User-Agent: Mutt/1.3.28i
Hi,
is there any good (reliability, security) reason why the PARSE clocks
aren't configured in the net/ntp ports?
At least for the STABLE branch, the PARSE clocks could be optionally
enabled using a FLAVOR. See the patch below, which applies to STABLE,
but may also work similar for CURRENT. It just adds FLAVOR parse_clocks
wich causes to add --enable-parse-clocks to configure.
Ciao,
Kili
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/net/ntp/Attic/Makefile.inc,v
retrieving revision 1.5
diff -u -r1.5 Makefile.inc
--- Makefile.inc 4 Feb 2004 07:39:18 -0000 1.5
+++ Makefile.inc 31 Jul 2004 16:14:24 -0000
@@ -33,6 +33,13 @@
CONFIGURE_ARGS+= --bindir='${PREFIX}/sbin' \
--enable-accurate-adjtime --disable-IRIG
+FLAVORS= parse_clocks
+FLAVOR?=
+
+.if ${FLAVOR:L:Mparse_clocks}
+CONFIGURE_ARGS+= --enable-parse-clocks
+.endif
+
post-patch:
@touch ${WRKSRC}/aclocal.m4 ${WRKSRC}/config.h.in ${WRKSRC}/version
@find ${WRKSRC} -type f -name "Makefile.in" -exec touch {} \;
Index: devel/pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/ntp/devel/pkg/Attic/DESCR,v
retrieving revision 1.2
diff -u -r1.2 DESCR
--- devel/pkg/DESCR 15 Dec 2003 21:55:07 -0000 1.2
+++ devel/pkg/DESCR 31 Jul 2004 16:14:24 -0000
@@ -11,3 +11,7 @@
authentication to prevent accidental or malicious protocol
attacks and some provide automatic server discovery using IP
multicast.
+
+Flavors:
+
+ parse_clocks: include all suitable PARSE clocks.
Index: stable/pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/ntp/stable/pkg/Attic/DESCR,v
retrieving revision 1.2
diff -u -r1.2 DESCR
--- stable/pkg/DESCR 15 Dec 2003 21:55:07 -0000 1.2
+++ stable/pkg/DESCR 31 Jul 2004 16:14:24 -0000
@@ -11,3 +11,7 @@
authentication to prevent accidental or malicious protocol
attacks and some provide automatic server discovery using IP
multicast.
+
+Flavors:
+
+ parse_clocks: include all suitable PARSE clocks.
--
GUIs normally make it simple to accomplish simple actions and impossible to
accomplish complex actions.
Doug Gwyn (22/Jun/91 in `comp.unix.wizards')