summaryrefslogtreecommitdiffstats
path: root/kerberos5
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-11-30 21:14:44 +0000
committermarkm <markm@FreeBSD.org>2001-11-30 21:14:44 +0000
commita9aad3d379fc94cc2c75cafaabac7e261d0ad3cd (patch)
treedbb669b8ebbc17af67ea9049076178c4dc50c53a /kerberos5
parenta89901d81e690962dc889976d911d0a3c3334bfc (diff)
downloadFreeBSD-src-a9aad3d379fc94cc2c75cafaabac7e261d0ad3cd.zip
FreeBSD-src-a9aad3d379fc94cc2c75cafaabac7e261d0ad3cd.tar.gz
Style clean-up, and diff-reduce WRT src/secure/*telnet*/Makefile
Lost in this commit - KerberosIV compatability. This will be re-added later.
Diffstat (limited to 'kerberos5')
-rw-r--r--kerberos5/lib/libtelnet/Makefile26
-rw-r--r--kerberos5/libexec/telnetd/Makefile21
-rw-r--r--kerberos5/usr.bin/telnet/Makefile32
3 files changed, 34 insertions, 45 deletions
diff --git a/kerberos5/lib/libtelnet/Makefile b/kerberos5/lib/libtelnet/Makefile
index 7dab16f..f119212 100644
--- a/kerberos5/lib/libtelnet/Makefile
+++ b/kerberos5/lib/libtelnet/Makefile
@@ -8,28 +8,28 @@ 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
-#SRCS+= kerberos5.c
+#WARNS?= 2
-CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
- -DSRA -I${TELNETDIR}
-#CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5
+CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA -I${TELNETDIR}
+CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5
INCS= ${TELNETDIR}/arpa/telnet.h
INCDIR= /usr/include/arpa
+.include <bsd.lib.mk>
+
+.PATH: ${TELNETDIR}/libtelnet
+
#
# Remove obsolete shared libraries, if any. We don't bother moving them
# to /usr/lib/compat, since they were only used by telnet, telnetd and
# tn3270.
#
-beforeinstall:
+beforeinstall: __remove-stale-libs
+__remove-stale-libs: .PHONY
+.if exists(${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0)
+ -chflags noschg ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
-
-.include <bsd.lib.mk>
-
-.PATH: ${TELNETDIR}/libtelnet
+.endif
diff --git a/kerberos5/libexec/telnetd/Makefile b/kerberos5/libexec/telnetd/Makefile
index b74910e..f92ac71 100644
--- a/kerberos5/libexec/telnetd/Makefile
+++ b/kerberos5/libexec/telnetd/Makefile
@@ -6,24 +6,21 @@
PROG= telnetd
MAN= telnetd.8
-CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
- -DENV_HACK -DAUTHENTICATION -DENCRYPTION \
- -I${TELNETDIR} -DINET6
-
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c authenc.c
-DPADD=
-LDADD=
+CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
+ -DENV_HACK -DAUTHENTICATION -DENCRYPTION \
+ -I${TELNETDIR} -DINET6
+CFLAGS+= -DKRB5
-.if defined(MAKE_KERBEROS4)
-DPADD+= ${LIBKRB} ${LIBCOM_ERR}
-LDADD+= -lkrb -lcom_err
-.endif
+WARNS?= 2
-DPADD+= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
+DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
+ ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR} \
${LIBCRYPT} ${LIBPAM}
-LDADD+= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
+LDADD= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
+ -lkrb5 -lasn1 -lroken -lcom_err \
-lcrypt ${MINUSLPAM}
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/telnet/Makefile b/kerberos5/usr.bin/telnet/Makefile
index fcec24f..b8c1792 100644
--- a/kerberos5/usr.bin/telnet/Makefile
+++ b/kerberos5/usr.bin/telnet/Makefile
@@ -2,31 +2,23 @@
PROG= telnet
+SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
+ telnet.c terminal.c utilities.c
+
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
+ -I${TELNETDIR} -I${TELNETDIR}/libtelnet/
-DPADD=
-LDADD=
+CFLAGS+= -DKRB5
-.if defined(MAKE_KERBEROS4)
-DPADD+= ${LIBKRB} ${LIBCOM_ERR}
-LDADD+= -lkrb -lcom_err
-.endif
+WARNS?= 2
-DPADD+= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
- ${LIBIPSEC} ${LIBPAM}
-LDADD+= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
- -lipsec ${MINUSLPAM}
+DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} \
+ ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} \
+ ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
+LDADD= -ltermcap ${LIBTELNET} -lmp \
+ -lkrb5 -lasn1 -lcom_err -lroken \
+ -lcrypto -lcrypt -lipsec ${MINUSLPAM}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud