Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2015 16:23:29 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381797 - head/mail/cyrus-imapd25
Message-ID:  <201503211623.t2LGNT4n092065@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Sat Mar 21 16:23:28 2015
New Revision: 381797
URL: https://svnweb.freebsd.org/changeset/ports/381797
QAT: https://qat.redports.org/buildarchive/r381797/

Log:
  Use USES=gssapi.

Modified:
  head/mail/cyrus-imapd25/Makefile

Modified: head/mail/cyrus-imapd25/Makefile
==============================================================================
--- head/mail/cyrus-imapd25/Makefile	Sat Mar 21 14:38:00 2015	(r381796)
+++ head/mail/cyrus-imapd25/Makefile	Sat Mar 21 16:23:28 2015	(r381797)
@@ -89,6 +89,24 @@ SNMP_CONFIGURE_ON=	--with-snmp=${LOCALBA
 SNMP_CONFIGURE_OFF=	--with-snmp=no
 SQLITE_CONFIGURE_ON=	--with-sqlite=${LOCALBASE}
 
+OPTIONS_RADIO=			GSSAPI
+OPTIONS_RADIO_GSSAPI=		GSSAPI_HEIMDAL GSSAPI_MIT
+.if exists(/usr/lib/libkrb5.a)
+OPTIONS_RADIO_GSSAPI+=		GSSAPI_BASE
+OPTIONS_DEFAULT+=		GSSAPI_BASE
+.endif
+GSSAPI_BASE_DESC=		Use Heimdal in base
+GSSAPI_BASE_USES=		gssapi
+GSSAPI_BASE_CONFIGURE_ON=	--enable-gssapi --with-gss_impl=heimdal
+GSSAPI_HEIMDAL_DESC=		Use Heimdal from ports
+GSSAPI_HEIMDAL_USES=		gssapi:heimdal,flags
+GSSAPI_HEIMDAL_CONFIGURE_ON=	--enable-gssapi="${GSSAPIBASEDIR}" \
+				--with-gss_impl=heimdal
+GSSAPI_MIT_DESC=		Use MIT Kerberos V5
+GSSAPI_MIT_USES=		gssapi:mit
+GSSAPI_MIT_CONFIGURE_ON=	--enable-gssapi="${GSSAPIBASEDIR}" \
+				--with-gss_impl=mit
+
 .include <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MBDB}
@@ -114,16 +132,17 @@ IGNORE=		DRAC is not available
 USE_SQLITE=yes
 .endif
 
+.if !${PORT_OPTIONS:MGSSAPI_BASE} && !${PORT_OPTIONS:MGSSAPI_HEIMDAL} && \
+    !${PORT_OPTIONS:MGSSAPI_MIT}
+CONFIGURE_ARGS+=--disable-gssapi
+.endif
+
 .if ${OSVERSION} >= 900022
 PLIST_SUB+=	MANCONF=""
 .else
 PLIST_SUB+=	MANCONF="@comment "
 .endif
 
-.if !exists(/usr/lib/libkrb5.a)
-CONFIGURE_ARGS+=--disable-gssapi
-.endif
-
 CYRUS_USER?=	cyrus
 CYRUS_GROUP?=	cyrus
 
@@ -185,7 +204,7 @@ post-patch:
 	@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" \
 			  -e "s|/usr/sieve|/var/imap/sieve|g" \
 		${WRKSRC}/tools/masssievec
-	${REINPLACE_CMD} \
+	@${REINPLACE_CMD} \
 		-e 's|$$(libdir)/\(pkgconfig\)|${PREFIX}/libdata/\1|g' \
 		-e 's|$$(mandir)/\(man[8]\)|${PREFIX}/cyrus/man/\1|g' \
 		${WRKSRC}/Makefile.in



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503211623.t2LGNT4n092065>