diff options
author | ume <ume@FreeBSD.org> | 2015-03-22 00:23:28 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2015-03-22 00:23:28 +0800 |
commit | 28a4470ab6fab99eb8eba4df07a1c9c704a8ee89 (patch) | |
tree | e7ddeb0411034c087f1cb66ce4c481d416ea2c00 /mail | |
parent | 153f4f3805b4706426a00ea0f114cbf46ca59b00 (diff) | |
download | freebsd-ports-gnome-28a4470ab6fab99eb8eba4df07a1c9c704a8ee89.tar.gz freebsd-ports-gnome-28a4470ab6fab99eb8eba4df07a1c9c704a8ee89.tar.zst freebsd-ports-gnome-28a4470ab6fab99eb8eba4df07a1c9c704a8ee89.zip |
Use USES=gssapi.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/cyrus-imapd25/Makefile | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/mail/cyrus-imapd25/Makefile b/mail/cyrus-imapd25/Makefile index 42b64422076c..1e3b74df46c6 100644 --- a/mail/cyrus-imapd25/Makefile +++ b/mail/cyrus-imapd25/Makefile @@ -89,6 +89,24 @@ SNMP_CONFIGURE_ON= --with-snmp=${LOCALBASE} 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 |