Make telnet with SRA work.

Submitted by:	Nick Sayer
This commit is contained in:
markm 1999-10-07 19:47:09 +00:00
parent a6c74e1cc3
commit e22fcdae42
9 changed files with 87 additions and 3 deletions

View File

@ -6,7 +6,7 @@
MAINTAINER= markm
SUBDIR= lib usr.bin
SUBDIR= lib libexec usr.bin
SDIR= ${.CURDIR}/..

View File

@ -2,6 +2,14 @@
DISTRIBUTION=des
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
.if exists(${.OBJDIR}/../../lib/libtelnet)
TELNETOBJDIR= ${.OBJDIR}/../../lib/libtelnet
.else
TELNETOBJDIR= ${.CURDIR}/../../lib/libtelnet
.endif
.if exists(${.CURDIR}/../../lib/libcrypt/obj)
CRYPTOBJDIR= ${.CURDIR}/../../lib/libcrypt/obj
.else

View File

@ -1,6 +1,6 @@
# $FreeBSD$
SUBDIR= libcipher libdes
SUBDIR= libcipher libdes libtelnet
.include <bsd.subdir.mk>

View File

@ -0,0 +1,28 @@
# $FreeBSD$
LIB= telnet
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
enc_des.c sra.c pk.c
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
-DSRA -I${TELNETDIR} \
NOPIC= yes
INCLUDES= ${TELNETDIR}/arpa/telnet.h
#
# Before complaining about this, please *double-check* that you have
# updated the ldconfig path in /etc/rc to include /usr/lib/compat that
# was added in src/etc/rc rev 1.98.
# This is so that `ld' will not continue to generate binaries linked
# shared against libtelnet, so that in a future release we can move this
# off to a compat dist (like compat22).
#
beforeinstall:
rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.include <bsd.lib.mk>
.PATH: ${TELNETDIR}/libtelnet

6
secure/libexec/Makefile Normal file
View File

@ -0,0 +1,6 @@
# $FreeBSD$
SUBDIR= telnetd
.include <bsd.subdir.mk>

View File

@ -0,0 +1,4 @@
# $FreeBSD$
BINDIR= /usr/libexec
.include "${.CURDIR}/../../Makefile.inc"

View File

@ -0,0 +1,22 @@
# $FreeBSD$
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
# telnet implementations.
PROG= telnetd
MAN8= telnetd.8
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
-DENV_HACK -DAUTHENTICATION -DENCRYPTION \
-I${TELNETDIR}
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c authenc.c
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBDES} ${LIBMP} \
${LIBCRYPT}
LDADD= -lutil -ltermcap -L${TELNETOBJDIR} -ltelnet -ldes -lcrypt -lmp
.include <bsd.prog.mk>
.PATH: ${TELNETDIR}/telnetd

View File

@ -1,6 +1,6 @@
# $FreeBSD$
SUBDIR= bdes
SUBDIR= bdes telnet
.include <bsd.subdir.mk>

View File

@ -0,0 +1,16 @@
# $FreeBSD$
PROG= telnet
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DSKEY \
-DENCRYPTION -DAUTHENTICATION -I${TELNETDIR}
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c tn3270.c utilities.c
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBDES} ${LIBCRYPT} ${LIBMP}
LDADD= -ltermcap -L${TELNETOBJDIR} -ltelnet -ldes -lcrypt -lmp
.include <bsd.prog.mk>
.PATH: ${TELNETDIR}/telnet