From 67b76a559b2a39aa5cc01442b6c8d8e68a8a1821 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 10 Oct 1997 04:03:17 +0000 Subject: [PATCH] If kerberos is installed and enabled in make.conf, activate cvs's kserver hooks. This is a lot safer than 'cvs pserver'. --- gnu/usr.bin/cvs/cvs/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/cvs/cvs/Makefile b/gnu/usr.bin/cvs/cvs/Makefile index 9d5dc2de9819..b254599c5c7d 100644 --- a/gnu/usr.bin/cvs/cvs/Makefile +++ b/gnu/usr.bin/cvs/cvs/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.16 1997/02/22 15:45:14 peter Exp $ +# $Id: Makefile,v 1.17 1997/05/15 23:00:05 peter Exp $ .include "${.CURDIR}/../Makefile.inc" @@ -24,4 +24,15 @@ CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../lib -I${CVSDIR}/src -I${CVSDIR}/lib -DHAVE DPADD+= ${LIBCVS} ${LIBGNUREGEX} ${LIBMD} ${LIBCRYPT} ${LIBZ} LDADD+= -lcvs -lgnuregex -lmd -lcrypt -lz +.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) +CFLAGS+=-DHAVE_KERBEROS -DHAVE_KRB_GET_ERR_TEXT +LDADD+= -lkrb -ldes +DPADD+= ${LIBKRB} ${LIBDES} +DISTRIBUTION= krb +# XXX do we want to mess with this? It's probably not really worth it for +# the public freebsd stuff, but others might want it. It's an optional +# feature anyway, the -x switch is needed to activate it. +CFLAGS+= -DENCRYPTION +.endif + .include