summaryrefslogtreecommitdiff
path: root/usr.sbin/ntp
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2004-07-22 09:10:52 +0000
committerOllivier Robert <roberto@FreeBSD.org>2004-07-22 09:10:52 +0000
commit0883223a5fa1430c8649737e5d1f1c8f5b9c6a1e (patch)
treefa62f1aa1cb06535b0ecbf1a002f34c32fb35ec5 /usr.sbin/ntp
parent5c1361654f3bd5405dec122e792ee7dba2c3c019 (diff)
downloadsrc-test2-0883223a5fa1430c8649737e5d1f1c8f5b9c6a1e.tar.gz
src-test2-0883223a5fa1430c8649737e5d1f1c8f5b9c6a1e.zip
Notes
Diffstat (limited to 'usr.sbin/ntp')
-rw-r--r--usr.sbin/ntp/Makefile.inc5
-rw-r--r--usr.sbin/ntp/config.h2
-rw-r--r--usr.sbin/ntp/ntp-keygen/Makefile9
-rw-r--r--usr.sbin/ntp/ntpd/Makefile9
4 files changed, 20 insertions, 5 deletions
diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc
index 1f548ee28428..bd9b34ea9ead 100644
--- a/usr.sbin/ntp/Makefile.inc
+++ b/usr.sbin/ntp/Makefile.inc
@@ -8,6 +8,11 @@ NTPDEFS= -DSYS_FREEBSD
# -DMX4200 -DNMEA -DBOEDER
CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${CLOCKDEFS}
+.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
+CFLAGS+= -DOPENSSL
+DISTRIBUTION= crypto
+.endif
+
.if exists(${.OBJDIR}/../libparse)
LIBPARSE= ${.OBJDIR}/../libparse/libparse.a
.else
diff --git a/usr.sbin/ntp/config.h b/usr.sbin/ntp/config.h
index e58cad5b3604..51d0929fa6cd 100644
--- a/usr.sbin/ntp/config.h
+++ b/usr.sbin/ntp/config.h
@@ -933,7 +933,7 @@
#define ONCORE_SHMEM_STATUS 1
/* Use OpenSSL? */
-#define OPENSSL
+/* #undef OPENSSL */
/* Should we open the broadcast socket? */
#define OPEN_BCAST_SOCKET 1
diff --git a/usr.sbin/ntp/ntp-keygen/Makefile b/usr.sbin/ntp/ntp-keygen/Makefile
index 891d6be75f85..ebb39339e365 100644
--- a/usr.sbin/ntp/ntp-keygen/Makefile
+++ b/usr.sbin/ntp/ntp-keygen/Makefile
@@ -9,7 +9,12 @@ SRCS= ntp-keygen.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
-DPADD= ${LIBNTP} ${LIBMD} ${LIBCRYPTO}
-LDADD= ${LIBNTP} -lmd -lcrypto
+DPADD= ${LIBNTP}
+LDADD= ${LIBNTP}
+
+.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
+DPADD+= ${LIBMD} ${LIBCRYPTO}
+LDADD+= -lmd -lcrypto
+.endif
.include <bsd.prog.mk>
diff --git a/usr.sbin/ntp/ntpd/Makefile b/usr.sbin/ntp/ntpd/Makefile
index 027b9b96dacf..d16dcc1cb061 100644
--- a/usr.sbin/ntp/ntpd/Makefile
+++ b/usr.sbin/ntp/ntpd/Makefile
@@ -28,8 +28,13 @@ SRCS= cmd_args.c map_vme.c ntp_config.c \
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
-DPADD= ${LIBPARSE} ${LIBNTP} ${LIBM} ${LIBCRYPTO} ${LIBMD}
-LDADD= ${LIBPARSE} ${LIBNTP} -lm -lcrypto -lmd
+DPADD= ${LIBPARSE} ${LIBNTP} ${LIBM} ${LIBMD}
+LDADD= ${LIBPARSE} ${LIBNTP} -lm -lmd
+
+.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
+DPADD+= ${LIBCRYPTO}
+LDADD+= -lcrypto
+.endif
CLEANFILES+= .version version.c