Remove telnetd
The telnetd codebase is unmaintained and has a number of quality issues. Telnet has been largely supplanted by ssh. If needed, a port is available (net/freebsd-telnetd), but a more maintained implementation should be prefered. While the telnet client suffers from the same issues, it is deemed to be of lower risk and is required to connect to legacy devices, so it remains. Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D36620
This commit is contained in:
@@ -27,7 +27,6 @@ SUBDIR= ${_atf} \
|
||||
${_rtld-elf} \
|
||||
save-entropy \
|
||||
${_smrsh} \
|
||||
${_telnetd} \
|
||||
${_tests} \
|
||||
${_tftp-proxy} \
|
||||
ulog-helper \
|
||||
@@ -104,10 +103,6 @@ SUBDIR+= talkd
|
||||
SUBDIR+= tcpd
|
||||
.endif
|
||||
|
||||
.if ${MK_TELNET} != "no"
|
||||
_telnetd= telnetd
|
||||
.endif
|
||||
|
||||
.if ${MK_TFTP} != "no"
|
||||
SUBDIR+= tftpd
|
||||
.endif
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
||||
# telnet implementations.
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
PACKAGE= telnet
|
||||
|
||||
TELNETDIR= ${SRCTOP}/contrib/telnet
|
||||
.PATH: ${TELNETDIR}/telnetd
|
||||
|
||||
PROG= telnetd
|
||||
MAN= telnetd.8
|
||||
|
||||
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
||||
termstat.c utility.c
|
||||
|
||||
WARNS?= 2
|
||||
WFORMAT?= 0
|
||||
|
||||
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
||||
-DENV_HACK -DSTREAMSPTY
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
CFLAGS+= -DINET6
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${TELNETDIR}
|
||||
CFLAGS+= -I${TELNETDIR}/telnet
|
||||
|
||||
LIBADD= telnet util tinfow
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
SRCS+= authenc.c
|
||||
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
|
||||
LIBADD+= mp crypto pam
|
||||
.endif
|
||||
|
||||
.if ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
|
||||
LIBADD+= krb5 roken
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
@@ -1,25 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
include \
|
||||
include/arpa \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcom_err \
|
||||
lib/libcompiler_rt \
|
||||
lib/libcrypt \
|
||||
lib/libmp \
|
||||
lib/libpam/libpam \
|
||||
lib/libtelnet \
|
||||
lib/libthr \
|
||||
lib/libutil \
|
||||
lib/ncurses/ncursesw \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
||||
@@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# This file is not autogenerated - take care!
|
||||
|
||||
DIRDEPS_OPTIONS= KERBEROS_SUPPORT OPENSSL
|
||||
|
||||
.include <dirdeps-options.mk>
|
||||
Reference in New Issue
Block a user