1994-08-04 22:02:36 -04:00
|
|
|
# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
|
1999-08-27 20:22:10 -04:00
|
|
|
# $FreeBSD$
|
1994-05-27 01:00:24 -04:00
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
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 16:59:15 -04:00
|
|
|
TELNETDIR= ${.CURDIR}/../../contrib/telnet
|
|
|
|
|
.PATH: ${TELNETDIR}/libtelnet
|
|
|
|
|
|
2001-08-20 08:04:53 -04:00
|
|
|
LIB= telnet
|
2001-03-28 07:08:22 -05:00
|
|
|
|
2004-10-24 11:33:08 -04:00
|
|
|
INTERNALLIB=
|
2001-03-28 07:08:22 -05:00
|
|
|
|
2001-08-20 08:04:53 -04:00
|
|
|
SRCS= genget.c getent.c misc.c
|
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 16:59:15 -04:00
|
|
|
CFLAGS+= -I${TELNETDIR}
|
2001-11-30 16:34:51 -05:00
|
|
|
|
2009-02-26 16:43:15 -05:00
|
|
|
WARNS?= 2
|
2001-11-30 16:34:51 -05:00
|
|
|
|
2003-07-24 13:19:15 -04:00
|
|
|
.if !defined(RELEASE_CRUNCH)
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
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 16:59:15 -04:00
|
|
|
SRCS+= encrypt.c auth.c enc_des.c sra.c pk.c
|
|
|
|
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA
|
2006-07-31 09:29:36 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_KERBEROS_SUPPORT} != "no"
|
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 16:59:15 -04:00
|
|
|
SRCS+= kerberos5.c
|
|
|
|
|
CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
|
|
|
|
|
CFLAGS+= -DFORWARD -Dnet_write=telnet_net_write
|
|
|
|
|
.endif
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
INCS= ${TELNETDIR}/arpa/telnet.h
|
|
|
|
|
INCSDIR= ${INCLUDEDIR}/arpa
|
2001-11-30 16:34:51 -05:00
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|