Now possible to configure with external athena tree.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@189 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,916 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1991 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted provided
|
||||
# that: (1) source distributions retain this entire copyright notice and
|
||||
# comment, and (2) distributions including binaries display the following
|
||||
# acknowledgement: ``This product includes software developed by the
|
||||
# University of California, Berkeley and its contributors'' in the
|
||||
# documentation or other materials provided with the distribution and in
|
||||
# all advertising materials mentioning features or use of this software.
|
||||
# Neither the name of the University nor the names of its contributors may
|
||||
# be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Config.generic 5.5 (Berkeley) 3/1/91
|
||||
#
|
||||
|
||||
# This is the configuration file for building all of
|
||||
# telnet/telnetd/libtelnet. If you want to add your
|
||||
# own local configuration for a specific machine that
|
||||
# is already listed here, it is best to create a new
|
||||
# file called "Config.local", and put the definitions
|
||||
# there. If you are adding definitions for a new system
|
||||
# type, you can add them here. In this case, please send
|
||||
# the new definition, and any changes you have to make to
|
||||
# the code, back to "dab@cray.com" so that your changes
|
||||
# can be put into the next release.
|
||||
#
|
||||
# Each definition must have the form:
|
||||
#
|
||||
# <target>:
|
||||
# make -f Makefile.generic ${WHAT} \
|
||||
# <definitions>
|
||||
|
||||
# DEFINES=
|
||||
#
|
||||
# Variables to be defined when actually compiling the source. Defined
|
||||
# as: DEFINES="-D<var> -D<var2> ... -D<varn>"
|
||||
#
|
||||
# TELNET/TELNETD CONFIGURATION
|
||||
#
|
||||
# LINEMODE Turns on support in telnetd for the linemode option.
|
||||
# (Linemode is always on in the client).
|
||||
#
|
||||
# KLUDGELINEMODE Define this to get the kludged up version of linemode
|
||||
# that was in 4.3BSD. This is a good thing to have
|
||||
# around for talking to older systems. This has no
|
||||
# effect on telnetd if LINEMODE has not been defined.
|
||||
#
|
||||
# DIAGNOSTICS Turns on diagnostic code in telnetd; adds extra
|
||||
# logic and checks, and debuging output if started
|
||||
# with the -D option.
|
||||
#
|
||||
# NO_URGENT Define this if you don't want telnetd to send
|
||||
# IAC DM in urgent mode when the pty output queue
|
||||
# is flushed.
|
||||
#
|
||||
# GENERATE_GA Turns on code to allow the generation of Go Ahead(GA)
|
||||
# if the server is WONT SGA. This code is imprecise,
|
||||
# it generates the GA when two seconds have elapsed
|
||||
# and no input or output has occurred.
|
||||
#
|
||||
# AUTHENTICATION Enable the AUTHENTICATION option.
|
||||
#
|
||||
# ENCRYPTION Enable the ENCRYPT option.
|
||||
#
|
||||
# KRB4 Enable Kerberos Version 4 Authentication code
|
||||
# in libtelnet/libtelnet.a
|
||||
#
|
||||
# KRB5 Enable Kerberos Version 5 Authentication code
|
||||
# in libtelnet/libtelnet.a
|
||||
#
|
||||
# SPX Enable SPX authentication code in.
|
||||
# libtelnet/libtelnet.a
|
||||
#
|
||||
# RSA_ENCPWD
|
||||
#
|
||||
# KRB4_ENCPWD
|
||||
#
|
||||
#
|
||||
# DES_ENCRYPTION Enable DES encryption/decryption, requires
|
||||
# getting a the initial key from Kerberos. This
|
||||
# works with both Kerberos Version 4 and 5.
|
||||
#
|
||||
# ENV_HACK Turn on code to recognize and allow
|
||||
# interoperability with systems that have their
|
||||
# definitions for ENV_VALUE and ENV_VAR reversed.
|
||||
#
|
||||
# LOCAL SYSYTEM PARAMATERS
|
||||
#
|
||||
# TERMCAP Define this if your system is termcap based,
|
||||
# otherwise a terminfo based system is assumed.
|
||||
#
|
||||
# SYSV_TERMIO Use the System V termio structure. (implies USE_TERMIO)
|
||||
#
|
||||
# NO_CC_T Define this if your termio.h file does not have
|
||||
# a typedef for cc_t.
|
||||
#
|
||||
# USE_TERMIO Define this if you have the POSIX termios structures.
|
||||
# This code works under the BSD 4.4 terminal driver.
|
||||
#
|
||||
# HAS_GETTOS Define this if you have the setsockopt() option for
|
||||
# setting the IP Type Of Service bits, (IP_TOS) and
|
||||
# you have the gettosbyname() function.
|
||||
#
|
||||
# NEWINIT Turns on the new init code for UNICOS systems.
|
||||
#
|
||||
# STREAMS This system needs <sys/stream.h> for <sys/tty.h>
|
||||
# (Sun 4.0.3)
|
||||
#
|
||||
# FILIO_H This system should use <sys/fileo.h> instead
|
||||
# of <sys/ioctl.h> (Sun 4.0.3)
|
||||
#
|
||||
# HAVE_fd_set This system has a typedef for fd_set, but does
|
||||
# not have FDSET() defined.
|
||||
#
|
||||
# NO_STRING_H If you don't have <string.h>, but have <strings.h>
|
||||
#
|
||||
# NO_LOGIN_P If /bin/login doesn't understand the "-p"
|
||||
# (preserve environment) option.
|
||||
#
|
||||
# LOGIN_ARGS if /bin/login understands environment variables
|
||||
# after the login name. Only used if NO_LOGIN_P
|
||||
# is defined.
|
||||
#
|
||||
# NO_LOGIN_F If /bin/login doesn't understand the "-f" option.
|
||||
# Only used if AUTHENTICATION is defined.
|
||||
#
|
||||
# LOGIN_R This says that /bin/login understands the "-r host"
|
||||
# option. Only used if NO_LOGIN_F is defined (and
|
||||
# the system supports the TIOCSTI ioctl).
|
||||
#
|
||||
# LOGIN_HOST Only applies if LOGIN_R is defined. This
|
||||
# specifies the hostname to be passed to "login -r"
|
||||
# for successfully authenticated logins. This
|
||||
# defaults to "localhost" (don't forget to include
|
||||
# the quotes, e.g. -DLOGIN_HOST=\"localhost\").
|
||||
#
|
||||
# It can also be set to host (-DLOGIN_HOST=host)
|
||||
# to have the real hostname passed to "/bin/login -r".
|
||||
# NOTE: If you do this, then anyone that wants to
|
||||
# allow authenticated login access will have
|
||||
# to add those remote hosts to their .rhosts,
|
||||
# which sort of defeats the whole purpose of
|
||||
# authenticated login...
|
||||
#
|
||||
# NO_BSD_SETJMP For UNICOS releases prior to 7.0. Turns off
|
||||
# the inclusion of <bsdsetjmp.h>.
|
||||
#
|
||||
# STREAMS If the system has streams; causes <sys/stream.h>
|
||||
# to be included instead of <sys/tty.h>
|
||||
#
|
||||
# MUST_ALIGN If !KRB & !HAVE_KRB4_DES_LIB and your words
|
||||
# must be word aligned.
|
||||
#
|
||||
# STREAMSPTY Use /dev/ptmx to get a clean pty. Uses
|
||||
# streams packet mode rather than Berkeley.
|
||||
# Appropriate for SVr4 derivatives.
|
||||
#
|
||||
# UTMPX System has /etc/utmpx as well as /etc/utmp.
|
||||
# Use makeutx and modutx to update utmp/x and wtmp/x.
|
||||
# Appropriate for SVr4 derivatives.
|
||||
#
|
||||
# HAS_CGETENT If your system has the cgetent() and cgetstr()
|
||||
# routines. This is a 4.4BSD feature, that
|
||||
# eliminates grabbing the getty gettytab.c source.
|
||||
# You need to include getent.o on the LIB_OBJ
|
||||
# line if this is defined.
|
||||
#
|
||||
# OLD_ENVIRON Support for the old environment option.
|
||||
#
|
||||
# NO_MKTIME If you don't have mktime().
|
||||
|
||||
# LIB_OBJ=
|
||||
# This is a list of object files that are needed but are not in
|
||||
# the standard C library.
|
||||
#
|
||||
# strcasecmp.o If you don't have strncasecmp(3)
|
||||
# strdup.o If you don't have strdup(3)
|
||||
# setenv.o If you don't have setenv(3) and unsetenv(3)
|
||||
# setsid.o If you don't have the POSIX setsid() call
|
||||
# strerror.o If you don't have strerror(3)
|
||||
# strftime.o If you don't have strftime(3)
|
||||
# getopt.o If you don't have getopt(3)
|
||||
# herror.o If you don't have herror(3)
|
||||
# gettytab.o If you can get gettytab.c from getty source.
|
||||
# getent.o If you can't get gettytab.c (or have
|
||||
# HAS_CGETENT defined...)
|
||||
# mem.o If you don't have mem*(3) routines.
|
||||
|
||||
# LIB_SRC=
|
||||
# This is a list of source modules for specificed in LIB_OBJ.
|
||||
# This information is used by make for checking dependencies.
|
||||
|
||||
|
||||
# LIBS=
|
||||
# This is a list of libraries to be included. This will always
|
||||
# include the telnet library, and will also include either -lcurses
|
||||
# or -ltermcap, -lutil for 4.4bsd, and -lnet for UNICOS5.0 and earlier.
|
||||
# Also -lkrb & -ldes if Kerberos.
|
||||
|
||||
# LIBPATH=
|
||||
# This is a list of the paths to all the libraries listed in LIBS.
|
||||
# This information is used by make for checking dependencies.
|
||||
# Don't forget libc.a
|
||||
|
||||
# VPATH=
|
||||
# Directory where gettytab.c can be found, if you have it.
|
||||
|
||||
# LIBEXEC=
|
||||
# Directory where the telnetd executable should be installed.
|
||||
|
||||
# LCCFLAGS=
|
||||
# Local flags for ${CC} (like -O)
|
||||
|
||||
# AR=
|
||||
# Name of "ar" program, usually just "ar".
|
||||
|
||||
# ARFLAGS
|
||||
# Flags to pass to ${AR}
|
||||
|
||||
# RANLIB
|
||||
# Name of "ranlib" program, set it to "NONE" if you don't
|
||||
# have a "ranlib".
|
||||
|
||||
all:
|
||||
@echo "You must specify what type of system you are on,"
|
||||
@echo "or setup a Config.local file for your system."
|
||||
@echo "Known system types are:"
|
||||
@echo
|
||||
@echo " 4.4bsd 4.3reno 4.4bsd.auth 4.3reno.auth 4.3tahoe 4.3bsd"
|
||||
@echo " bsdi1.0 bsdi1.0.auth"
|
||||
@echo " unicos9.0 unicos8.3 unicos8.0 unicos7.C unicos7.0 unicos6.1"
|
||||
@echo " unicos9.0.auth unicos8.3.auth unicos8.0.auth unicos7.0.auth"
|
||||
@echo " unicos7.C.auth unicos7.0.des.auth"
|
||||
@echo " sun3.5 sun4.0.3c sun4.0 sun4.1 sun4.1.auth"
|
||||
@echo " solaris2.2 solaris2.2.auth"
|
||||
@echo " dynix3.0.12 dynix3.0.17"
|
||||
@echo " ultrix3.1 ultrix4.0 ultrix4.1 ultrix4.3 ultrix4.3.auth"
|
||||
@echo " irix4.0.1"
|
||||
@echo " hpux8.0"
|
||||
@echo " next1.0"
|
||||
@echo " convex"
|
||||
|
||||
4.4bsd:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\n4.4 BSD UNIX (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
-DHAS_CGETENT ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
4.3reno:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\n4.3BSD-Reno UNIX (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
|
||||
-DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="gettytab.o" \
|
||||
LIB_SRC="gettytab.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
VPATH=/usr/src/libexec/getty \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
|
||||
4.4bsd.auth 4.3reno.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION \
|
||||
-DKRB4 -DDES_ENCRYPTION" \
|
||||
AUTH_INC=-I/usr/include/kerberosIV
|
||||
|
||||
4.3tahoe:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\n4.3BSD-Tahoe UNIX (%h) (%t)\r\n\r\r\n\r\"'\
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="strdup.o setsid.o strftime.o gettytab.o" \
|
||||
LIB_SRC="strdup.c setsid.c strftime.c gettytab.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
VPATH=/usr/src/etc/getty \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
4.3bsd:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\n4.3BSD UNIX (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="strdup.o setsid.o strftime.o \
|
||||
gettytab.o getopt.o herror.o" \
|
||||
LIB_SRC="strdup.c setsid.c strftime.c \
|
||||
gettytab.c getopt.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
VPATH=/usr/src/etc/getty \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
bsdi2.0:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nBSDI BSD/OS 2.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
|
||||
-DOLD_ENVIRON ${AUTH_DEF} -DHAS_CGETENT" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
bsdi2.0.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION \
|
||||
-DKRB4 -DDES_ENCRYPTION" \
|
||||
AUTH_INC=-I/usr/include/kerberosIV
|
||||
|
||||
bsdi1.1:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nBSDI BSD/386 1.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
|
||||
-DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="gettytab.o" \
|
||||
LIB_SRC="gettytab.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
VPATH=/usr/src/libexec/getty \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
bsdi1.1.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION \
|
||||
-DKRB4 -DDES_ENCRYPTION" \
|
||||
AUTH_INC=-I/usr/include/kerberosIV
|
||||
|
||||
bsdi1.0:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nBSDI BSD/386 1.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
|
||||
-DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="gettytab.o" \
|
||||
LIB_SRC="gettytab.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
VPATH=/usr/src/libexec/getty \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
bsdi1.0.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION \
|
||||
-DKRB4 -DDES_ENCRYPTION"
|
||||
AUTH_INC=-I/usr/include/kerberosIV
|
||||
|
||||
unicos9.1:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 9.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
unicos9.0:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 9.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
unicos8.3:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 8.3 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
unicos8.0:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 8.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
unicos7.C:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}"\
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 7.C (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
|
||||
unicos7.0:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet -lkrb" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a /usr/lib/libkrb.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DLINEMODE -DKLUDGELINEMODE \
|
||||
-DSYSV_TERMIO -DHAS_GETTOS \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 7.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
# As of UNICOS 7.0.5.2, there is no longer a /usr/lib/libdes.a
|
||||
# If you still have a /usr/lib/libdes.a, use the "unicos7.0.des.auth"
|
||||
# target instead of "unicos7.0.auth".
|
||||
|
||||
unicos9.1.auth unicos9.0.auth unicos8.3.auth unicos8.0.auth unicos7.0.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB=-lkrb AUTH_LIBPATH=/usr/lib/libkrb.a \
|
||||
AUTH_INC=-I/usr/include/krb \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
|
||||
|
||||
unicos7.C.auth unicos7.0.des.auth:
|
||||
make -f ../Config.generic `basename $@ .des.auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_INC=-I/usr/include/krb \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
|
||||
|
||||
unicos6.1:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-lcurses -L../libtelnet -ltelnet" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
|
||||
-DKLUDGELINEMODE -DUSE_TERMIO -DHAS_GETTOS \
|
||||
-DLINEMODE -DSYSV_TERMIO -DNEWINIT \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_BSD_SETJMP \
|
||||
-DLOGIN_ARGS \
|
||||
-DDEFAULT_IM='\"\r\nCray UNICOS 6.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
AR=bld ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o parsetos.o" \
|
||||
LIB_SRC="getent.c parsetos.c" \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sun3.5:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DHAVE_fd_set -DNO_MKTIME \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
-DDEFAULT_IM='\"\r\nSunOS UNIX 3.5 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DNO_LOGIN_P" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
|
||||
setenv.o strftime.o strcasecmp.o herror.o" \
|
||||
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
|
||||
setenv.c strftime.c strcasecmp.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sun3.5.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
|
||||
|
||||
sun4.0.3c sun4.0:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DFILIO_H -DTERMCAP -DUSE_TERMIO -DNO_CC_T \
|
||||
-DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nSunOS UNIX 4.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DSTREAMS -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strerror.o setsid.o setenv.o \
|
||||
strcasecmp.o strftime.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setsid.c setenv.c \
|
||||
strcasecmp.c strftime.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sun4.1:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DFILIO_H -DTERMCAP -DUSE_TERMIO \
|
||||
-DKLUDGELINEMODE -DSTREAMS \
|
||||
-DDEFAULT_IM='\"\r\nSunOS UNIX 4.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sun4.1.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DNO_LOGIN_F -DLOGIN_R \
|
||||
-DKRB4 -DDES_ENCRYPTION"
|
||||
|
||||
sol2.2 solaris2.2:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermlib ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/usr/ccs/lib/libtermlib.a ../libtelnet/libtelnet.a \
|
||||
/usr/lib/libc.a /usr/ucblib/libucb.a \
|
||||
/usr/lib/libsocket.a /usr/lib/libnsl.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES="-DFILIO_H -DUSE_TERMIO -DKLUDGELINEMODE \
|
||||
-DSTREAMS -DSTREAMSPTY -DDIAGNOSTICS -DSOLARIS \
|
||||
-DENV_HACK -DOLD_ENVIRON -DNO_LOGIN_P -DUTMPX \
|
||||
-DDEFAULT_IM='\"\r\n\r\nUNIX(r) System V Release 4.0 (%h)\r\n\r\n\"' \
|
||||
-DLOGIN_ARGS ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I/usr/ucbinclude ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sol2.2.auth solaris2.2.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb" AUTH_LIBPATH="/usr/lib/libkrb.a" \
|
||||
AUTH_INC=-I/usr/include/kerberos \
|
||||
AUTH_DEF="-DAUTHENTICATION -DKRB4"
|
||||
|
||||
sol2.3 solaris2.3:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermlib ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/usr/ccs/lib/libtermlib.a ../libtelnet/libtelnet.a \
|
||||
/usr/lib/libc.a /usr/ucblib/libucb.a \
|
||||
/usr/lib/libsocket.a /usr/lib/libnsl.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES="-DFILIO_H -DUSE_TERMIO -DKLUDGELINEMODE \
|
||||
-DSTREAMS -DSTREAMSPTY -DDIAGNOSTICS -DSOLARIS \
|
||||
-DENV_HACK -DOLD_ENVIRON -DNO_LOGIN_P -DUTMPX \
|
||||
-DDEFAULT_IM='\"\r\n\r\nUNIX(r) System V Release 4.0 (%h)\r\n\r\n\"' \
|
||||
-DLOGIN_ARGS ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I/usr/ucbinclude ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sol2.3.auth solaris2.3.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb /home/poplar36/gw/lib/libdes.a" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /home/poplar36/gw/lib/libdes.a"\
|
||||
AUTH_INC=-I/usr/include/kerberos \
|
||||
AUTH_DEF="-DAUTHENTICATION -DKRB4 -DENCRYPTION -DDES_ENCRYPTION"
|
||||
|
||||
sol2.4 solaris2.4:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermlib ../libtelnet/libtelnet.a -lsocket -lnsl \
|
||||
${AUTH_LIB}" \
|
||||
LIBPATH="/usr/ccs/lib/libtermlib.a ../libtelnet/libtelnet.a \
|
||||
/usr/lib/libc.a /usr/lib/libsocket.a \
|
||||
/usr/lib/libnsl.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES="-DFILIO_H -DUSE_TERMIO -DKLUDGELINEMODE \
|
||||
-DSTREAMS -DSTREAMSPTY -DDIAGNOSTICS -DSOLARIS \
|
||||
-DENV_HACK -DOLD_ENVIRON -DNO_LOGIN_P -DUTMPX \
|
||||
-DDEFAULT_IM='\"\r\n\r\nUNIX(r) System V Release 4.0 (%h)\r\n\r\n\"' \
|
||||
-Dsignal=sigset -DLOGIN_ARGS ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
sol2.4.auth solaris2.4.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb " \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a"\
|
||||
AUTH_INC=-I/usr/include/kerberos \
|
||||
AUTH_DEF="-DAUTHENTICATION -DKRB4 -DNO_LOGIN_F -DLOGIN_R"
|
||||
|
||||
dynix3.0.12:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nDYNIX(R) V3.0.12 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DNO_STRING_H " \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
|
||||
setsid.o setenv.o strcasecmp.o strftime.o getopt.o \
|
||||
mem.o" \
|
||||
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
|
||||
setsid.c setenv.c strcasecmp.c strftime.c getopt.c \
|
||||
mem.o" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
dynix3.0.17:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a -lseq" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a /usr/lib/libseq.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DNO_STRING_H \
|
||||
-DDEFAULT_IM='\"\r\nDYNIX(R) V3.0.17 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
|
||||
setsid.o strftime.o mem.o" \
|
||||
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
|
||||
setsid.c strftime.c mem.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
ultrix3.1:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DUSE_TERMIO \
|
||||
-DDEFAULT_IM='\"\r\nULTRIX V3.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-YPOSIX" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strdup.o strerror.o setenv.o \
|
||||
strftime.o herror.o" \
|
||||
LIB_SRC="getent.c strdup.c strerror.c setenv.c \
|
||||
strftime.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
ultrix4.0:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
|
||||
-DDEFAULT_IM='\"\r\nULTRIX V4.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DKLUDGELINEMODE -DDIAGNOSTICS \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DENV_HACK -DOLD_ENVIRON" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
|
||||
setenv.o strftime.o" \
|
||||
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
|
||||
setenv.c strftime.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
ultrix4.1:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
|
||||
-DDEFAULT_IM='\"\r\nULTRIX V4.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DKLUDGELINEMODE -DDIAGNOSTICS \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strdup.o" \
|
||||
LIB_SRC="getent.c strdup.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
ultrix4.1.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DKRB4"
|
||||
|
||||
ultrix4.3:
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
|
||||
-DDEFAULT_IM='\"\r\nULTRIX V4.3 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DKLUDGELINEMODE -DDIAGNOSTICS \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strdup.o" \
|
||||
LIB_SRC="getent.c strdup.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
ultrix4.3.auth:
|
||||
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
|
||||
AUTH_LIB="-lkrb -ldes" \
|
||||
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
|
||||
AUTH_DEF="-DAUTHENTICATION -DKRB4"
|
||||
|
||||
irix4.0.1:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermlib ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/usr/lib/libc.a /usr/lib/libtermlib.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -DUSE_TERMIO \
|
||||
-DDEFAULT_IM='\"\r\n\r\nIRIX System V.3 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P \
|
||||
-DDIAGNOSTICS " \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o setenv.o" \
|
||||
LIB_SRC="getent.c setenv.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
hpux8.0:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -DUSE_TERMIO \
|
||||
-DDEFAULT_IM='\"\r\n\r\nHP-UX 8.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DDIAGNOSTICS -DLOGIN_ARGS" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o setenv.o" \
|
||||
LIB_SRC="getent.c setenv.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
next1.0:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="../libtelnet/libtelnet.a -ltermcap -lsys_s" \
|
||||
LIBPATH="/lib/libc.a /lib/libsys_s.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-bsd -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nNeXT 1.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
-DNO_STRING_H -Dgetenv=getenv_" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="strdup.o setenv.o setsid.o strftime.o \
|
||||
strcasecmp.o gettytab.o" \
|
||||
LIB_SRC=s"trdup.c setenv.c setsid.c strftime.c \
|
||||
strcasecmp.c gettytab.c" \
|
||||
CC="${CC}" LCCFLAGS="-O" \
|
||||
VPATH=../../getty \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc
|
||||
|
||||
#
|
||||
# For the convex, make symbolic links to the tc[sg]getattr.c routines,
|
||||
# because we are using posix stuff, but not the posix library...
|
||||
# Pass the stuff to Makefile.generic by passing the object/source names
|
||||
# in through LIB_OBJ and LIB_SRC
|
||||
#
|
||||
convex:
|
||||
@echo $@ is untested... it may or may not work..."
|
||||
ln -s ../../rel_usr/src/lib/libc/posix/tcsetattr.c tcsetattr.c
|
||||
ln -s ../../rel_usr/src/lib/libc/posix/tcgetattr.c tcgetattr.c
|
||||
make -f Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
|
||||
LIBPATH="../libtelnet/libtelnet.a" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-g ${OPTLEV} -Dconvex" \
|
||||
DEFINES=${ODEFS}"-DUSE_TERMIO -DLINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nConvex (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
|
||||
INCLUDES="-I.." \
|
||||
LIB_OBJ="getent.o setsid.o strftime.o \
|
||||
tcsetattr.o tcgetattr.o" \
|
||||
LIB_SRC="getent.c setsid.c strftime.c \
|
||||
tcsetattr.c tcgetattr.c"
|
||||
|
||||
clean cleandir:
|
||||
make -f Makefile.generic $@
|
@@ -1,105 +0,0 @@
|
||||
AUTH_LIB = ../../../lib/krb/libkrb.a ../../../lib/des/libdes.a
|
||||
AUTH_LIBPATH = ../../../lib/krb/libkrb.a ../../../lib/des/libdes.a
|
||||
AUTH_INC = -I../../../include -I$(VPATH)/../../../include
|
||||
AUTH_DEF = -DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION
|
||||
|
||||
all:
|
||||
@echo "You must specify what type of system you are on,"
|
||||
@echo "or setup a Config.local file for your system."
|
||||
@echo "Known system types are:"
|
||||
@echo
|
||||
@echo " sunos4 hpux osf ultrix netbsd"
|
||||
|
||||
sunos4:
|
||||
$(MAKE) VPATH=$(VPATH) -f $(VPATH)/Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-Dmemmove=memcpy -DFILIO_H \
|
||||
-DTERMCAP -DUSE_TERMIO \
|
||||
-DKLUDGELINEMODE -DSTREAMS \
|
||||
-DDEFAULT_IM='\"\r\nSunOS UNIX 4.1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I$(VPATH)/.. ${AUTH_INC} " \
|
||||
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
|
||||
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
|
||||
CC="${CC}" LCCFLAGS="-g"
|
||||
#-DNO_LOGIN_F -DLOGIN_R
|
||||
|
||||
osf:
|
||||
$(MAKE) VPATH=$(VPATH) -f $(VPATH)/Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}" -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nDEC OSF/1 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I$(VPATH)/.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-g"
|
||||
|
||||
|
||||
hpux:
|
||||
$(MAKE) VPATH=$(VPATH) -f $(VPATH)/Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-Dvfork=fork -DUSE_TERMIO \
|
||||
-DDEFAULT_IM='\"\r\n\r\nHP-UX 9.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
|
||||
-DDIAGNOSTICS -DLOGIN_ARGS ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I$(VPATH)/.. ${AUTH_INC} " \
|
||||
LIB_OBJ="getent.o setenv.o" \
|
||||
LIB_SRC="getent.c setenv.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=NONE \
|
||||
LIBEXEC=${DESTDIR}/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
|
||||
ultrix:
|
||||
$(MAKE) -f $(VPATH)/Makefile.generic ${WHAT} \
|
||||
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/ucb \
|
||||
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
|
||||
-DDEFAULT_IM='\"\r\nULTRIX V4.4 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DKLUDGELINEMODE -DDIAGNOSTICS \
|
||||
-DNO_LOGIN_F -DNO_LOGIN_P -DLOGIN_R \
|
||||
-DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I$(VPATH)/.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o strdup.o" \
|
||||
LIB_SRC="getent.c strdup.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/etc \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
netbsd:
|
||||
$(MAKE) -f $(VPATH)/Makefile.generic ${WHAT} \
|
||||
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
|
||||
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
|
||||
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
|
||||
DEST=${DESTDIR}/usr/bin \
|
||||
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
|
||||
-DDEFAULT_IM='\"\r\nNetBSD 1.0 (%h) (%t)\r\n\r\r\n\r\"' \
|
||||
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
|
||||
-DHAS_CGETENT ${AUTH_DEF}" \
|
||||
INCLUDES="-I.. -I$(VPATH)/.. ${AUTH_INC}" \
|
||||
LIB_OBJ="getent.o" \
|
||||
LIB_SRC="getent.c" \
|
||||
AR=ar ARFLAGS=cq RANLIB=ranlib \
|
||||
LIBEXEC=${DESTDIR}/usr/libexec \
|
||||
CC="${CC}" LCCFLAGS="-O"
|
||||
|
||||
clean cleandir:
|
||||
$(MAKE) -f Makefile.generic $@
|
@@ -1,9 +0,0 @@
|
||||
all:
|
||||
cd libtelnet; make CC="${CC}"
|
||||
cd telnet; make CC="${CC}"
|
||||
cd telnetd; make CC="${CC}"
|
||||
|
||||
.DEFAULT:
|
||||
cd libtelnet; make $@ WHAT=${WHAT} CC="${CC}"
|
||||
cd telnet; make $@ WHAT=${WHAT} CC="${CC}"
|
||||
cd telnetd; make $@ WHAT=${WHAT} CC="${CC}"
|
21
appl/telnet/Readme
Normal file
21
appl/telnet/Readme
Normal file
@@ -0,0 +1,21 @@
|
||||
This is basically telnet.NE.95.05.31 with Finnish encryption code
|
||||
added. It has also been updated with the (minor) patches for
|
||||
telnet.NE.95.10.27 and been made autoconfed. It is known to work with:
|
||||
|
||||
telnet telnetd
|
||||
SunOS 4 X X
|
||||
Solaris 2.4 X X
|
||||
DEC OSF/1 2&3 X X
|
||||
Ultrix 4.4 X (not tested)
|
||||
AIX 3.2 X X
|
||||
AIX 4.1 X (doesn't work well)
|
||||
HPUX ? X X
|
||||
NetBSD X X
|
||||
Linux X X
|
||||
IRIX 5 X (not tested)
|
||||
|
||||
|
||||
See README.ORIG for further details. Some of the options aren't
|
||||
automatically configured, so you might have to edit config.h.
|
||||
|
||||
|
@@ -54,9 +54,18 @@
|
||||
/* Define if you have the cgetent function. */
|
||||
#undef HAVE_CGETENT
|
||||
|
||||
/* Define if you have the frevoke function. */
|
||||
#undef HAVE_FREVOKE
|
||||
|
||||
/* Define if you have the gethostbyname function. */
|
||||
#undef HAVE_GETHOSTBYNAME
|
||||
|
||||
/* Define if you have the revoke function. */
|
||||
#undef HAVE_REVOKE
|
||||
|
||||
/* Define if you have the setsid function. */
|
||||
#undef HAVE_SETSID
|
||||
|
||||
/* Define if you have the setupterm function. */
|
||||
#undef HAVE_SETUPTERM
|
||||
|
||||
@@ -75,15 +84,15 @@
|
||||
/* Define if you have the vhangup function. */
|
||||
#undef HAVE_VHANGUP
|
||||
|
||||
/* Define if you have the <sac.h> header file. */
|
||||
#undef HAVE_SAC_H
|
||||
|
||||
/* Define if you have the <sys/resource.h> header file. */
|
||||
#undef HAVE_SYS_RESOURCE_H
|
||||
|
||||
/* Define if you have the <sys/select.h> header file. */
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
|
||||
/* Define if you have the <sys/tty.h> header file. */
|
||||
#undef HAVE_SYS_TTY_H
|
||||
|
||||
/* Define if you have the <termio.h> header file. */
|
||||
#undef HAVE_TERMIO_H
|
||||
|
||||
|
144
appl/telnet/configure
vendored
144
appl/telnet/configure
vendored
@@ -16,6 +16,8 @@ ac_help="$ac_help
|
||||
--enable-authentication configure with authentication"
|
||||
ac_help="$ac_help
|
||||
--enable-encryption configure with encryption"
|
||||
ac_help="$ac_help
|
||||
--with-athena=path location of athena tree"
|
||||
ac_help="$ac_help
|
||||
--enable-default-im[=ARG] default initial banner"
|
||||
|
||||
@@ -687,6 +689,74 @@ echo "$ac_t""$telnet_cv_opt_encryption" 1>&6
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# locate kerberos libraries
|
||||
#
|
||||
|
||||
echo $ac_n "checking for kerberos tree""... $ac_c" 1>&6
|
||||
telnet_athena_default=yes
|
||||
# Check whether --with-athena or --without-athena was given.
|
||||
withval="$with_athena"
|
||||
if test -n "$withval"; then
|
||||
|
||||
case "$withval" in
|
||||
yes)
|
||||
telnet_athena_default="/usr/athena"
|
||||
;;
|
||||
no)
|
||||
telnet_athena_default="no"
|
||||
;;
|
||||
*)
|
||||
telnet_athena_default="$withval"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test "$telnet_athena_default" = yes; then
|
||||
|
||||
libtop='../../..'
|
||||
KRBLIBPATH=""
|
||||
LIBKRB='-L$(libtop)/lib/krb -lkrb'
|
||||
LIBDES='-L$(libtop)/lib/des -ldes'
|
||||
LIBKAFS='-L$(libtop)/lib/kafs -lkafs'
|
||||
LIBCOM_ERR='-L$(libtop)/util/et -lcom_err'
|
||||
KRBINCPATH='-I$(libtop)/include -I$(srcdir)/$(libtop)/include'
|
||||
telnet_msg="default"
|
||||
|
||||
elif test "$telnet_athena_default" = no; then
|
||||
|
||||
if test "$telnet_cv_opt_encryption" = yes -o "$telnet_cv_opt_authentication" = yes; then
|
||||
|
||||
{ echo "configure: error: Kerberos libraries are needed for authentication and encryption" 1>&2; exit 1; }
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
libtop="$telnet_athena_default"
|
||||
KRBLIBPATH='-L$(libtop)/lib'
|
||||
LIBKRB="-lkrb"
|
||||
LIBDES="-ldes"
|
||||
LIBKAFS="-lkafs"
|
||||
LIBCOM_ERR="-lcom_err"
|
||||
KRBINCPATH='-I$(libtop)/include'
|
||||
telnet_msg="$telnet_athena_default"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "$ac_t""$telnet_msg" 1>&6
|
||||
|
||||
#
|
||||
# default im
|
||||
#
|
||||
@@ -775,7 +845,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 779 "configure"
|
||||
#line 849 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@@ -818,14 +888,14 @@ fi
|
||||
done
|
||||
|
||||
|
||||
for ac_func in cgetent uname vfork vhangup
|
||||
for ac_func in cgetent uname vfork vhangup frevoke revoke setsid
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 829 "configure"
|
||||
#line 899 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@@ -877,7 +947,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 881 "configure"
|
||||
#line 951 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@@ -932,7 +1002,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-l$lib $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 936 "configure"
|
||||
#line 1006 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@@ -975,7 +1045,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-l$lib $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 979 "configure"
|
||||
#line 1049 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@@ -1017,7 +1087,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1021 "configure"
|
||||
#line 1091 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@@ -1069,7 +1139,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lsocket $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1073 "configure"
|
||||
#line 1143 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@@ -1109,7 +1179,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1113 "configure"
|
||||
#line 1183 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@@ -1161,7 +1231,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lnsl $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1165 "configure"
|
||||
#line 1235 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@@ -1202,7 +1272,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lutil $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1206 "configure"
|
||||
#line 1276 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@@ -1252,7 +1322,7 @@ else
|
||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||
# not just through cpp.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1256 "configure"
|
||||
#line 1326 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
@@ -1266,7 +1336,7 @@ else
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1270 "configure"
|
||||
#line 1340 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
@@ -1291,7 +1361,7 @@ else
|
||||
fi
|
||||
echo "$ac_t""$CPP" 1>&6
|
||||
|
||||
for ac_hdr in termios.h termio.h sys/select.h sys/resource.h utmpx.h sac.h
|
||||
for ac_hdr in termios.h termio.h sys/select.h sys/resource.h sys/tty.h utmpx.h
|
||||
do
|
||||
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
@@ -1299,7 +1369,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1311 "configure"
|
||||
#line 1373 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
@@ -1328,13 +1398,48 @@ fi
|
||||
done
|
||||
|
||||
|
||||
if test "$ac_cv_header_sac_h" = yes ; then
|
||||
#
|
||||
# Simple test for streamspty, based on the existance of <sys/sac.h>
|
||||
#
|
||||
|
||||
|
||||
echo $ac_n "checking for streamspty""... $ac_c" 1>&6
|
||||
|
||||
if eval "test \"`echo '$''{'krb_cv_sys_streamspty'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1413 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sac.h>
|
||||
EOF
|
||||
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
|
||||
krb_cv_sys_streamspty=yes
|
||||
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
rm -rf conftest*
|
||||
|
||||
krb_cv_sys_streamspty=no
|
||||
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
|
||||
|
||||
if test "$krb_cv_sys_streamspty" = yes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define STREAMSPTY 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
echo "$ac_t""$krb_cv_sys_streamspty" 1>&6
|
||||
|
||||
|
||||
###
|
||||
|
||||
@@ -1449,6 +1554,13 @@ s%@AUTHENTICATION@%$AUTHENTICATION%g
|
||||
s%@KRB4@%$KRB4%g
|
||||
s%@ENCRYPTION@%$ENCRYPTION%g
|
||||
s%@DES_ENCRYPTION@%$DES_ENCRYPTION%g
|
||||
s%@libtop@%$libtop%g
|
||||
s%@KRBINCPATH@%$KRBINCPATH%g
|
||||
s%@KRBLIBPATH@%$KRBLIBPATH%g
|
||||
s%@LIBKRB@%$LIBKRB%g
|
||||
s%@LIBDES@%$LIBDES%g
|
||||
s%@LIBKAFS@%$LIBKAFS%g
|
||||
s%@LIBCOM_ERR@%$LIBCOM_ERR%g
|
||||
s%@USE_IM@%$USE_IM%g
|
||||
s%@DIAGNOSTICS@%$DIAGNOSTICS%g
|
||||
s%@KLUDGELINEMODE@%$KLUDGELINEMODE%g
|
||||
|
@@ -90,6 +90,71 @@ AC_MSG_RESULT($telnet_cv_opt_encryption)
|
||||
AC_SUBST(ENCRYPTION)
|
||||
AC_SUBST(DES_ENCRYPTION)
|
||||
|
||||
|
||||
#
|
||||
# locate kerberos libraries
|
||||
#
|
||||
|
||||
AC_MSG_CHECKING([for kerberos tree])
|
||||
telnet_athena_default=yes
|
||||
AC_ARG_WITH(athena,
|
||||
[ --with-athena=path location of athena tree],
|
||||
[
|
||||
case "$withval" in
|
||||
yes)
|
||||
telnet_athena_default="/usr/athena"
|
||||
;;
|
||||
no)
|
||||
telnet_athena_default="no"
|
||||
;;
|
||||
*)
|
||||
telnet_athena_default="$withval"
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
if test "$telnet_athena_default" = yes; then
|
||||
|
||||
libtop='../../..'
|
||||
KRBLIBPATH=""
|
||||
LIBKRB='-L$(libtop)/lib/krb -lkrb'
|
||||
LIBDES='-L$(libtop)/lib/des -ldes'
|
||||
LIBKAFS='-L$(libtop)/lib/kafs -lkafs'
|
||||
LIBCOM_ERR='-L$(libtop)/util/et -lcom_err'
|
||||
KRBINCPATH='-I$(libtop)/include -I$(srcdir)/$(libtop)/include'
|
||||
telnet_msg="default"
|
||||
|
||||
elif test "$telnet_athena_default" = no; then
|
||||
|
||||
if test "$telnet_cv_opt_encryption" = yes -o "$telnet_cv_opt_authentication" = yes; then
|
||||
|
||||
AC_MSG_ERROR([Kerberos libraries are needed for authentication and encryption])
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
libtop="$telnet_athena_default"
|
||||
KRBLIBPATH='-L$(libtop)/lib'
|
||||
LIBKRB="-lkrb"
|
||||
LIBDES="-ldes"
|
||||
LIBKAFS="-lkafs"
|
||||
LIBCOM_ERR="-lcom_err"
|
||||
KRBINCPATH='-I$(libtop)/include'
|
||||
telnet_msg="$telnet_athena_default"
|
||||
|
||||
fi
|
||||
|
||||
AC_SUBST(libtop)
|
||||
AC_SUBST(KRBINCPATH)
|
||||
AC_SUBST(KRBLIBPATH)
|
||||
AC_SUBST(LIBKRB)
|
||||
AC_SUBST(LIBDES)
|
||||
AC_SUBST(LIBKAFS)
|
||||
AC_SUBST(LIBCOM_ERR)
|
||||
|
||||
AC_MSG_RESULT($telnet_msg)
|
||||
|
||||
#
|
||||
# default im
|
||||
#
|
||||
@@ -146,7 +211,7 @@ AC_SUBST(OLD_ENVIRON)
|
||||
|
||||
AC_REPLACE_FUNCS(getent herror memmove setenv strdup strerror)
|
||||
|
||||
AC_CHECK_FUNCS(cgetent uname vfork vhangup)
|
||||
AC_CHECK_FUNCS(cgetent uname vfork vhangup frevoke revoke setsid)
|
||||
|
||||
AC_CHECK_FUNCS(tgetent setupterm)
|
||||
|
||||
@@ -181,12 +246,28 @@ AC_CHECK_LIB(util, logout)
|
||||
|
||||
AC_SUBST(HAVE_LIBTERMCAP)
|
||||
|
||||
AC_CHECK_HEADERS(termios.h termio.h sys/select.h sys/resource.h utmpx.h sac.h)
|
||||
AC_CHECK_HEADERS(termios.h termio.h sys/select.h sys/resource.h sys/tty.h utmpx.h)
|
||||
|
||||
if test "$ac_cv_header_sac_h" = yes ; then
|
||||
#
|
||||
# Simple test for streamspty, based on the existance of <sys/sac.h>
|
||||
#
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for streamspty)
|
||||
|
||||
AC_CACHE_VAL(krb_cv_sys_streamspty,
|
||||
AC_TRY_CPP([#include <sac.h>],[
|
||||
krb_cv_sys_streamspty=yes
|
||||
],[
|
||||
krb_cv_sys_streamspty=no
|
||||
]))
|
||||
|
||||
if test "$krb_cv_sys_streamspty" = yes; then
|
||||
AC_DEFINE(STREAMSPTY)
|
||||
fi
|
||||
AC_SUBST(STREAMSPTY)
|
||||
AC_MSG_RESULT($krb_cv_sys_streamspty)
|
||||
|
||||
|
||||
###
|
||||
|
||||
|
@@ -1,33 +0,0 @@
|
||||
# @(#)Makefile 8.2 (Berkeley) 12/15/93
|
||||
|
||||
LIB= telnet
|
||||
SRCS= auth.c encrypt.c genget.c getent.c misc.c
|
||||
SRCS+= kerberos.c enc_des.c
|
||||
#SRCS+= kerberos5.c
|
||||
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DHAS_CGETENT
|
||||
CFLAGS+= -DKRB4 -DDES_ENCRYPTION -I/usr/include/kerberosIV
|
||||
|
||||
# These are the sources that have encryption stuff in them.
|
||||
CRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c
|
||||
CRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c
|
||||
CRYPT_SRC+= misc.c spx.c Makefile
|
||||
NOCRYPT_DIR=${.CURDIR}/Nocrypt
|
||||
|
||||
.include <bsd.lib.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 */
|
@@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1991 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted provided
|
||||
# that: (1) source distributions retain this entire copyright notice and
|
||||
# comment, and (2) distributions including binaries display the following
|
||||
# acknowledgement: ``This product includes software developed by the
|
||||
# University of California, Berkeley and its contributors'' in the
|
||||
# documentation or other materials provided with the distribution and in
|
||||
# all advertising materials mentioning features or use of this software.
|
||||
# Neither the name of the University nor the names of its contributors may
|
||||
# be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile 5.5 (Berkeley) 3/1/91
|
||||
#
|
||||
|
||||
#
|
||||
# Everything happens in ../Makefile.config and Makefile.generic
|
||||
#
|
||||
SHELL=/bin/sh
|
||||
|
||||
all:
|
||||
@-if test -f ../Config.local; \
|
||||
then \
|
||||
echo make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \
|
||||
make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \
|
||||
else \
|
||||
echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \
|
||||
make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \
|
||||
fi
|
||||
|
||||
.DEFAULT:
|
||||
@-if test -f ../Config.local; \
|
||||
then \
|
||||
echo make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \
|
||||
make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \
|
||||
else \
|
||||
echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \
|
||||
make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \
|
||||
fi
|
@@ -1,67 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1991 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted provided
|
||||
# that: (1) source distributions retain this entire copyright notice and
|
||||
# comment, and (2) distributions including binaries display the following
|
||||
# acknowledgement: ``This product includes software developed by the
|
||||
# University of California, Berkeley and its contributors'' in the
|
||||
# documentation or other materials provided with the distribution and in
|
||||
# all advertising materials mentioning features or use of this software.
|
||||
# Neither the name of the University nor the names of its contributors may
|
||||
# be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91
|
||||
#
|
||||
|
||||
LIB= libtelnet.a
|
||||
SRCS= auth.c encrypt.c genget.c \
|
||||
misc.c kerberos.c kerberos5.c forward.c spx.c enc_des.c \
|
||||
rsaencpwd.c krb4encpwd.c read_password.c \
|
||||
setenv.c getent.c strdup.c strcasecmp.c \
|
||||
strchr.c strrchr.c strftime.c strerror.c \
|
||||
${LIB_SRC}
|
||||
|
||||
OBJS= auth.o encrypt.o genget.o \
|
||||
misc.o kerberos.o kerberos5.o forward.o spx.o enc_des.o \
|
||||
rsaencpwd.o krb4encpwd.o read_password.o \
|
||||
${LIB_OBJ}
|
||||
|
||||
TELNET_H= ../arpa/telnet.h
|
||||
|
||||
CFLAGS= ${LCCFLAGS} ${DEFINES} ${INCLUDES}
|
||||
|
||||
${LIB}: ${OBJS}
|
||||
rm -f ${LIB}
|
||||
${AR} ${ARFLAGS} ${LIB} `lorder ${OBJS} | tsort`
|
||||
@if [ ${RANLIB} != NONE ]; \
|
||||
then echo ${RANLIB} ${LIB}; ${RANLIB} ${LIB}; fi
|
||||
|
||||
clean cleandir:
|
||||
rm -f *.o ${LIB} core a.out
|
||||
|
||||
auth.o: ${TELNET_H}
|
||||
auth.o: encrypt.h
|
||||
auth.o: auth.h
|
||||
auth.o: misc-proto.h
|
||||
encrypt.o: ${TELNET_H}
|
||||
encrypt.o: encrypt.h
|
||||
encrypt.o: misc.h
|
||||
kerberos.o: ${TELNET_H}
|
||||
kerberos.o: encrypt.h
|
||||
kerberos.o: auth.h
|
||||
kerberos.o: misc.h
|
||||
kerberos5.o: ${TELNET_H}
|
||||
kerberos5.o: encrypt.h
|
||||
kerberos5.o: auth.h
|
||||
kerberos5.o: misc.h
|
||||
misc.o: misc.h
|
||||
enc_des.o: ${TELNET_H}
|
||||
enc_des.o: encrypt.h
|
||||
enc_des.o: key-proto.h
|
||||
enc_des.o: misc-proto.h
|
@@ -31,9 +31,11 @@ OBJECTS=auth.o encrypt.o genget.o \
|
||||
|
||||
all: libtelnet.a
|
||||
|
||||
libtop = @libtop@
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
||||
-I../../../include -I$(srcdir)/../../../include -I.. -I$(srcdir)/.. $<
|
||||
@KRBINCPATH@ -I.. -I$(srcdir)/.. $<
|
||||
|
||||
|
||||
libtelnet.a: $(OBJECTS)
|
||||
|
@@ -1,72 +0,0 @@
|
||||
*** stty.c.old Tue May 23 13:54:29 1989
|
||||
--- stty.c Wed Aug 23 13:42:32 1989
|
||||
***************
|
||||
*** 20,25 ****
|
||||
--- 20,28 ----
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/ioctl.h>
|
||||
+ #include <sys/types.h>
|
||||
+ #define NO_T_CHARS_DEFINES
|
||||
+ #include <sys/tty.h>
|
||||
|
||||
struct
|
||||
{
|
||||
***************
|
||||
*** 145,150 ****
|
||||
--- 148,156 ----
|
||||
struct winsize win;
|
||||
int lmode;
|
||||
int oldisc, ldisc;
|
||||
+ #ifdef TIOCGSTATE
|
||||
+ int extproc;
|
||||
+ #endif
|
||||
|
||||
struct special {
|
||||
char *name;
|
||||
***************
|
||||
*** 188,193 ****
|
||||
--- 194,203 ----
|
||||
ioctl(1, TIOCLGET, &lmode);
|
||||
ioctl(1, TIOCGLTC, <c);
|
||||
ioctl(1, TIOCGWINSZ, &win);
|
||||
+ #ifdef TIOCGSTATE
|
||||
+ ioctl(1, TIOCGSTATE, &extproc);
|
||||
+ extproc &= TS_EXTPROC;
|
||||
+ #endif
|
||||
if(argc == 1) {
|
||||
prmodes(0);
|
||||
exit(0);
|
||||
***************
|
||||
*** 292,297 ****
|
||||
--- 302,316 ----
|
||||
printf("%d %d\n", win.ws_row, win.ws_col);
|
||||
exit(0);
|
||||
}
|
||||
+ #if defined(TIOCEXT)
|
||||
+ if (eq("extproc") || eq("-extproc")) {
|
||||
+ if (**argv == '-')
|
||||
+ extproc = 0;
|
||||
+ else
|
||||
+ extproc = 1;
|
||||
+ ioctl(1, TIOCEXT, &extproc);
|
||||
+ }
|
||||
+ #endif
|
||||
for(i=0; speeds[i].string; i++)
|
||||
if(eq(speeds[i].string)) {
|
||||
mode.sg_ispeed = mode.sg_ospeed = speeds[i].speed;
|
||||
***************
|
||||
*** 438,443 ****
|
||||
--- 457,468 ----
|
||||
lpit(LPENDIN, "-pendin ");
|
||||
lpit(LDECCTQ, "-decctlq ");
|
||||
lpit(LNOFLSH, "-noflsh ");
|
||||
+ #ifdef TIOCGSTATE
|
||||
+ if (all==2||extproc) {
|
||||
+ fprintf(stderr,"-extproc"+(extproc!=0));
|
||||
+ any++;
|
||||
+ }
|
||||
+ #endif
|
||||
if (any || nothing)
|
||||
fprintf(stderr,"\n");
|
||||
} else if (!all)
|
@@ -1,73 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
#
|
||||
|
||||
PROG= telnet
|
||||
|
||||
CFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DAUTHENTICATION -DENCRYPTION
|
||||
CFLAGS+=-DENV_HACK
|
||||
CFLAGS+=-I${.CURDIR}/../../lib
|
||||
|
||||
CFLAGS+= -DKRB4
|
||||
|
||||
LDADD= -ltermcap -ltelnet
|
||||
LDADD+= -lkrb -ldes
|
||||
DPADD= ${LIBTERMCAP}
|
||||
|
||||
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \
|
||||
terminal.c tn3270.c utilities.c
|
||||
|
||||
# These are the sources that have encryption stuff in them.
|
||||
CRYPT_SRC= authenc.c commands.c externs.h main.c network.c
|
||||
CRYPT_SRC+= ring.c ring.h telnet.c terminal.c utilities.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 */
|
@@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1991 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted provided
|
||||
# that: (1) source distributions retain this entire copyright notice and
|
||||
# comment, and (2) distributions including binaries display the following
|
||||
# acknowledgement: ``This product includes software developed by the
|
||||
# University of California, Berkeley and its contributors'' in the
|
||||
# documentation or other materials provided with the distribution and in
|
||||
# all advertising materials mentioning features or use of this software.
|
||||
# Neither the name of the University nor the names of its contributors may
|
||||
# be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile 5.5 (Berkeley) 3/1/91
|
||||
#
|
||||
|
||||
#
|
||||
# Everything happens in ../Makefile.config and Makefile.generic
|
||||
#
|
||||
SHELL=/bin/sh
|
||||
|
||||
all:
|
||||
@-if test -f ../Config.local; \
|
||||
then \
|
||||
echo make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \
|
||||
make -f ../Config.local WHAT=${WHAT} CC="${CC}"; \
|
||||
else \
|
||||
echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \
|
||||
make -f ../Config.generic WHAT=${WHAT} CC="${CC}"; \
|
||||
fi
|
||||
|
||||
.DEFAULT:
|
||||
@-if test -f ../Config.local; \
|
||||
then \
|
||||
echo make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \
|
||||
make -f ../Config.local WHAT=${WHAT} CC="${CC}" $@; \
|
||||
else \
|
||||
echo make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \
|
||||
make -f ../Config.generic WHAT=${WHAT} CC="${CC}" $@; \
|
||||
fi
|
@@ -1,89 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 1991 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted provided
|
||||
# that: (1) source distributions retain this entire copyright notice and
|
||||
# comment, and (2) distributions including binaries display the following
|
||||
# acknowledgement: ``This product includes software developed by the
|
||||
# University of California, Berkeley and its contributors'' in the
|
||||
# documentation or other materials provided with the distribution and in
|
||||
# all advertising materials mentioning features or use of this software.
|
||||
# Neither the name of the University nor the names of its contributors may
|
||||
# be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91
|
||||
#
|
||||
|
||||
INCLUDES= -I..
|
||||
ARPA_TELNET= ../arpa/telnet.h
|
||||
|
||||
SRCS= commands.c main.c network.c ring.c \
|
||||
sys_bsd.c telnet.c terminal.c \
|
||||
utilities.c ${GETOPT_SRC}
|
||||
|
||||
CFLAGS= ${LCCFLAGS} ${INCLUDES} ${DEFINES}
|
||||
|
||||
ALLHC= ${SRCS} \
|
||||
defines.h externs.h fdset.h general.h \
|
||||
ring.h types.h
|
||||
|
||||
OBJS= authenc.o commands.o main.o network.o ring.o sys_bsd.o \
|
||||
telnet.o terminal.o utilities.o ${GETOPT_OBJ}
|
||||
MAN= telnet.0
|
||||
|
||||
#
|
||||
# These next three lines are not needed in 4.4BSD
|
||||
#
|
||||
.SUFFIXES: .0 .1
|
||||
.1.0:
|
||||
nroff -man -h $< > $@
|
||||
|
||||
all: telnet
|
||||
|
||||
telnet: ${OBJS} ${LIBPATH}
|
||||
${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}
|
||||
|
||||
clean: FRC
|
||||
rm -f ${OBJS} core errs l.errs telnet
|
||||
|
||||
cleandir: clean
|
||||
rm -f ${MAN} tags .depend
|
||||
|
||||
clist: FRC ${SRCS}
|
||||
@for i in ${SRCS} ; \
|
||||
do (echo ${DIRPATH}$$i); done
|
||||
|
||||
hclist: FRC ${ALLHC}
|
||||
@for i in ${ALLHC} ; \
|
||||
do (echo ${DIRPATH}$$i); done
|
||||
|
||||
depend: FRC ${SRCS}
|
||||
mkdep ${CFLAGS} `make clist`
|
||||
|
||||
install: ${MAN} FRC
|
||||
install -s -o bin -g bin -m 755 telnet ${DEST}
|
||||
install -c -o bin -g bin -m 444 telnet.0 ${DESTDIR}/usr/man/cat1
|
||||
|
||||
lint: FRC ${SRCS}
|
||||
lint ${CFLAGS} `make clist`
|
||||
|
||||
tags: FRC ${SRCS}
|
||||
ctags `make hclist`
|
||||
|
||||
FRC:
|
||||
|
||||
authenc.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
|
||||
commands.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
|
||||
main.o: defines.h externs.h ring.h
|
||||
network.o: defines.h externs.h fdset.h ring.h ${ARPA_TELNET}
|
||||
ring.o: general.h ring.h
|
||||
sys_bsd.o: defines.h externs.h fdset.h ring.h types.h ${ARPA_TELNET}
|
||||
telnet.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
|
||||
terminal.o: externs.h ring.h types.h ${ARPA_TELNET}
|
||||
tn3270.o: defines.h externs.h fdset.h general.h ring.h ${ARPA_TELNET}
|
||||
utilities.o: defines.h externs.h fdset.h general.h ring.h ${ARPA_TELNET}
|
@@ -27,16 +27,21 @@ SOURCES=commands.c main.c network.c ring.c \
|
||||
OBJECTS=authenc.o commands.o main.o network.o ring.o sys_bsd.o \
|
||||
telnet.o terminal.o utilities.o ${GETOPT_OBJ}
|
||||
|
||||
libtop=../../../lib
|
||||
libtop=@libtop@
|
||||
|
||||
KLIB=-L$(libtop)/krb -lkrb -L$(libtop)/des -ldes -L../../../util/et -lcom_err
|
||||
KRBLIBPATH = @KRBLIBPATH@
|
||||
LIBKRB = @LIBKRB@
|
||||
LIBDES = @LIBDES@
|
||||
LIBCOM_ERR = @LIBCOM_ERR@
|
||||
|
||||
KLIB=$(KRBLIBPATH) $(LIBKRB) $(LIBDES) $(LIBCOM_ERR)
|
||||
|
||||
|
||||
all: telnet
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
||||
-I../../../include -I$(srcdir)/../../../include -I.. -I$(srcdir)/.. $<
|
||||
@KRBINCPATH@ -I.. -I$(srcdir)/.. $<
|
||||
|
||||
telnet: $(OBJECTS)
|
||||
$(CC) -o telnet $(OBJECTS) $(LIBS) ../libtelnet/libtelnet.a $(KLIB)
|
||||
|
@@ -1,86 +0,0 @@
|
||||
*** main.c 1995/09/02 12:18:50 1.5
|
||||
--- main.c 1995/10/03 15:40:58
|
||||
***************
|
||||
*** 137,147 ****
|
||||
rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
|
||||
|
||||
/*
|
||||
! * if AUTHENTICATION and ENCRYPTION is set autologin will be
|
||||
! * se to true after the getopt switch; unless the -K option is
|
||||
! * passed
|
||||
*/
|
||||
! autologin = -1;
|
||||
|
||||
while ((ch = getopt(argc, argv, "8EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
|
||||
switch(ch) {
|
||||
--- 137,152 ----
|
||||
rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
|
||||
|
||||
/*
|
||||
! * Default is automatic authentication and encryption.
|
||||
! * Use -K to dissable it and -Ka to only use authentication.
|
||||
*/
|
||||
! #ifdef AUTHENTICATION
|
||||
! autologin = 1;
|
||||
! #ifdef ENCRYPTION
|
||||
! encrypt_auto(1);
|
||||
! decrypt_auto(1);
|
||||
! #endif
|
||||
! #endif
|
||||
|
||||
while ((ch = getopt(argc, argv, "8EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
|
||||
switch(ch) {
|
||||
***************
|
||||
*** 154,160 ****
|
||||
--- 159,169 ----
|
||||
case 'K':
|
||||
#ifdef AUTHENTICATION
|
||||
autologin = 0;
|
||||
+ #ifdef ENCRYPTION
|
||||
+ encrypt_auto(0);
|
||||
+ decrypt_auto(0);
|
||||
#endif
|
||||
+ #endif
|
||||
break;
|
||||
case 'L':
|
||||
eight |= 2; /* binary output only */
|
||||
***************
|
||||
*** 239,248 ****
|
||||
#endif
|
||||
break;
|
||||
case 'l':
|
||||
! if(autologin == 0){
|
||||
! fprintf(stderr, "%s: Warning: -K ignored\n", prompt);
|
||||
! autologin = -1;
|
||||
! }
|
||||
user = optarg;
|
||||
break;
|
||||
case 'n':
|
||||
--- 248,254 ----
|
||||
#endif
|
||||
break;
|
||||
case 'l':
|
||||
! autologin = 1;
|
||||
user = optarg;
|
||||
break;
|
||||
case 'n':
|
||||
***************
|
||||
*** 290,306 ****
|
||||
/* NOTREACHED */
|
||||
}
|
||||
}
|
||||
-
|
||||
- if (autologin == -1) { /* esc@magic.fi; force */
|
||||
- #if defined(AUTHENTICATION)
|
||||
- autologin = 1;
|
||||
- #endif
|
||||
- #if defined(ENCRYPTION)
|
||||
- encrypt_auto(1);
|
||||
- decrypt_auto(1);
|
||||
- #endif
|
||||
- }
|
||||
-
|
||||
if (autologin == -1)
|
||||
autologin = (rlogin == _POSIX_VDISABLE) ? 0 : 1;
|
||||
|
||||
--- 296,301 ----
|
File diff suppressed because it is too large
Load Diff
@@ -1,722 +0,0 @@
|
||||
TELNET(1) BSD Reference Manual TELNET(1)
|
||||
|
||||
NNAAMMEE
|
||||
tteellnneett - user interface to the TELNET protocol
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
tteellnneett [--88EEFFKKLLaaccddffrrxx] [--SS _t_o_s] [--XX _a_u_t_h_t_y_p_e] [--ee _e_s_c_a_p_e_c_h_a_r] [--kk _r_e_a_l_m]
|
||||
[--ll _u_s_e_r] [--nn _t_r_a_c_e_f_i_l_e] [_h_o_s_t [port]]
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
The tteellnneett command is used to communicate with another host using the
|
||||
TELNET protocol. If tteellnneett is invoked without the _h_o_s_t argument, it en-
|
||||
ters command mode, indicated by its prompt (tteellnneett>>). In this mode, it
|
||||
accepts and executes the commands listed below. If it is invoked with
|
||||
arguments, it performs an ooppeenn command with those arguments.
|
||||
|
||||
Options:
|
||||
|
||||
--88 Specifies an 8-bit data path. This causes an attempt to negoti-
|
||||
ate the TELNET BINARY option on both input and output.
|
||||
|
||||
--EE Stops any character from being recognized as an escape character.
|
||||
|
||||
--FF If Kerberos V5 authentication is being used, the --FF option allows
|
||||
the local credentials to be forwarded to the remote system, in-
|
||||
cluding any credentials that have already been forwarded into the
|
||||
local environment.
|
||||
|
||||
--KK Specifies no automatic login to the remote system.
|
||||
|
||||
--LL Specifies an 8-bit data path on output. This causes the BINARY
|
||||
option to be negotiated on output.
|
||||
|
||||
--SS _t_o_s Sets the IP type-of-service (TOS) option for the telnet connec-
|
||||
tion to the value _t_o_s_, which can be a numeric TOS value or, on
|
||||
systems that support it, a symbolic TOS name found in the
|
||||
/etc/iptos file.
|
||||
|
||||
--XX _a_t_y_p_e
|
||||
Disables the _a_t_y_p_e type of authentication.
|
||||
|
||||
--aa Attempt automatic login. Currently, this sends the user name via
|
||||
the USER variable of the ENVIRON option if supported by the re-
|
||||
mote system. The name used is that of the current user as re-
|
||||
turned by getlogin(2) if it agrees with the current user ID, oth-
|
||||
erwise it is the name associated with the user ID.
|
||||
|
||||
--cc Disables the reading of the user's _._t_e_l_n_e_t_r_c file. (See the
|
||||
ttooggggllee sskkiipprrcc command on this man page.)
|
||||
|
||||
--dd Sets the initial value of the ddeebbuugg toggle to TRUE
|
||||
|
||||
--ee _e_s_c_a_p_e _c_h_a_r
|
||||
Sets the initial tteellnneett tteellnneett escape character to _e_s_c_a_p_e _c_h_a_r_.
|
||||
If _e_s_c_a_p_e _c_h_a_r is omitted, then there will be no escape charac-
|
||||
ter.
|
||||
|
||||
--ff If Kerberos V5 authentication is being used, the --ff option allows
|
||||
the local credentials to be forwarded to the remote system.
|
||||
|
||||
--kk _r_e_a_l_m
|
||||
If Kerberos authentication is being used, the --kk option requests
|
||||
that telnet obtain tickets for the remote host in realm realm in-
|
||||
stead of the remote host's realm, as determined by
|
||||
|
||||
krb_realmofhost(3).
|
||||
|
||||
--ll _u_s_e_r
|
||||
When connecting to the remote system, if the remote system under-
|
||||
stands the ENVIRON option, then _u_s_e_r will be sent to the remote
|
||||
system as the value for the variable USER. This option implies
|
||||
the --aa option. This option may also be used with the ooppeenn com-
|
||||
mand.
|
||||
|
||||
--nn _t_r_a_c_e_f_i_l_e
|
||||
Opens _t_r_a_c_e_f_i_l_e for recording trace information. See the sseett
|
||||
ttrraacceeffiillee command below.
|
||||
|
||||
--rr Specifies a user interface similar to rlogin(1). In this mode,
|
||||
the escape character is set to the tilde (~) character, unless
|
||||
modified by the -e option.
|
||||
|
||||
--xx Turns on encryption of the data stream if possible. This option
|
||||
is not available outside of the United States and Canada.
|
||||
|
||||
_h_o_s_t Indicates the official name, an alias, or the Internet address of
|
||||
a remote host.
|
||||
|
||||
_p_o_r_t Indicates a port number (address of an application). If a number
|
||||
is not specified, the default tteellnneett port is used.
|
||||
|
||||
When in rlogin mode, a line of the form ~. disconnects from the remote
|
||||
host; ~ is the telnet escape character. Similarly, the line ~^Z suspends
|
||||
the telnet session. The line ~^] escapes to the normal telnet escape
|
||||
prompt.
|
||||
|
||||
Once a connection has been opened, tteellnneett will attempt to enable the
|
||||
TELNET LINEMODE option. If this fails, then tteellnneett will revert to one of
|
||||
two input modes: either ``character at a time'' or ``old line by line''
|
||||
depending on what the remote system supports.
|
||||
|
||||
When LINEMODE is enabled, character processing is done on the local sys-
|
||||
tem, under the control of the remote system. When input editing or char-
|
||||
acter echoing is to be disabled, the remote system will relay that infor-
|
||||
mation. The remote system will also relay changes to any special charac-
|
||||
ters that happen on the remote system, so that they can take effect on
|
||||
the local system.
|
||||
|
||||
In ``character at a time'' mode, most text typed is immediately sent to
|
||||
the remote host for processing.
|
||||
|
||||
In ``old line by line'' mode, all text is echoed locally, and (normally)
|
||||
only completed lines are sent to the remote host. The ``local echo char-
|
||||
acter'' (initially ``^E'') may be used to turn off and on the local echo
|
||||
(this would mostly be used to enter passwords without the password being
|
||||
echoed).
|
||||
|
||||
If the LINEMODE option is enabled, or if the llooccaallcchhaarrss toggle is TRUE
|
||||
(the default for ``old line by line``; see below), the user's qquuiitt, iinnttrr,
|
||||
and fflluusshh characters are trapped locally, and sent as TELNET protocol se-
|
||||
quences to the remote side. If LINEMODE has ever been enabled, then the
|
||||
user's ssuusspp and eeooff are also sent as TELNET protocol sequences, and qquuiitt
|
||||
is sent as a TELNET ABORT instead of BREAK There are options (see ttooggggllee
|
||||
aauuttoofflluusshh and ttooggggllee aauuttoossyynncchh below) which cause this action to flush
|
||||
subsequent output to the terminal (until the remote host acknowledges the
|
||||
TELNET sequence) and flush previous terminal input (in the case of qquuiitt
|
||||
and iinnttrr).
|
||||
|
||||
While connected to a remote host, tteellnneett command mode may be entered by
|
||||
typing the tteellnneett ``escape character'' (initially ``^]''). When in com-
|
||||
mand mode, the normal terminal editing conventions are available.
|
||||
|
||||
The following tteellnneett commands are available. Only enough of each command
|
||||
to uniquely identify it need be typed (this is also true for arguments to
|
||||
the mmooddee, sseett, ttooggggllee, uunnsseett, ssllcc, eennvviirroonn, and ddiissppllaayy commands).
|
||||
|
||||
aauutthh _a_r_g_u_m_e_n_t _._._.
|
||||
The auth command manipulates the information sent through the
|
||||
TELNET AUTHENTICATE option. Valid arguments for the auth com-
|
||||
mand are as follows:
|
||||
|
||||
ddiissaabbllee _t_y_p_e Disables the specified type of authentication.
|
||||
To obtain a list of available types, use the
|
||||
aauutthh ddiissaabbllee ?? command.
|
||||
|
||||
eennaabbllee _t_y_p_e Enables the specified type of authentication.
|
||||
To obtain a list of available types, use the
|
||||
aauutthh eennaabbllee ?? command.
|
||||
|
||||
ssttaattuuss Lists the current status of the various types of
|
||||
authentication.
|
||||
|
||||
cclloossee Close a TELNET session and return to command mode.
|
||||
|
||||
ddiissppllaayy _a_r_g_u_m_e_n_t _._._.
|
||||
Displays all, or some, of the sseett and ttooggggllee values (see be-
|
||||
low).
|
||||
|
||||
eennccrryypptt _a_r_g_u_m_e_n_t _._._.
|
||||
The encrypt command manipulates the information sent through
|
||||
the TELNET ENCRYPT option.
|
||||
|
||||
Note: Because of export controls, the TELNET ENCRYPT option
|
||||
is not supported outside of the United States and Canada.
|
||||
|
||||
Valid arguments for the encrypt command are as follows:
|
||||
|
||||
ddiissaabbllee _t_y_p_e [[iinnppuutt||oouuttppuutt]]
|
||||
Disables the specified type of encryption. If
|
||||
you omit the input and output, both input and
|
||||
output are disabled. To obtain a list of avail-
|
||||
able types, use the eennccrryypptt ddiissaabbllee ?? command.
|
||||
|
||||
eennaabbllee _t_y_p_e [[iinnppuutt||oouuttppuutt]]
|
||||
Enables the specified type of encryption. If
|
||||
you omit input and output, both input and output
|
||||
are enabled. To obtain a list of available
|
||||
types, use the eennccrryypptt eennaabbllee ?? command.
|
||||
|
||||
iinnppuutt This is the same as the eennccrryypptt ssttaarrtt iinnppuutt com-
|
||||
mand.
|
||||
|
||||
--iinnppuutt This is the same as the eennccrryypptt ssttoopp iinnppuutt com-
|
||||
mand.
|
||||
|
||||
oouuttppuutt This is the same as the eennccrryypptt ssttaarrtt oouuttppuutt
|
||||
command.
|
||||
|
||||
--oouuttppuutt This is the same as the eennccrryypptt ssttoopp oouuttppuutt com-
|
||||
mand.
|
||||
|
||||
ssttaarrtt [[iinnppuutt||oouuttppuutt]]
|
||||
Attempts to start encryption. If you omit iinnppuutt
|
||||
and oouuttppuutt,, both input and output are enabled.
|
||||
To obtain a list of available types, use the
|
||||
|
||||
|
||||
eennccrryypptt eennaabbllee ?? command.
|
||||
|
||||
ssttaattuuss Lists the current status of encryption.
|
||||
|
||||
ssttoopp [[iinnppuutt||oouuttppuutt]]
|
||||
Stops encryption. If you omit input and output,
|
||||
encryption is on both input and output.
|
||||
|
||||
ttyyppee _t_y_p_e Sets the default type of encryption to be used
|
||||
with later eennccrryypptt ssttaarrtt or eennccrryypptt ssttoopp com-
|
||||
mands.
|
||||
|
||||
eennvviirroonn _a_r_g_u_m_e_n_t_s_._._.
|
||||
The eennvviirroonn command is used to manipulate the the variables
|
||||
that my be sent through the TELNET ENVIRON option. The ini-
|
||||
tial set of variables is taken from the users environment,
|
||||
with only the DISPLAY and PRINTER variables being exported by
|
||||
default. The USER variable is also exported if the --aa or --ll
|
||||
options are used.
|
||||
Valid arguments for the eennvviirroonn command are:
|
||||
|
||||
ddeeffiinnee _v_a_r_i_a_b_l_e _v_a_l_u_e
|
||||
Define the variable _v_a_r_i_a_b_l_e to have a value of
|
||||
_v_a_l_u_e_. Any variables defined by this command are
|
||||
automatically exported. The _v_a_l_u_e may be enclosed
|
||||
in single or double quotes so that tabs and spaces
|
||||
may be included.
|
||||
|
||||
uunnddeeffiinnee _v_a_r_i_a_b_l_e
|
||||
Remove _v_a_r_i_a_b_l_e from the list of environment vari-
|
||||
ables.
|
||||
|
||||
eexxppoorrtt _v_a_r_i_a_b_l_e
|
||||
Mark the variable _v_a_r_i_a_b_l_e to be exported to the
|
||||
remote side.
|
||||
|
||||
uunneexxppoorrtt _v_a_r_i_a_b_l_e
|
||||
Mark the variable _v_a_r_i_a_b_l_e to not be exported un-
|
||||
less explicitly asked for by the remote side.
|
||||
|
||||
lliisstt List the current set of environment variables.
|
||||
Those marked with a ** will be sent automatically,
|
||||
other variables will only be sent if explicitly
|
||||
requested.
|
||||
|
||||
?? Prints out help information for the eennvviirroonn com-
|
||||
mand.
|
||||
|
||||
llooggoouutt Sends the TELNET LOGOUT option to the remote side. This com-
|
||||
mand is similar to a cclloossee command; however, if the remote
|
||||
side does not support the LOGOUT option, nothing happens. If,
|
||||
however, the remote side does support the LOGOUT option, this
|
||||
command should cause the remote side to close the TELNET con-
|
||||
nection. If the remote side also supports the concept of sus-
|
||||
pending a user's session for later reattachment, the logout
|
||||
argument indicates that you should terminate the session imme-
|
||||
diately.
|
||||
|
||||
mmooddee _t_y_p_e _T_y_p_e is one of several options, depending on the state of the
|
||||
TELNET session. The remote host is asked for permission to go
|
||||
into the requested mode. If the remote host is capable of en-
|
||||
tering that mode, the requested mode will be entered.
|
||||
|
||||
cchhaarraacctteerr Disable the TELNET LINEMODE option, or, if the
|
||||
remote side does not understand the LINEMODE op-
|
||||
|
||||
tion, then enter ``character at a time`` mode.
|
||||
|
||||
lliinnee Enable the TELNET LINEMODE option, or, if the
|
||||
remote side does not understand the LINEMODE op-
|
||||
tion, then attempt to enter ``old-line-by-line``
|
||||
mode.
|
||||
|
||||
iissiigg (--iissiigg) Attempt to enable (disable) the TRAPSIG mode of
|
||||
the LINEMODE option. This requires that the
|
||||
LINEMODE option be enabled.
|
||||
|
||||
eeddiitt (--eeddiitt) Attempt to enable (disable) the EDIT mode of the
|
||||
LINEMODE option. This requires that the
|
||||
LINEMODE option be enabled.
|
||||
|
||||
ssooffttttaabbss (--ssooffttttaabbss)
|
||||
Attempt to enable (disable) the SOFT_TAB mode of
|
||||
the LINEMODE option. This requires that the
|
||||
LINEMODE option be enabled.
|
||||
|
||||
lliitteecchhoo (--lliitteecchhoo)
|
||||
Attempt to enable (disable) the LIT_ECHO mode of
|
||||
the LINEMODE option. This requires that the
|
||||
LINEMODE option be enabled.
|
||||
|
||||
?? Prints out help information for the mmooddee com-
|
||||
mand.
|
||||
|
||||
ooppeenn _h_o_s_t [[--ll] _u_s_e_r][--_p_o_r_t]
|
||||
Open a connection to the named host. If no port number is
|
||||
specified, tteellnneett will attempt to contact a TELNET server at
|
||||
the default port. The host specification may be either a host
|
||||
name (see hosts(5)) or an Internet address specified in the
|
||||
``dot notation'' (see inet(3)). The [--ll] option may be used
|
||||
to specify the user name to be passed to the remote system via
|
||||
the ENVIRON option. When connecting to a non-standard port,
|
||||
tteellnneett omits any automatic initiation of TELNET options. When
|
||||
the port number is preceded by a minus sign, the initial op-
|
||||
tion negotiation is done. After establishing a connection,
|
||||
the file _._t_e_l_n_e_t_r_c in the users home directory is opened.
|
||||
Lines beginning with a # are comment lines. Blank lines are
|
||||
ignored. Lines that begin without white space are the start
|
||||
of a machine entry. The first thing on the line is the name
|
||||
of the machine that is being connected to. The rest of the
|
||||
line, and successive lines that begin with white space are as-
|
||||
sumed to be tteellnneett commands and are processed as if they had
|
||||
been typed in manually to the tteellnneett command prompt.
|
||||
|
||||
qquuiitt Close any open TELNET session and exit tteellnneett. An end of file
|
||||
(in command mode) will also close a session and exit.
|
||||
|
||||
sseenndd _a_r_g_u_m_e_n_t_s
|
||||
Sends one or more special character sequences to the remote
|
||||
host. The following are the arguments which may be specified
|
||||
(more than one argument may be specified at a time):
|
||||
|
||||
aabboorrtt Sends the TELNET ABORT (Abort processes) sequence.
|
||||
|
||||
aaoo Sends the TELNET AO (Abort Output) sequence, which
|
||||
should cause the remote system to flush all output
|
||||
_f_r_o_m the remote system _t_o the user's terminal.
|
||||
|
||||
aayytt Sends the TELNET AYT (Are You There) sequence, to
|
||||
which the remote system may or may not choose to re-
|
||||
|
||||
|
||||
spond.
|
||||
|
||||
bbrrkk Sends the TELNET BRK (Break) sequence, which may have
|
||||
significance to the remote system.
|
||||
|
||||
eecc Sends the TELNET EC (Erase Character) sequence, which
|
||||
should cause the remote system to erase the last char-
|
||||
acter entered.
|
||||
|
||||
eell Sends the TELNET EL (Erase Line) sequence, which
|
||||
should cause the remote system to erase the line cur-
|
||||
rently being entered.
|
||||
|
||||
eeooff Sends the TELNET EOF (End Of File) sequence.
|
||||
|
||||
eeoorr Sends the TELNET EOR (End of Record) sequence.
|
||||
|
||||
eessccaappee Sends the current tteellnneett escape character (initially
|
||||
``^'').
|
||||
|
||||
ggaa Sends the TELNET GA (Go Ahead) sequence, which likely
|
||||
has no significance to the remote system.
|
||||
|
||||
ggeettssttaattuuss
|
||||
If the remote side supports the TELNET STATUS command,
|
||||
ggeettssttaattuuss will send the subnegotiation to request that
|
||||
the server send its current option status.
|
||||
|
||||
iipp Sends the TELNET IP (Interrupt Process) sequence,
|
||||
which should cause the remote system to abort the cur-
|
||||
rently running process.
|
||||
|
||||
nnoopp Sends the TELNET NOP (No OPeration) sequence.
|
||||
|
||||
ssuusspp Sends the TELNET SUSP (SUSPend process) sequence.
|
||||
|
||||
ssyynncchh Sends the TELNET SYNCH sequence. This sequence causes
|
||||
the remote system to discard all previously typed (but
|
||||
not yet read) input. This sequence is sent as TCP ur-
|
||||
gent data (and may not work if the remote system is a
|
||||
4.2BSD system -- if it doesn't work, a lower case
|
||||
``r'' may be echoed on the terminal).
|
||||
|
||||
ddoo _c_m_d
|
||||
|
||||
ddoonntt _c_m_d
|
||||
|
||||
wwiillll _c_m_d
|
||||
|
||||
wwoonntt _c_m_d
|
||||
Sends the TELNET DO _c_m_d sequence. _C_m_d can be either a
|
||||
decimal number between 0 and 255, or a symbolic name
|
||||
for a specific TELNET command. _C_m_d can also be either
|
||||
hheellpp or ?? to print out help information, including a
|
||||
list of known symbolic names.
|
||||
|
||||
?? Prints out help information for the sseenndd command.
|
||||
|
||||
sseett _a_r_g_u_m_e_n_t _v_a_l_u_e
|
||||
|
||||
uunnsseett _a_r_g_u_m_e_n_t _v_a_l_u_e
|
||||
The sseett command will set any one of a number of tteellnneett vari-
|
||||
ables to a specific value or to TRUE. The special value ooffff
|
||||
turns off the function associated with the variable, this is
|
||||
equivalent to using the uunnsseett command. The uunnsseett command will
|
||||
disable or set to FALSE any of the specified functions. The
|
||||
values of variables may be interrogated with the ddiissppllaayy com-
|
||||
mand. The variables which may be set or unset, but not tog-
|
||||
gled, are listed here. In addition, any of the variables for
|
||||
the ttooggggllee command may be explicitly set or unset using the
|
||||
sseett and uunnsseett commands.
|
||||
|
||||
aayytt If TELNET is in localchars mode, or LINEMODE is en-
|
||||
abled, and the status character is typed, a TELNET AYT
|
||||
sequence (see sseenndd aayytt preceding) is sent to the re-
|
||||
mote host. The initial value for the "Are You There"
|
||||
character is the terminal's status character.
|
||||
|
||||
eecchhoo This is the value (initially ``^E'') which, when in
|
||||
``line by line'' mode, toggles between doing local
|
||||
echoing of entered characters (for normal processing),
|
||||
and suppressing echoing of entered characters (for en-
|
||||
tering, say, a password).
|
||||
|
||||
eeooff If tteellnneett is operating in LINEMODE or ``old line by
|
||||
line'' mode, entering this character as the first
|
||||
character on a line will cause this character to be
|
||||
sent to the remote system. The initial value of the
|
||||
eof character is taken to be the terminal's eeooff char-
|
||||
acter.
|
||||
|
||||
eerraassee If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss
|
||||
below), aanndd if tteellnneett is operating in ``character at a
|
||||
time'' mode, then when this character is typed, a
|
||||
TELNET EC sequence (see sseenndd eecc above) is sent to the
|
||||
remote system. The initial value for the erase char-
|
||||
acter is taken to be the terminal's eerraassee character.
|
||||
|
||||
eessccaappee This is the tteellnneett escape character (initially ``^['')
|
||||
which causes entry into tteellnneett command mode (when con-
|
||||
nected to a remote system).
|
||||
|
||||
fflluusshhoouuttppuutt
|
||||
If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss
|
||||
below) and the fflluusshhoouuttppuutt character is typed, a
|
||||
TELNET AO sequence (see sseenndd aaoo above) is sent to the
|
||||
remote host. The initial value for the flush charac-
|
||||
ter is taken to be the terminal's fflluusshh character.
|
||||
|
||||
ffoorrww11
|
||||
|
||||
ffoorrww22 If TELNET is operating in LINEMODE, these are the
|
||||
characters that, when typed, cause partial lines to be
|
||||
forwarded to the remote system. The initial value for
|
||||
the forwarding characters are taken from the termi-
|
||||
nal's eol and eol2 characters.
|
||||
|
||||
iinntteerrrruupptt
|
||||
If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss
|
||||
below) and the iinntteerrrruupptt character is typed, a TELNET
|
||||
IP sequence (see sseenndd iipp above) is sent to the remote
|
||||
host. The initial value for the interrupt character
|
||||
is taken to be the terminal's iinnttrr character.
|
||||
|
||||
kkiillll If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss
|
||||
below), aanndd if tteellnneett is operating in ``character at a
|
||||
time'' mode, then when this character is typed, a
|
||||
TELNET EL sequence (see sseenndd eell above) is sent to the
|
||||
remote system. The initial value for the kill charac-
|
||||
ter is taken to be the terminal's kkiillll character.
|
||||
|
||||
llnneexxtt If tteellnneett is operating in LINEMODE or ``old line by
|
||||
line`` mode, then this character is taken to be the
|
||||
terminal's llnneexxtt character. The initial value for the
|
||||
lnext character is taken to be the terminal's llnneexxtt
|
||||
character.
|
||||
|
||||
qquuiitt If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss
|
||||
below) and the qquuiitt character is typed, a TELNET BRK
|
||||
sequence (see sseenndd bbrrkk above) is sent to the remote
|
||||
host. The initial value for the quit character is
|
||||
taken to be the terminal's qquuiitt character.
|
||||
|
||||
rreepprriinntt
|
||||
If tteellnneett is operating in LINEMODE or ``old line by
|
||||
line`` mode, then this character is taken to be the
|
||||
terminal's rreepprriinntt character. The initial value for
|
||||
the reprint character is taken to be the terminal's
|
||||
rreepprriinntt character.
|
||||
|
||||
rrllooggiinn This is the rlogin escape character. If set, the nor-
|
||||
mal TELNET escape character is ignored unless it is
|
||||
preceded by this character at the beginning of a line.
|
||||
This character, at the beginning of a line followed by
|
||||
a "." closes the connection; when followed by a ^Z it
|
||||
suspends the telnet command. The initial state is to
|
||||
disable the rlogin escape character.
|
||||
|
||||
ssttaarrtt If the TELNET TOGGLE-FLOW-CONTROL option has been en-
|
||||
abled, then this character is taken to be the termi-
|
||||
nal's ssttaarrtt character. The initial value for the kill
|
||||
character is taken to be the terminal's ssttaarrtt charac-
|
||||
ter.
|
||||
|
||||
ssttoopp If the TELNET TOGGLE-FLOW-CONTROL option has been en-
|
||||
abled, then this character is taken to be the termi-
|
||||
nal's ssttoopp character. The initial value for the kill
|
||||
character is taken to be the terminal's ssttoopp charac-
|
||||
ter.
|
||||
|
||||
ssuusspp If tteellnneett is in llooccaallcchhaarrss mode, or LINEMODE is en-
|
||||
abled, and the ssuussppeenndd character is typed, a TELNET
|
||||
SUSP sequence (see sseenndd ssuusspp above) is sent to the re-
|
||||
mote host. The initial value for the suspend charac-
|
||||
ter is taken to be the terminal's ssuussppeenndd character.
|
||||
|
||||
ttrraacceeffiillee
|
||||
This is the file to which the output, caused by
|
||||
nneettddaattaa or ooppttiioonn tracing being TRUE, will be written.
|
||||
If it is set to ``--'', then tracing information will
|
||||
be written to standard output (the default).
|
||||
|
||||
wwoorrddeerraassee
|
||||
If tteellnneett is operating in LINEMODE or ``old line by
|
||||
line`` mode, then this character is taken to be the
|
||||
terminal's wwoorrddeerraassee character. The initial value for
|
||||
the worderase character is taken to be the terminal's
|
||||
wwoorrddeerraassee character.
|
||||
|
||||
?? Displays the legal sseett (uunnsseett) commands.
|
||||
|
||||
ssllcc _s_t_a_t_e The ssllcc command (Set Local Characters) is used to set or
|
||||
change the state of the the special characters when the TELNET
|
||||
LINEMODE option has been enabled. Special characters are
|
||||
characters that get mapped to TELNET commands sequences (like
|
||||
iipp or qquuiitt) or line editing characters (like eerraassee and kkiillll).
|
||||
|
||||
|
||||
By default, the local special characters are exported.
|
||||
|
||||
cchheecckk Verify the current settings for the current spe-
|
||||
cial characters. The remote side is requested to
|
||||
send all the current special character settings,
|
||||
and if there are any discrepancies with the local
|
||||
side, the local side will switch to the remote
|
||||
value.
|
||||
|
||||
eexxppoorrtt Switch to the local defaults for the special char-
|
||||
acters. The local default characters are those of
|
||||
the local terminal at the time when tteellnneett was
|
||||
started.
|
||||
|
||||
iimmppoorrtt Switch to the remote defaults for the special
|
||||
characters. The remote default characters are
|
||||
those of the remote system at the time when the
|
||||
TELNET connection was established.
|
||||
|
||||
?? Prints out help information for the ssllcc command.
|
||||
|
||||
ssttaattuuss Show the current status of tteellnneett. This includes the peer one
|
||||
is connected to, as well as the current mode.
|
||||
|
||||
ttooggggllee _a_r_g_u_m_e_n_t_s _._._.
|
||||
Toggle (between TRUE and FALSE) various flags that control how
|
||||
tteellnneett responds to events. These flags may be set explicitly
|
||||
to TRUE or FALSE using the sseett and uunnsseett commands listed
|
||||
above. More than one argument may be specified. The state of
|
||||
these flags may be interrogated with the ddiissppllaayy command.
|
||||
Valid arguments are:
|
||||
|
||||
aauutthhddeebbuugg Turns on debugging information for the authenti-
|
||||
cation code.
|
||||
|
||||
aauuttoofflluusshh If aauuttoofflluusshh and llooccaallcchhaarrss are both TRUE, then
|
||||
when the aaoo, or qquuiitt characters are recognized
|
||||
(and transformed into TELNET sequences; see sseett
|
||||
above for details), tteellnneett refuses to display
|
||||
any data on the user's terminal until the remote
|
||||
system acknowledges (via a TELNET TIMING MARK
|
||||
option) that it has processed those TELNET se-
|
||||
quences. The initial value for this toggle is
|
||||
TRUE if the terminal user had not done an "stty
|
||||
noflsh", otherwise FALSE (see stty(1)).
|
||||
|
||||
aauuttooddeeccrryypptt When the TELNET ENCRYPT option is negotiated, by
|
||||
default the actual encryption (decryption) of
|
||||
the data stream does not start automatically.
|
||||
The autoencrypt (autodecrypt) command states
|
||||
that encryption of the output (input) stream
|
||||
should be enabled as soon as possible.
|
||||
|
||||
|
||||
Note: Because of export controls, the TELNET
|
||||
ENCRYPT option is not supported outside the
|
||||
United States and Canada.
|
||||
|
||||
aauuttoollooggiinn If the remote side supports the TELNET
|
||||
AUTHENTICATION option TELNET attempts to use it
|
||||
to perform automatic authentication. If the
|
||||
AUTHENTICATION option is not supported, the us-
|
||||
er's login name are propagated through the
|
||||
TELNET ENVIRON option. This command is the same
|
||||
|
||||
|
||||
as specifying _a option on the ooppeenn command.
|
||||
|
||||
aauuttoossyynncchh If aauuttoossyynncchh and llooccaallcchhaarrss are both TRUE, then
|
||||
when either the iinnttrr or qquuiitt characters is typed
|
||||
(see sseett above for descriptions of the iinnttrr and
|
||||
qquuiitt characters), the resulting TELNET sequence
|
||||
sent is followed by the TELNET SYNCH sequence.
|
||||
This procedure sshhoouulldd cause the remote system to
|
||||
begin throwing away all previously typed input
|
||||
until both of the TELNET sequences have been
|
||||
read and acted upon. The initial value of this
|
||||
toggle is FALSE.
|
||||
|
||||
bbiinnaarryy Enable or disable the TELNET BINARY option on
|
||||
both input and output.
|
||||
|
||||
iinnbbiinnaarryy Enable or disable the TELNET BINARY option on
|
||||
input.
|
||||
|
||||
oouuttbbiinnaarryy Enable or disable the TELNET BINARY option on
|
||||
output.
|
||||
|
||||
ccrrllff If this is TRUE, then carriage returns will be
|
||||
sent as <CR><LF>. If this is FALSE, then car-
|
||||
riage returns will be send as <CR><NUL>. The
|
||||
initial value for this toggle is FALSE.
|
||||
|
||||
ccrrmmoodd Toggle carriage return mode. When this mode is
|
||||
enabled, most carriage return characters re-
|
||||
ceived from the remote host will be mapped into
|
||||
a carriage return followed by a line feed. This
|
||||
mode does not affect those characters typed by
|
||||
the user, only those received from the remote
|
||||
host. This mode is not very useful unless the
|
||||
remote host only sends carriage return, but nev-
|
||||
er line feed. The initial value for this toggle
|
||||
is FALSE.
|
||||
|
||||
ddeebbuugg Toggles socket level debugging (useful only to
|
||||
the ssuuppeerr uusseerr). The initial value for this tog-
|
||||
gle is FALSE.
|
||||
|
||||
eennccddeebbuugg Turns on debugging information for the encryp-
|
||||
tion code.
|
||||
|
||||
llooccaallcchhaarrss If this is TRUE, then the fflluusshh, iinntteerrrruupptt,
|
||||
qquuiitt, eerraassee, and kkiillll characters (see sseett above)
|
||||
are recognized locally, and transformed into
|
||||
(hopefully) appropriate TELNET control sequences
|
||||
(respectively aaoo, iipp, bbrrkk, eecc, and eell; see sseenndd
|
||||
above). The initial value for this toggle is
|
||||
TRUE in ``old line by line'' mode, and FALSE in
|
||||
``character at a time'' mode. When the LINEMODE
|
||||
option is enabled, the value of llooccaallcchhaarrss is
|
||||
ignored, and assumed to always be TRUE. If
|
||||
LINEMODE has ever been enabled, then qquuiitt is
|
||||
sent as aabboorrtt, and eeooff aanndd are sent as eeooff aanndd
|
||||
ssuusspp, see sseenndd above).
|
||||
|
||||
nneettddaattaa Toggles the display of all network data (in hex-
|
||||
adecimal format). The initial value for this
|
||||
toggle is FALSE.
|
||||
|
||||
ooppttiioonnss Toggles the display of some internal tteellnneett pro-
|
||||
tocol processing (having to do with TELNET op-
|
||||
tions). The initial value for this toggle is
|
||||
|
||||
FALSE.
|
||||
|
||||
pprreettttyydduummpp When the nneettddaattaa toggle is enabled, if
|
||||
pprreettttyydduummpp is enabled the output from the
|
||||
nneettddaattaa command will be formatted in a more user
|
||||
readable format. Spaces are put between each
|
||||
character in the output, and the beginning of
|
||||
any TELNET escape sequence is preceded by a '*'
|
||||
to aid in locating them.
|
||||
|
||||
sskkiipprrcc When the skiprc toggle is TRUE, TELNET skips the
|
||||
reading of the _._t_e_l_n_e_t_r_c file in the users home
|
||||
directory when connections are opened. The ini-
|
||||
tial value for this toggle is FALSE.
|
||||
|
||||
tteerrmmddaattaa Toggles the display of all terminal data (in
|
||||
hexadecimal format). The initial value for this
|
||||
toggle is FALSE.
|
||||
|
||||
vveerrbboossee__eennccrryypptt
|
||||
When the vveerrbboossee__eennccrryypptt toggle is TRUE, TELNET
|
||||
prints out a message each time encryption is en-
|
||||
abled or disabled. The initial value for this
|
||||
toggle is FALSE. Note: Because of export con-
|
||||
trols, data encryption is not supported outside
|
||||
of the United States and Canada.
|
||||
|
||||
?? Displays the legal ttooggggllee commands.
|
||||
|
||||
zz Suspend tteellnneett. This command only works when the user is using
|
||||
the csh(1).
|
||||
|
||||
!! [_c_o_m_m_a_n_d]
|
||||
Execute a single command in a subshell on the local system.
|
||||
If ccoommmmaanndd is omitted, then an interactive subshell is in-
|
||||
voked.
|
||||
|
||||
?? [_c_o_m_m_a_n_d]
|
||||
Get help. With no arguments, tteellnneett prints a help summary.
|
||||
If a command is specified, tteellnneett will print the help informa-
|
||||
tion for just that command.
|
||||
|
||||
EENNVVIIRROONNMMEENNTT
|
||||
TTeellnneett uses at least the HOME, SHELL, DISPLAY, and TERM environment vari-
|
||||
ables. Other environment variables may be propagated to the other side
|
||||
via the TELNET ENVIRON option.
|
||||
|
||||
FFIILLEESS
|
||||
~/.telnetrc user customized telnet startup values
|
||||
|
||||
HHIISSTTOORRYY
|
||||
The TTeellnneett command appeared in 4.2BSD.
|
||||
|
||||
NNOOTTEESS
|
||||
On some remote systems, echo has to be turned off manually when in ``old
|
||||
line by line'' mode.
|
||||
|
||||
In ``old line by line'' mode or LINEMODE the terminal's eeooff character is
|
||||
only recognized (and sent to the remote system) when it is the first
|
||||
character on a line.
|
||||
|
||||
4.2 Berkeley Distribution June 1, 1994 11
|
Reference in New Issue
Block a user