Add build option MK_ED_CRYPTO to control whether ed(1) is to have the

ability to encrypt/decrypt files. Embedded systems can typically have
OpenSSL, but not for ed(1) to use it.

Obtained from:	Juniper Networks, Inc.
This commit is contained in:
Marcel Moolenaar 2012-05-19 17:55:49 +00:00
parent 46ad370763
commit aa39c44746
2 changed files with 4 additions and 3 deletions

View File

@ -7,12 +7,12 @@ SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
.if !defined(RELEASE_CRUNCH)
.if ${MK_OPENSSL} != "no"
.if !defined(RELEASE_CRUNCH) && \
${MK_OPENSSL} != "no" && \
${MK_ED_CRYPTO} != "no"
CFLAGS+=-DDES
DPADD= ${LIBCRYPTO}
LDADD= -lcrypto
.endif
.endif
.include <bsd.prog.mk>

View File

@ -334,6 +334,7 @@ __DEFAULT_YES_OPTIONS = \
CXX \
DICT \
DYNAMICROOT \
ED_CRYPTO \
EXAMPLES \
FLOPPY \
FORTH \