Make telnet with SRA work.
Submitted by: Nick Sayer
This commit is contained in:
parent
4afab95162
commit
dcc5aa7fc1
@ -6,7 +6,7 @@
|
||||
|
||||
MAINTAINER= markm
|
||||
|
||||
SUBDIR= lib usr.bin
|
||||
SUBDIR= lib libexec usr.bin
|
||||
|
||||
SDIR= ${.CURDIR}/..
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= libcipher libdes
|
||||
SUBDIR= libcipher libdes libtelnet
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
|
28
secure/lib/libtelnet/Makefile
Normal file
28
secure/lib/libtelnet/Makefile
Normal 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
6
secure/libexec/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= telnetd
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
4
secure/libexec/Makefile.inc
Normal file
4
secure/libexec/Makefile.inc
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
BINDIR= /usr/libexec
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
22
secure/libexec/telnetd/Makefile
Normal file
22
secure/libexec/telnetd/Makefile
Normal 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
|
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= bdes
|
||||
SUBDIR= bdes telnet
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
|
16
secure/usr.bin/telnet/Makefile
Normal file
16
secure/usr.bin/telnet/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user