pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/cyrus-imapd21 Convert to use krb5.buildlink3.mk.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bca313c98e84
branches:  trunk
changeset: 471820:bca313c98e84
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 31 10:23:04 2004 +0000

description:
Convert to use krb5.buildlink3.mk.

diffstat:

 mail/cyrus-imapd21/Makefile |  38 ++++++++++++++++++++++++++++----------
 1 files changed, 28 insertions(+), 10 deletions(-)

diffs (56 lines):

diff -r bc6283c951dd -r bca313c98e84 mail/cyrus-imapd21/Makefile
--- a/mail/cyrus-imapd21/Makefile       Wed Mar 31 10:17:36 2004 +0000
+++ b/mail/cyrus-imapd21/Makefile       Wed Mar 31 10:23:04 2004 +0000
@@ -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-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



Home | Main Index | Thread Index | Old Index