make libtelnet (and telnet, telnetd) use libkrb when required
This commit is contained in:
parent
a58a4acd14
commit
ceb6fd100e
@ -8,6 +8,11 @@ NOPIC= yes
|
||||
|
||||
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
|
||||
enc_des.c sra.c pk.c
|
||||
.if defined(MAKE_KERBEROS4)
|
||||
SRCS+= kerberos.c
|
||||
CFLAGS+= -DKRB4 -I${KRB4DIR}/lib/krb
|
||||
.endif
|
||||
|
||||
#SRCS+= kerberos5.c
|
||||
|
||||
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
|
||||
|
@ -13,9 +13,17 @@ CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
||||
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
||||
termstat.c utility.c authenc.c
|
||||
|
||||
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
|
||||
DPADD=
|
||||
LDADD=
|
||||
|
||||
.if defined(MAKE_KERBEROS4)
|
||||
DPADD+= ${LIBKRB} ${LIBCOM_ERR}
|
||||
LDADD+= -lkrb -lcom_err
|
||||
.endif
|
||||
|
||||
DPADD+= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
|
||||
${LIBCRYPT} ${LIBPAM}
|
||||
LDADD= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
|
||||
LDADD+= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
|
||||
-lcrypt ${MINUSLPAM}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -5,14 +5,27 @@ PROG= telnet
|
||||
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
|
||||
-DENCRYPTION -DAUTHENTICATION -DIPSEC -DINET6 \
|
||||
-I${TELNETDIR}
|
||||
|
||||
.if defined(MAKE_KERBEROS4)
|
||||
CFLAGS+= -DKRB4
|
||||
.endif
|
||||
|
||||
#CFLAGS+= -DKRB5
|
||||
|
||||
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
|
||||
telnet.c terminal.c tn3270.c utilities.c
|
||||
|
||||
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
|
||||
DPADD=
|
||||
LDADD=
|
||||
|
||||
.if defined(MAKE_KERBEROS4)
|
||||
DPADD+= ${LIBKRB} ${LIBCOM_ERR}
|
||||
LDADD+= -lkrb -lcom_err
|
||||
.endif
|
||||
|
||||
DPADD+= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
|
||||
${LIBIPSEC} ${LIBPAM}
|
||||
LDADD= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
|
||||
LDADD+= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
|
||||
-lipsec ${MINUSLPAM}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user