pkgsrc/mail/dovecot/options.mk

139 lines
3.8 KiB
Makefile
Raw Normal View History

Update the Pigeonhole Sieve plugin to 0.1.16, bump dovecot's PKGREVISION. The main thing that this new release adds is full support for the spamtest, spamtestplus and virustest extensions. These extensions implement a uniform means of testing the content spam/virus status headers in mail messages: http://ietfreport.isoc.org/idref/rfc5235/ Not many people have tested these new features yet and therefore these are currently considered experimental. Test these thoroughly before you start using them! Documentation is available in share/doc/dovecot/spamtest-virustest.txt Changelog Sieve v0.1.16: * Finished implementation of spamtest, spamtestplus and virustest extensions. These are not enabled by default and need to be activated with the sieve_extensions setting. Documentation available in doc/spamtest-virustest.txt + Vacation extension: the from address of the generated reply is now by default equal to whatever known recipient alias matched the headers of the message. If it is one of the aliases specified with :addresses, it is used in stead of the envelope recipient address that was used before. + Restructured and optimized the lexical scanner. + Added --with-docs configure option to allow disabling installation of documentation. - Accidentally omitted 'extern' in two declarations of global variables in header files, causing compile failures on certain systems. - Deprecated imapflags extension: fixed implicit assignment of flags. Turns out this never really worked, but the effect of this bug was obscured by the removeflag bug fixed in the previous release. - Fixed various memset argument mixups in enotify extension. This caused warnings on certain systems, but luckily no adverse effects at runtime.
2010-04-30 12:43:26 +02:00
# $NetBSD: options.mk,v 1.25 2010/04/30 10:43:26 ghen Exp $
2004-08-01 09:04:45 +02:00
PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot
Update to Dovecot 1.2.8, imported from pkgsrc-wip and based on work of Edgar Fuß <ef@math.uni-bonn.de>. The package now contains Stephan Bosch' new Dovecot Sieve plugin as a pkgsrc option (instead of the old CMU Sieve plugin that was a separate package), as well as the ManageSieve extension. The dovecot-sieve package will be removed. Upgrading from Dovecot 1.1.x may require changes to your configuration file, see this webpage for more information: http://wiki.dovecot.org/Upgrading/1.2 Major changes since Dovecot 1.1: * When creating files or directories to mailboxes, Dovecot now uses the mailbox directory's permissions and GID for them. Previous versions simply used 0600 mode always. For backwards compatibility dovecot-shared file's permissions still override these with Maildir. * SQL dictionary (quota) configuration file is different than in v1.1. See doc/dovecot-dict-sql-example.conf for the new format. * deliver -m: Mailbox name is now assumed to be in UTF-8 format, not modified-UTF7. Stephan Bosch's new Sieve implementation also assumes UTF-8 format in fileinto parameters. + Full support for shared mailboxes and IMAP ACL extension. The code is mainly from Sascha Wilde and Bernhard Herzog. + IMAP: Added support for extensions: CONDSTORE, QRESYNC, ESEARCH, ESORT, SEARCHRES, WITHIN, ID and CONTEXT=SEARCH. + SEARCH supports INTHREAD search key, but the rest of the INTHREAD draft isn't implemented yet so it's not advertised in capability. + THREAD REFS algorithm where threads are sorted by their latest message instead of the thread root message. There is also no base subject merging. + IMAP: Implemented imap-response-codes draft. + Thread indexes for optimizing IMAP THREAD command and INTHREAD search key. + Added userdb checkpassword (by Sascha Wilde) + Virtual mailboxes: http://wiki.dovecot.org/Plugins/Virtual + Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate + Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
2009-12-11 21:52:21 +01:00
PKG_SUPPORTED_OPTIONS= dovecot-sieve dovecot-managesieve gssapi
PKG_SUPPORTED_OPTIONS+= kqueue ldap mysql pam pgsql sqlite
PKG_OPTIONS_OPTIONAL_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_SUGGESTED_OPTIONS= ssl
2008-01-03 15:06:20 +01:00
.if defined(PKG_HAVE_KQUEUE)
PKG_SUGGESTED_OPTIONS+= kqueue
.endif
2004-08-01 09:04:45 +02:00
.include "../../mk/bsd.options.mk"
2004-08-05 04:22:19 +02:00
###
### Build with OpenSSL or GNU TLS as the underlying crypto library.
2004-08-05 04:22:19 +02:00
###
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-ssl=openssl
CONFIGURE_ENV+= SSL_CFLAGS="-I${BUILDLINK_PREFIX.openssl}/include"
CONFIGURE_ENV+= SSL_LIBS="-lssl -lcrypto"
Update to Dovecot 1.2.8, imported from pkgsrc-wip and based on work of Edgar Fuß <ef@math.uni-bonn.de>. The package now contains Stephan Bosch' new Dovecot Sieve plugin as a pkgsrc option (instead of the old CMU Sieve plugin that was a separate package), as well as the ManageSieve extension. The dovecot-sieve package will be removed. Upgrading from Dovecot 1.1.x may require changes to your configuration file, see this webpage for more information: http://wiki.dovecot.org/Upgrading/1.2 Major changes since Dovecot 1.1: * When creating files or directories to mailboxes, Dovecot now uses the mailbox directory's permissions and GID for them. Previous versions simply used 0600 mode always. For backwards compatibility dovecot-shared file's permissions still override these with Maildir. * SQL dictionary (quota) configuration file is different than in v1.1. See doc/dovecot-dict-sql-example.conf for the new format. * deliver -m: Mailbox name is now assumed to be in UTF-8 format, not modified-UTF7. Stephan Bosch's new Sieve implementation also assumes UTF-8 format in fileinto parameters. + Full support for shared mailboxes and IMAP ACL extension. The code is mainly from Sascha Wilde and Bernhard Herzog. + IMAP: Added support for extensions: CONDSTORE, QRESYNC, ESEARCH, ESORT, SEARCHRES, WITHIN, ID and CONTEXT=SEARCH. + SEARCH supports INTHREAD search key, but the rest of the INTHREAD draft isn't implemented yet so it's not advertised in capability. + THREAD REFS algorithm where threads are sorted by their latest message instead of the thread root message. There is also no base subject merging. + IMAP: Implemented imap-response-codes draft. + Thread indexes for optimizing IMAP THREAD command and INTHREAD search key. + Added userdb checkpassword (by Sascha Wilde) + Virtual mailboxes: http://wiki.dovecot.org/Plugins/Virtual + Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate + Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
2009-12-11 21:52:21 +01:00
BUILDLINK_API_DEPENDS.openssl=openssl>=0.9.8a
2004-08-01 09:04:45 +02:00
. include "../../security/openssl/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mgnutls)
CONFIGURE_ARGS+= --with-ssl=gnutls
. include "../../security/gnutls/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-ssl
2004-08-01 09:04:45 +02:00
.endif
2004-08-05 04:22:19 +02:00
###
### MySQL support.
###
2004-08-01 09:04:45 +02:00
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql
. include "../../mk/mysql.buildlink3.mk"
2004-08-01 09:04:45 +02:00
.endif
2004-08-05 04:22:19 +02:00
###
### PostgreSQL support.
###
2004-08-01 09:04:45 +02:00
.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --with-pgsql
CPPFLAGS+= -I${BUILDLINK_DIR}/include/pgsql
. include "../../mk/pgsql.buildlink3.mk"
.endif
2004-08-05 04:22:19 +02:00
###
### LDAP directory support.
###
2004-08-01 09:04:45 +02:00
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= --with-ldap
. include "../../databases/openldap-client/buildlink3.mk"
2004-08-01 09:04:45 +02:00
.endif
###
### PAM support.
###
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --with-pam
. include "../../mk/pam.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-pam
.endif
- Update mail/dovecot to 1.0beta2. The 1.0 betas are very stable, and recommended by the Dovecot author (the 0.99.x series are deprecated). Major changes: v1.0.beta2 2006-01-22 Timo Sirainen <tss@iki.fi> + Added SQLite support. Patch by Jakob Hirsch. + Added auth_debug_passwords setting. If it's not enabled, hide all password strings from logs. + Added mail_cache_min_mail_count and mbox_min_index_size settings which can be used to make Dovecot do less disk writes in small mailboxes where they don't benefit that much. + Added --build-ssl-parameters parameter to dovecot binary - SSL parameters were being regenerated every 10 minutes, although not with all systems. - Fixed dovecot-auth crashing at startup. Happened only with some specific compilers. - base_dir was supposed to be set world-readable, not world-writable v1.0.beta1 2006-01-16 Timo Sirainen <tss@iki.fi> * Almost a complete rewrite since 0.99.x, but some of the major changes are: + Index file code rewritten to do less disk I/O, wait locks less and in generate be smarter. They also support being in clustered filesystems and NFS support is mostly working also. + Mail caching is smarter. Only the data that client requests is cached. Before Dovecot opened and cached all mails when mailbox was opened the first time, which was slow. + Mbox handling code rewritten to be much faster, safer and correct + New authentication mechanisms: APOP, GSSAPI, LOGIN, NTLM and RPA. + LDAP supports authentication binds + Authentication server can cache password database lookups + Support for multiple authentication databases + Namespace configuration + Dovecot works with shared - Add an option for sqlite support. - Take over maintainership. All suggested (and ok'ed) by xtraeme.
2006-02-06 16:54:37 +01:00
###
### SQLite support.
###
.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite
. include "../../databases/sqlite3/buildlink3.mk"
.endif
###
### kqueue support.
###
.if !empty(PKG_OPTIONS:Mkqueue)
CONFIGURE_ARGS+= --with-ioloop=kqueue
CONFIGURE_ARGS+= --with-notify=kqueue
.else
# use the defaults
.endif
###
### GSSAPI support.
###
.if !empty(PKG_OPTIONS:Mgssapi)
CONFIGURE_ARGS+= --with-gssapi
. include "../../mk/krb5.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
Update to Dovecot 1.2.8, imported from pkgsrc-wip and based on work of Edgar Fuß <ef@math.uni-bonn.de>. The package now contains Stephan Bosch' new Dovecot Sieve plugin as a pkgsrc option (instead of the old CMU Sieve plugin that was a separate package), as well as the ManageSieve extension. The dovecot-sieve package will be removed. Upgrading from Dovecot 1.1.x may require changes to your configuration file, see this webpage for more information: http://wiki.dovecot.org/Upgrading/1.2 Major changes since Dovecot 1.1: * When creating files or directories to mailboxes, Dovecot now uses the mailbox directory's permissions and GID for them. Previous versions simply used 0600 mode always. For backwards compatibility dovecot-shared file's permissions still override these with Maildir. * SQL dictionary (quota) configuration file is different than in v1.1. See doc/dovecot-dict-sql-example.conf for the new format. * deliver -m: Mailbox name is now assumed to be in UTF-8 format, not modified-UTF7. Stephan Bosch's new Sieve implementation also assumes UTF-8 format in fileinto parameters. + Full support for shared mailboxes and IMAP ACL extension. The code is mainly from Sascha Wilde and Bernhard Herzog. + IMAP: Added support for extensions: CONDSTORE, QRESYNC, ESEARCH, ESORT, SEARCHRES, WITHIN, ID and CONTEXT=SEARCH. + SEARCH supports INTHREAD search key, but the rest of the INTHREAD draft isn't implemented yet so it's not advertised in capability. + THREAD REFS algorithm where threads are sorted by their latest message instead of the thread root message. There is also no base subject merging. + IMAP: Implemented imap-response-codes draft. + Thread indexes for optimizing IMAP THREAD command and INTHREAD search key. + Added userdb checkpassword (by Sascha Wilde) + Virtual mailboxes: http://wiki.dovecot.org/Plugins/Virtual + Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate + Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
2009-12-11 21:52:21 +01:00
###
### Sieve and the ManageSieve patch
###
.if !empty(PKG_OPTIONS:Mdovecot-sieve)
# ManageSieve needs Sieve to build.
# We can't simply use CONFIGURE_DIRS+= and BUILD_DIRS+=
# because dovecot must be built before sieve can be configured
# and sieve must be built before managesieve can be configured/built.
# So use post-build in Makefile. Sigh.
#
# Default so we can use += below
DISTFILES= ${DEFAULT_DISTFILES}
PLIST_SRC= ${PLIST_SRC_DFLT}
INSTALL_DIRS= ${WRKSRC}
# sieve (must be built after dovecot, before managesieve)
DISTFILES+= dovecot-${DOVECOT_VERSION}-sieve-${SIEVE_VERSION}.tar.gz
SITES.dovecot-${DOVECOT_VERSION}-sieve-${SIEVE_VERSION}.tar.gz=\
${DOVECOT_SIEVE_SITES}
WRKSRC.sieve= ${WRKDIR}/dovecot-${DOVECOT_VERSION}-sieve-${SIEVE_VERSION}
CONFIGURE_ARGS.sieve= --with-dovecot=${WRKSRC}
Update the Pigeonhole Sieve plugin to 0.1.16, bump dovecot's PKGREVISION. The main thing that this new release adds is full support for the spamtest, spamtestplus and virustest extensions. These extensions implement a uniform means of testing the content spam/virus status headers in mail messages: http://ietfreport.isoc.org/idref/rfc5235/ Not many people have tested these new features yet and therefore these are currently considered experimental. Test these thoroughly before you start using them! Documentation is available in share/doc/dovecot/spamtest-virustest.txt Changelog Sieve v0.1.16: * Finished implementation of spamtest, spamtestplus and virustest extensions. These are not enabled by default and need to be activated with the sieve_extensions setting. Documentation available in doc/spamtest-virustest.txt + Vacation extension: the from address of the generated reply is now by default equal to whatever known recipient alias matched the headers of the message. If it is one of the aliases specified with :addresses, it is used in stead of the envelope recipient address that was used before. + Restructured and optimized the lexical scanner. + Added --with-docs configure option to allow disabling installation of documentation. - Accidentally omitted 'extern' in two declarations of global variables in header files, causing compile failures on certain systems. - Deprecated imapflags extension: fixed implicit assignment of flags. Turns out this never really worked, but the effect of this bug was obscured by the removeflag bug fixed in the previous release. - Fixed various memset argument mixups in enotify extension. This caused warnings on certain systems, but luckily no adverse effects at runtime.
2010-04-30 12:43:26 +02:00
CONFIGURE_ARGS.sieve+= --docdir=${PREFIX}/share/doc
Update to Dovecot 1.2.8, imported from pkgsrc-wip and based on work of Edgar Fuß <ef@math.uni-bonn.de>. The package now contains Stephan Bosch' new Dovecot Sieve plugin as a pkgsrc option (instead of the old CMU Sieve plugin that was a separate package), as well as the ManageSieve extension. The dovecot-sieve package will be removed. Upgrading from Dovecot 1.1.x may require changes to your configuration file, see this webpage for more information: http://wiki.dovecot.org/Upgrading/1.2 Major changes since Dovecot 1.1: * When creating files or directories to mailboxes, Dovecot now uses the mailbox directory's permissions and GID for them. Previous versions simply used 0600 mode always. For backwards compatibility dovecot-shared file's permissions still override these with Maildir. * SQL dictionary (quota) configuration file is different than in v1.1. See doc/dovecot-dict-sql-example.conf for the new format. * deliver -m: Mailbox name is now assumed to be in UTF-8 format, not modified-UTF7. Stephan Bosch's new Sieve implementation also assumes UTF-8 format in fileinto parameters. + Full support for shared mailboxes and IMAP ACL extension. The code is mainly from Sascha Wilde and Bernhard Herzog. + IMAP: Added support for extensions: CONDSTORE, QRESYNC, ESEARCH, ESORT, SEARCHRES, WITHIN, ID and CONTEXT=SEARCH. + SEARCH supports INTHREAD search key, but the rest of the INTHREAD draft isn't implemented yet so it's not advertised in capability. + THREAD REFS algorithm where threads are sorted by their latest message instead of the thread root message. There is also no base subject merging. + IMAP: Implemented imap-response-codes draft. + Thread indexes for optimizing IMAP THREAD command and INTHREAD search key. + Added userdb checkpassword (by Sascha Wilde) + Virtual mailboxes: http://wiki.dovecot.org/Plugins/Virtual + Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate + Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
2009-12-11 21:52:21 +01:00
INSTALL_DIRS+= ${WRKSRC.sieve}
# Augment PLIST for sieve
PLIST_SRC+= ${PKGDIR}/PLIST.sieve
.if !empty(PKG_OPTIONS:Mdovecot-managesieve)
# The managesieve patch to dovecot
PATCHFILES+= ${MANAGESIEVE_PATCH}
# managesieve itself (built after both dovecot and sieve)
DISTFILES+= dovecot-${DOVECOT_VERSION}-managesieve-${MANAGESIEVE_VERSION}.tar.gz
SITES.dovecot-${DOVECOT_VERSION}-managesieve-${MANAGESIEVE_VERSION}.tar.gz=\
${DOVECOT_SIEVE_SITES}
WRKSRC.managesieve= ${WRKDIR}/dovecot-${DOVECOT_VERSION}-managesieve-${MANAGESIEVE_VERSION}
CONFIGURE_ARGS.managesieve=\
--with-dovecot=${WRKSRC} --with-dovecot-sieve=${WRKSRC.sieve}
INSTALL_DIRS+= ${WRKSRC.managesieve}
# Augment PLIST for managesieve
PLIST_SRC+= ${PKGDIR}/PLIST.managesieve
.endif # dovecot-managesieve
.endif # dovecot-sieve
.if !empty(PKG_OPTIONS:Mdovecot-managesieve) && empty(PKG_OPTIONS:Mdovecot-sieve)
PKG_FAIL_REASON= "You cannot enable dovecot-managesieve without dovecot-sieve."
.endif