pkgsrc/mail/cyrus-imapd24/options.mk
obache 7522419860 Update cyrus-imapd24 to 2.4.17.
Changes to the Cyrus IMAP Server since 2.4.16

      * A bunch of cleanups and fixes to compiling
      * A bunch of sieve cleanups
      * Fixed bug #3691: unixhierarchysep is now obeyed when printing the
        mailbox name in unexpunge
      * Fixed bug #3718: crashes fetching message parts
      * Fixed bug #3719: pop3 seen update of final message in a mailbox
      * Improved documentation of "proxyservers" option
      * Fixed bug #3737: lost emails in XFER delivery race
      * Fixed bug #3725: inefficient statuscache use in some cases
      * Fixed bug #3484: use of sasl property types (compile fix)
      * Fixed bug #3754: failure to support binary append. This was found
        by a popular library switching to using binary appends
      * Fixed bug #3735: user prefix searching now works with fulldirhash
      * Fixed bug #3696: can no longer rename the same mailbox twice, which
        left things in a corrupted state if you caught the race.
      * Fixed bug #3715: using berkeley for mailboxes.db was very broken.
        It now works.
      * Fixed bug #3733: reconstruct with missing cyrus.index will use file
        timestamps for internaldate rather than setting it to NOW if
        internaldate_heuristic is set to standard
      * Fixed bug #3729: better documentation for xlist-* in 2.4.
      * Fixed bug #2717: fetches of individual messages or short ranges no
        longer need to parse over the entire index.
      * Fixed bug #3742: reconstruct can now fix multiple folders with the
        same uniqueid again (regression from 2.3) and also sync_client
        avoids a crash in that broken case.
      * Fixed bug #3711: detect the buggy /usr/bin/compile_et shipped on
        MacOS X and fall back to our bundled copy.
2012-12-16 02:55:46 +00:00

125 lines
3.5 KiB
Makefile

# $NetBSD: options.mk,v 1.7 2012/12/16 02:55:46 obache Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cyrus-imapd
PKG_SUPPORTED_OPTIONS= gssapi kerberos kerberos4 ldap pcre snmp
PKG_SUPPORTED_OPTIONS+= bdb mysql pgsql sqlite
PKG_SUGGESTED_OPTIONS= bdb pcre
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mkerberos)
. if empty(PKG_OPTIONS:Mgssapi)
PKG_OPTIONS+= gssapi
. endif
.endif
.if !empty(PKG_OPTIONS:Mkerberos4)
. if exists(/usr/include/kerberosIV/krb.h)
PKG_USE_KERBEROS= yes
CONFIGURE_ARGS+= --with-krb=/usr
. endif
.elif !empty(PKG_OPTIONS:Mgssapi)
. include "../../mk/krb5.buildlink3.mk"
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
.else
CONFIGURE_ARGS+= --without-krb
CONFIGURE_ARGS+= --disable-gssapi
CHECK_BUILTIN.heimdal:= yes
. include "../../security/heimdal/builtin.mk"
CHECK_BUILTIN.heimdal:= no
CHECK_BUILTIN.mit-krb5:= yes
. include "../../security/mit-krb5/builtin.mk"
CHECK_BUILTIN.mit-krb5:= no
. if ( !empty(USE_BUILTIN.heimdal:M[Yy][Ee][Ss]) || \
!empty(USE_BUILTIN.mit-krb5:M[Yy][Ee][Ss])) && \
exists(/usr/bin/compile_et) && exists(/usr/include/krb5/com_err.h)
CPPFLAGS+= -I/usr/include/krb5
CONFIGURE_ENV+= COMPILE_ET=/usr/bin/compile_et
. elif ${OPSYS} != "Linux" && \
exists(/usr/bin/compile_et) && exists(/usr/include/com_err.h)
CONFIGURE_ENV+= COMPILE_ET=/usr/bin/compile_et
. else
CONFIGURE_ARGS+= --with-com-err=yes
. endif
.endif
.if defined(CONFIGURE_ENV) && !empty(CONFIGURE_ENV:MCOMPILE_ET=*)
post-configure: generate-compile-et
.endif
generate-compile-et:
${RUN}cd ${WRKSRC}/com_err/et; \
if ${TEST} ! -f Makefile -a ! -f compile_et; then \
${SED} -e 's,@SED@,${SED},g' \
-e 's,@AWK@,${AWK},g' \
-e 's,@DIR@,${WRKSRC}/com_err/et,g' \
< compile_et.sh > compile_et; \
${CHMOD} +x compile_et; \
fi
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
PLIST.ldap= yes
.else
CONFIGURE_ARGS+= --without-ldap
.endif
.if !empty(PKG_OPTIONS:Msnmp)
. include "../../net/net-snmp/buildlink3.mk"
CONFIGURE_ARGS+= --with-snmp=${BUILDLINK_PREFIX.net-snmp}
USE_TOOLS+= perl:run
.else
CONFIGURE_ARGS+= --without-snmp
.endif
.if !empty(PKG_OPTIONS:Mzephyr)
. include "../../chat/zephyr/buildlink3.mk"
CONFIGURE_ARGS+= --with-zephyr=${BUILDLINK_PREFIX.zephyr}
.else
CONFIGURE_ARGS+= --without-zephyr
.endif
.if !empty(PKG_OPTIONS:Mbdb)
BDB_ACCEPTED= db3 db4 db5
. include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ARGS+= --with-bdb=${BDB_TYPE}
CONFIGURE_ARGS+= --with-bdb-incdir=${BDBBASE}/include/${BDB_TYPE}
CONFIGURE_ARGS+= --with-bdb-libdir=${BDBBASE}/lib
.else
CONFIGURE_ARGS+= --without-bdb
.endif
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX}
.else
CONFIGURE_ARGS+= --without-pgsql
.endif
.if !empty(PKG_OPTIONS:Msqlite)
. include "../../databases/sqlite3/buildlink3.mk"
CONFIGURE_ARGS+= --with-sqlite=${BUILDLINK_PREFIX.sqlite3}
.else
CONFIGURE_ARGS+= --without-sqlite
.endif
.if !empty(PKG_OPTIONS:Mpcre)
. include "../../devel/pcre/buildlink3.mk"
CONFIGURE_ARGS+= --enable-pcre
.else
CONFIGURE_ARGS+= --disable-pcre
.endif