diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-12 22:53:46 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-12 22:53:46 +0000 |
commit | 449b5dd19d5aafb64eda36b962d06420bcd2f50b (patch) | |
tree | 2887e9713bb9529e5a7ecd8b16d5e89cab79bc78 /eBones/libexec/telnetd/Makefile | |
parent | 41e83b9b6fa8e566642f114979337369a57995e1 (diff) | |
download | FreeBSD-src-449b5dd19d5aafb64eda36b962d06420bcd2f50b.zip FreeBSD-src-449b5dd19d5aafb64eda36b962d06420bcd2f50b.tar.gz |
Move the telnetd with encryption to src/secure
This needs tidying up and having makefiles sorted out later.
Reviewed by: Geoff Rehmet
Diffstat (limited to 'eBones/libexec/telnetd/Makefile')
-rw-r--r-- | eBones/libexec/telnetd/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/eBones/libexec/telnetd/Makefile b/eBones/libexec/telnetd/Makefile new file mode 100644 index 0000000..e2b5f1b --- /dev/null +++ b/eBones/libexec/telnetd/Makefile @@ -0,0 +1,37 @@ +# @(#)Makefile 8.2 (Berkeley) 12/15/93 + +PROG= telnetd +CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS +CFLAGS+=-DOLD_ENVIRON -DENV_HACK +CFLAGS+=-I${.CURDIR}/../../lib +#CFLAGS+=-DAUTHENTICATION -DENCRYPTION +SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ + termstat.c utility.c +DPADD= ${LIBUTIL} ${LIBTERM} +LDADD= -lutil -ltermcap -ltelnet +#LDADD+= -lkrb -ldes +MAN8= telnetd.8 + +# These are the sources that have encryption stuff in them. +CRYPT_SRC= authenc.c ext.h state.c telnetd.c termstat.c +CRYPT_SRC+= utility.c Makefile +NOCRYPT_DIR=${.CURDIR}/Nocrypt + +.include <bsd.prog.mk> + +nocrypt: +#ifdef ENCRYPTION + @for i in ${CRYPT_SRC}; do \ + if [ ! -d ${NOCRYPT_DIR} ]; then \ + echo Creating subdirectory ${NOCRYPT_DIR}; \ + mkdir ${NOCRYPT_DIR}; \ + fi; \ + echo ${NOCRYPT_DIR}/$$i; \ + unifdef -UENCRYPTION ${.CURDIR}/$$i | \ + sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ + done + +placeholder: +#else /* ENCRYPTION */ + @echo "Encryption code already removed." +#endif /* ENCRYPTION */ |