1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:39:25 +00:00
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
|
|
# telnet implementations.
|
|
|
|
|
Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".
As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).
Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 20:59:15 +00:00
|
|
|
TELNETDIR= ${.CURDIR}/../../contrib/telnet
|
|
|
|
.PATH: ${TELNETDIR}/telnetd
|
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
PROG= telnetd
|
|
|
|
MAN= telnetd.8
|
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
|
|
|
termstat.c utility.c
|
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
|
|
|
-DENV_HACK \
|
Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".
As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).
Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 20:59:15 +00:00
|
|
|
-I${TELNETDIR} -DINET6
|
2001-08-20 12:12:27 +00:00
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
WARNS?= 2
|
2002-02-06 11:07:55 +00:00
|
|
|
WFORMAT?= 0
|
2001-03-28 12:08:22 +00:00
|
|
|
|
|
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
|
|
|
|
LDADD= -lutil -ltermcap ${LIBTELNET}
|
1994-05-27 12:39:25 +00:00
|
|
|
|
2003-07-24 17:19:15 +00:00
|
|
|
.if !defined(RELEASE_CRUNCH)
|
2004-12-21 10:16:04 +00:00
|
|
|
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
|
Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".
As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).
Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 20:59:15 +00:00
|
|
|
SRCS+= authenc.c
|
|
|
|
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
|
|
|
|
DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
|
|
|
|
LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
|
|
|
|
.if !defined(NO_KERBEROS)
|
|
|
|
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
|
|
|
|
LDADD+= -lkrb5 -lasn1 -lroken -lcom_err
|
|
|
|
.endif
|
|
|
|
.endif
|
2003-07-24 17:19:15 +00:00
|
|
|
.endif
|
2001-11-30 21:34:51 +00:00
|
|
|
|
1994-05-27 12:39:25 +00:00
|
|
|
.include <bsd.prog.mk>
|