Enable DES if NOCRYPT is not set and and the user has the secure sources.

This commit is contained in:
Garrett Wollman 1995-03-23 19:13:04 +00:00
parent c16b583c3c
commit db041b142b
2 changed files with 12 additions and 3 deletions

View file

@ -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

View file

@ -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 <bsd.lib.mk>