summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-03-23 19:13:04 +0000
committerwollman <wollman@FreeBSD.org>1995-03-23 19:13:04 +0000
commit7a1628aa01aade3847baf108a26ea818538a0e31 (patch)
tree13d708817b68620b35f76d947b04de44839f1f68 /usr.sbin/xntpd
parent294d85f56c13728200d79e3f61821dd2e9c6e85a (diff)
downloadFreeBSD-src-7a1628aa01aade3847baf108a26ea818538a0e31.zip
FreeBSD-src-7a1628aa01aade3847baf108a26ea818538a0e31.tar.gz
Enable DES if NOCRYPT is not set and and the user has the secure sources.
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/Makefile.inc4
-rw-r--r--usr.sbin/xntpd/lib/Makefile11
2 files changed, 12 insertions, 3 deletions
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 <bsd.lib.mk>
OpenPOWER on IntegriCloud