From db041b142bb3eefe6a00a9b1f50bb3bba8717a03 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 23 Mar 1995 19:13:04 +0000 Subject: [PATCH] Enable DES if NOCRYPT is not set and and the user has the secure sources. --- usr.sbin/xntpd/Makefile.inc | 4 ++++ usr.sbin/xntpd/lib/Makefile | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/usr.sbin/xntpd/Makefile.inc b/usr.sbin/xntpd/Makefile.inc index c322560b6eb..b7b754bdc21 100644 --- a/usr.sbin/xntpd/Makefile.inc +++ b/usr.sbin/xntpd/Makefile.inc @@ -6,3 +6,7 @@ CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DAS2201 -DGOES -DGPSTM -DOMEGA \ -DMX4200 -DNMEA -DWWVB CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${AUTHDEFS} ${CLOCKDEFS} ${COPTS} BINDIR?= /usr/sbin + +.if !defined(NOCRYPT) +AUTHDEFS+= -DDES +.endif diff --git a/usr.sbin/xntpd/lib/Makefile b/usr.sbin/xntpd/lib/Makefile index a58c52f35c3..32c6a4a964c 100644 --- a/usr.sbin/xntpd/lib/Makefile +++ b/usr.sbin/xntpd/lib/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.4 1993/12/22 11:32:23 rgrimes Exp $ +# $Id: Makefile,v 1.5 1994/04/03 20:37:05 wollman Exp $ # CFLAGS+= -I${.CURDIR}/../include @@ -22,9 +22,14 @@ NOPROFILE= LIB= ntp CLEANFILES+=authdes.c -install: - +.if !defined(NOCRYPT) && exists(${.CURDIR}/../../../secure/usr.sbin/xntpd/lib) +.PATH: ${.CURDIR}/../../../secure/usr.sbin/xntpd/lib +.else authdes.c: authdes.c.export cp ${.CURDIR}/authdes.c.export authdes.c +.endif + +# don't install this anywhere +install: .include