From ec026a58108bc93e0e32469a2b425d0dc98edc12 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 31 Mar 2004 10:23:04 +0000 Subject: Convert to use krb5.buildlink3.mk. --- mail/cyrus-imapd21/Makefile | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) (limited to 'mail/cyrus-imapd21/Makefile') diff --git a/mail/cyrus-imapd21/Makefile b/mail/cyrus-imapd21/Makefile index b2f83c0d401..116ceb7ec10 100644 --- a/mail/cyrus-imapd21/Makefile +++ b/mail/cyrus-imapd21/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2004/03/31 10:05:14 jlam Exp $ +# $NetBSD: Makefile,v 1.19 2004/03/31 10:23:04 jlam Exp $ DISTNAME= cyrus-imapd-2.1.15 PKGREVISION= 3 @@ -70,19 +70,37 @@ CONFIGURE_ARGS+= --with-subs-db=flat CONFIGURE_ARGS+= --with-tls-db=db3_nosync .endif -.if exists(/usr/include/krb5/com_err.h) -CPPFLAGS+= -I/usr/include/krb5 -CONFIGURE_ARGS+= --with-com_err= -.else -CONFIGURE_ARGS+= --with-com_err=yes -.endif - -.if defined(KERBEROS) && ${KERBEROS} == 4 -PKG_USE_KERBEROS= # defined +.if defined(KERBEROS) +. if (${KERBEROS} == 4) && exists(/usr/include/kerberosIV/krb.h) +PKG_USE_KERBEROS= yes CONFIGURE_ARGS+= --with-auth=krb +CONFIGURE_ARGS+= --with-krb=/usr +. else +. include "../../mk/krb5.buildlink3.mk" +CONFIGURE_ARGS+= --with-auth=unix +CONFIGURE_ARGS+= --enable-gssapi=${KRB5BASE} +CONFIGURE_ARGS+= --with-gss_impl=${GSSIMPL.${KRB5_TYPE}} +GSSIMPL.heimdal= heimdal +GSSIMPL.mit-krb5= mit +CONFIGURE_ENV+= COMPILE_ET=${KRB5BASE}/bin/compile_et +COMERRBASE= ${KRB5BASE} +. endif .else CONFIGURE_ARGS+= --with-auth=unix CONFIGURE_ARGS+= --without-krb +CONFIGURE_ARGS+= --disable-gssapi +.endif + +.if exists(/usr/bin/compile_et) +COMERRBASE?= /usr +.endif +.if defined(COMERRBASE) +. if exists(${COMERRBASE}/include/krb5/com_err.h) +CPPFLAGS+= -I${COMERRBASE}/include/krb5 +. endif +CONFIGURE_ENV+= COMPILE_ET=${COMERRBASE}/bin/compile_et +.else +CONFIGURE_ARGS+= --with-com-err=yes .endif HTMLDIR= ${PREFIX}/share/doc/html/cyrus-imapd -- cgit v1.2.3