From 7a1628aa01aade3847baf108a26ea818538a0e31 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 23 Mar 1995 19:13:04 +0000 Subject: 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(-) (limited to 'usr.sbin/xntpd') diff --git a/usr.sbin/xntpd/Makefile.inc b/usr.sbin/xntpd/Makefile.inc index c322560..b7b754b 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 a58c52f..32c6a4a 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 -- cgit v1.1