On Fri, Jul 17, 2009 at 12:40:40PM +0200, Pierre-Emmanuel André wrote:
> Hi,
>
> I updated Dovecot to the latest version (1.2.1), added support for
> Managesieve and removed the old cmusieve plugin (now it's the dovecot native
> sieve plugin).
>
> You must be very carefull if you want to try this update !
> Important changes to know:
>
> 1) Config file changes:
> Read http://wiki.dovecot.org/Upgrading/1.2
>
> 2) The new sieve plugin
> Please read http://wiki.dovecot.org/LDA/Sieve/Dovecot#configuration
> and especially
> http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve
> Be very carefull with the old sieve extensions !
> For the notify extension, you must edit your sieve scripts (sed, perl,
> whatever are your
> friends).
> For imapflags, i added the line sieve_extensions = +imapflags in the patch
> file, so you
> just have to uncomment this line in your dovecot.conf.
>
> 3) Managesieve
> It's not enable by default. You must add "managesieve" in you dovecot.conf on
> the
> line protocols =
>
>
> Tested on @amd64 with sieve scripts.
> Diff available here too: http://openbsd.raveland.org/ports/dovecot-1.2.1.diff
>
> (Note: patch -E is required)
>
Updated diff for Dovecot 1.2.4.
As usual, tested on @amd64.
Regards,
--
Pierre-Emmanuel André <pea at raveland.org>
GPG key: 0x7AE329DC
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/dovecot/Makefile,v
retrieving revision 1.124
diff -u -p -r1.124 Makefile
--- Makefile 1 Sep 2009 17:28:50 -0000 1.124
+++ Makefile 7 Sep 2009 15:12:10 -0000
@@ -5,21 +5,26 @@ SHARED_ONLY= Yes
COMMENT-server= compact IMAP/POP3 server
COMMENT-sieve= Sieve mail filtering for Dovecot
-V_MAJOR= 1.1
-V_DOVECOT= 1.1.18
-V_SIEVE= 1.1.6
+V_MAJOR= 1.2
+V_DOVECOT= 1.2.4
+V_SIEVE= 0.1.12
+V_MANAGESIEVE= 0.11.9
PKGNAME= dovecot-${V_DOVECOT}
-PKGNAME-server= dovecot-${V_DOVECOT}p0
-FULLPKGNAME-sieve= dovecot-sieve-${V_SIEVE}p9
+PKGNAME-server= dovecot-${V_DOVECOT}
+FULLPKGNAME-sieve= dovecot-sieve-${V_SIEVE}
DISTNAME= dovecot-${V_DOVECOT}
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
-MASTER_SITES0= ${HOMEPAGE}releases/sieve/
+MASTER_SITES0= http://www.rename-it.nl/dovecot/${V_MAJOR}/
-DISTFILES= dovecot-${V_DOVECOT}.tar.gz \
- dovecot-sieve-${V_SIEVE}.tar.gz:0
+DISTFILES= dovecot-${V_DOVECOT}.tar.gz \
+ dovecot-${V_MAJOR}-sieve-${V_SIEVE}.tar.gz:0 \
+
dovecot-${V_MAJOR}-managesieve-${V_MANAGESIEVE}.tar.gz:0 \
+ ${DIST_MANAGESIEVE}:0
+
+DIST_MANAGESIEVE=
dovecot-${V_DOVECOT}-managesieve-${V_MANAGESIEVE}.diff.gz
HOMEPAGE= http://www.dovecot.org/
@@ -31,8 +36,8 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
-WANTLIB-server= c crypto gssapi krb5 rpcsvc ssl z
-WANTLIB-sieve= c
+WANTLIB-server= c crypto gssapi krb5 ssl z
+WANTLIB-sieve= c crypto ssl
MODULES= converters/libiconv
LIB_DEPENDS+= bz2::archivers/bzip2
@@ -47,7 +52,7 @@ FLAVOR?=
CFLAGS+= -I/usr/include/kerberosV -I${LOCALBASE}/include
USE_LIBTOOL= Yes
-AUTOCONF_VERSION= 2.61
+AUTOCONF_VERSION= 2.62
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= --localstatedir=/var \
--with-gssapi \
@@ -58,10 +63,15 @@ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/
.if !${FLAVOR:L:Mno_sieve}
MULTI_PACKAGES+= -sieve
-SIEVE_DIR= ${WRKDIR}/dovecot-sieve-${V_SIEVE}
+SIEVE_DIR= ${WRKDIR}/dovecot-${V_MAJOR}-sieve-${V_SIEVE}
+MANAGESIEVE_DIR=
${WRKDIR}/dovecot-${V_MAJOR}-managesieve-${V_MANAGESIEVE}
AUTOCONF_DIR+= ${WRKSRC} ${SIEVE_DIR}
+AUTOCONF_DIR+= ${WRKSRC} ${MANAGESIEVE_DIR}
RUN_DEPENDS-sieve= ::${BUILD_PKGPATH}
LIB_DEPENDS-sieve= ${MODLIBICONV_LIB_DEPENDS}
+PATCH_LIST= patch-* managesieve-patch-*
+.else
+PATCH_LIST= patch-* nosieve-patch-*
.endif
.if ${FLAVOR:L:Mbdb}
@@ -92,11 +102,19 @@ CONFIGURE_ARGS+= --with-sqlite
LIB_DEPENDS+= sqlite3::databases/sqlite3
.endif
+
.if !${FLAVOR:L:Mno_sieve}
+pre-patch:
+ cd ${WRKSRC} && \
+ gunzip -c ${DISTDIR}/${DIST_MANAGESIEVE} | patch -p1 2> /dev/null
+
post-configure:
(cd ${WRKSRC}; ${MAKE_PROGRAM} dovecot-config)
(cd ${SIEVE_DIR}; ${SETENV} ${CONFIGURE_ENV} \
./configure --with-dovecot=${WRKSRC})
+ (cd ${MANAGESIEVE_DIR}; ${SETENV} ${CONFIGURE_ENV} \
+ ./configure --with-dovecot=${WRKSRC} \
+ --with-dovecot-sieve=${SIEVE_DIR})
.endif
pre-build:
@@ -105,6 +123,7 @@ pre-build:
.if !${FLAVOR:L:Mno_sieve}
post-build:
(cd ${SIEVE_DIR}; ${MAKE_PROGRAM} ${MAKE_FLAGS})
+ (cd ${MANAGESIEVE_DIR}; ${MAKE_PROGRAM} ${MAKE_FLAGS})
.endif
post-install:
@@ -112,16 +131,21 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
${WRKSRC}/doc/dovecot-sql-example.conf \
${WRKSRC}/doc/dovecot-ldap-example.conf \
+ ${WRKSRC}/doc/dovecot-db-example.conf \
${WRKSRC}/dovecot-example.conf \
+ ${WRKSRC}/doc/dovecot-dict-sql-example.conf \
${PREFIX}/share/examples/dovecot
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
${PREFIX}/sbin/dovecot-mkcert.sh
.if !${FLAVOR:L:Mno_sieve}
- cd ${SIEVE_DIR}/src/libsieve && ${INSTALL_PROGRAM} {sievec,sieved} \
- ${PREFIX}/libexec/dovecot
- ${INSTALL_DATA} \
- ${SIEVE_DIR}/src/.libs/lib90_cmusieve_plugin.{a,la,so} \
- ${PREFIX}/lib/dovecot/lda
+ cd ${SIEVE_DIR} && env -i ${MAKE_ENV} \
+ PREFIX=${WRKINST}${PREFIX} ${DESTDIRNAME}=${WRKINST} \
+ TRUEPREFIX=${PREFIX} \
+ ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
+ cd ${MANAGESIEVE_DIR} && env -i ${MAKE_ENV} \
+ PREFIX=${WRKINST}${PREFIX} ${DESTDIRNAME}=${WRKINST} \
+ TRUEPREFIX=${PREFIX} \
+ ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/mail/dovecot/distinfo,v
retrieving revision 1.76
diff -u -p -r1.76 distinfo
--- distinfo 27 Jul 2009 23:32:17 -0000 1.76
+++ distinfo 7 Sep 2009 15:12:10 -0000
@@ -1,10 +1,20 @@
-MD5 (dovecot-1.1.18.tar.gz) = swveUHcRAMYOLV1NTI4s6w==
-MD5 (dovecot-sieve-1.1.6.tar.gz) = es89mJdKUVuGit29tzBU6w==
-RMD160 (dovecot-1.1.18.tar.gz) = p8dSfAdxv1NwnesNzWrNASp4oeo=
-RMD160 (dovecot-sieve-1.1.6.tar.gz) = 7W913B/9sOxR7PN4aqcQkoUSifU=
-SHA1 (dovecot-1.1.18.tar.gz) = Uks39+v824/P5U10tJMYVjFW13U=
-SHA1 (dovecot-sieve-1.1.6.tar.gz) = wQnuirHH/+znlA+y43EEuveERA4=
-SHA256 (dovecot-1.1.18.tar.gz) = R/LnFjP/6qQ9UARx9N1U1PGwi7+IMxVXPArb4iCM6Ew=
-SHA256 (dovecot-sieve-1.1.6.tar.gz) =
ohMKjn1zK7NBqWqWoktN22aDThFlc6EMF+aDRP5xKzY=
-SIZE (dovecot-1.1.18.tar.gz) = 2387081
-SIZE (dovecot-sieve-1.1.6.tar.gz) = 470071
+MD5 (dovecot-1.2-managesieve-0.11.9.tar.gz) = kj1JZeCzV9tJPzsssQbY1w==
+MD5 (dovecot-1.2-sieve-0.1.12.tar.gz) = h0nyZgbEVj8GdrrMROicog==
+MD5 (dovecot-1.2.4-managesieve-0.11.9.diff.gz) = bdLvLUaztjI4I3RVVYoU4Q==
+MD5 (dovecot-1.2.4.tar.gz) = PlcX0T49azLT9LgJ3zl9vw==
+RMD160 (dovecot-1.2-managesieve-0.11.9.tar.gz) = G4VUC7CzLjCm+OeAtpIsTozjuyM=
+RMD160 (dovecot-1.2-sieve-0.1.12.tar.gz) = ku1YXwmOuqN77Oyla92RLUfn8WI=
+RMD160 (dovecot-1.2.4-managesieve-0.11.9.diff.gz) =
Jdb8NIaUlTEokc7OWmB5EiI4Jag=
+RMD160 (dovecot-1.2.4.tar.gz) = 6hmzVD7YxPAS48/FrPm8J2fra4M=
+SHA1 (dovecot-1.2-managesieve-0.11.9.tar.gz) = Y/PGz2YVWGxbS70v7/yfDHdO3Lc=
+SHA1 (dovecot-1.2-sieve-0.1.12.tar.gz) = zRQvBRtFtYzBYiIvnM3BLh9pw0M=
+SHA1 (dovecot-1.2.4-managesieve-0.11.9.diff.gz) = a/DjqW0I4tjdIiQUzEkDH88HIlQ=
+SHA1 (dovecot-1.2.4.tar.gz) = N6mUfNhsCae1WC8IXGp16Sgzbx4=
+SHA256 (dovecot-1.2-managesieve-0.11.9.tar.gz) =
mv+H+uGbL8DhH0t4wLFBXhFBujkwV5xGy/kS4M2mUv8=
+SHA256 (dovecot-1.2-sieve-0.1.12.tar.gz) =
3CgYL8C+2yYiqFGjOh2rTIUaqhBsFFUPeCo7ir3jZRQ=
+SHA256 (dovecot-1.2.4-managesieve-0.11.9.diff.gz) =
f6196TOuVpiud1dO8mVYfnEjJzcRY0g1KigmWMdz3no=
+SHA256 (dovecot-1.2.4.tar.gz) = 32QG+W9cBA9GVs51JsRbLzM4UceJXou6uSjbAvpqw8o=
+SIZE (dovecot-1.2-managesieve-0.11.9.tar.gz) = 396242
+SIZE (dovecot-1.2-sieve-0.1.12.tar.gz) = 964938
+SIZE (dovecot-1.2.4-managesieve-0.11.9.diff.gz) = 6422
+SIZE (dovecot-1.2.4.tar.gz) = 2637375
Index: patches/managesieve-patch-dovecot-example_conf
===================================================================
RCS file: patches/managesieve-patch-dovecot-example_conf
diff -N patches/managesieve-patch-dovecot-example_conf
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/managesieve-patch-dovecot-example_conf 7 Sep 2009 15:12:10
-0000
@@ -0,0 +1,246 @@
+$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
+--- dovecot-example.conf.orig Wed Jul 15 11:15:27 2009
++++ dovecot-example.conf Wed Jul 15 11:18:53 2009
+@@ -12,12 +12,11 @@
+ # Default values are shown for each setting, it's not required to uncomment
+ # those. These are exceptions to this though: No sections (e.g. namespace {})
+ # or plugin settings are added by default, they're listed only as examples.
+-# Paths are also just examples with the real defaults being based on configure
+-# options. The paths listed here are for configure --prefix=/usr
+-# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
+
++# *** NOTE *** Some values HAVE been changed for OpenBSD use.
++
+ # Base directory where to store runtime data.
+-#base_dir = /var/run/dovecot/
++base_dir = /var/dovecot/
+
+ # Protocols we want to be serving: imap imaps pop3 pop3s managesieve
+ # If you only want to use dovecot-auth, you can set this to "none".
+@@ -43,13 +42,13 @@
+ # listen = *:12000
+ # ..
+ # }
+-#listen = *
++listen = *, [::]
+
+ # Disable LOGIN command and all other plaintext authentications unless
+ # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
+ # matches the local IP (ie. you're connecting from the same computer), the
+ # connection is considered secure and plaintext authentication is allowed.
+-#disable_plaintext_auth = yes
++disable_plaintext_auth = yes
+
+ # Should all IMAP and POP3 processes be killed when Dovecot master process
+ # shuts down. Setting this to "no" means that Dovecot can be upgraded without
+@@ -96,7 +95,7 @@
+ # dropping root privileges, so keep the key file unreadable by anyone but
+ # root. Included doc/mkcert.sh can be used to easily generate self-signed
+ # certificate, just make sure to update the domains in dovecot-openssl.cnf
+-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
++ssl_cert_file = /etc/ssl/dovecotcert.pem
+ #ssl_key_file = /etc/ssl/private/dovecot.pem
+
+ # If key file is password protected, give the password here. Alternatively
+@@ -140,7 +139,7 @@
+ # which login needs to be able to connect to. The sockets are created when
+ # running as root, so you don't have to worry about permissions. Note that
+ # everything in this directory is deleted when Dovecot is started.
+-#login_dir = /var/run/dovecot/login
++login_dir = /var/dovecot/login
+
+ # chroot login process to the login_dir. Only reason not to do this is if you
+ # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
+@@ -150,7 +149,7 @@
+ # and don't use it anywhere else. The user must also belong to a group where
+ # only it has access, it's used to control access for authentication process.
+ # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
+-#login_user = dovecot
++login_user = _dovecot
+
+ # Set max. process size in megabytes. If you don't use
+ # login_process_per_connection you might need to grow this.
+@@ -340,8 +339,9 @@
+ #mail_log_max_lines_per_sec = 10
+
+ # Don't use mmap() at all. This is required if you store indexes to shared
+-# filesystems (NFS or clustered filesystem).
+-#mmap_disable = no
++# filesystems (NFS or clustered filesystem) or for some operating systems
++# which use a separate cache for mmap, such as OpenBSD.
++mmap_disable = yes
+
+ # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
+ # since version 3, so this should be safe to use nowadays by default.
+@@ -486,7 +486,7 @@
+ # locking methods as well. Some operating systems don't allow using some of
+ # them simultaneously.
+ #mbox_read_locks = fcntl
+-#mbox_write_locks = dotlock fcntl
++mbox_write_locks = fcntl
+
+ # Maximum time in seconds to wait for lock (all of them) before aborting.
+ #mbox_lock_timeout = 300
+@@ -541,20 +541,20 @@
+
+ protocol imap {
+ # Login executable location.
+- #login_executable = /usr/libexec/dovecot/imap-login
++ #login_executable = ${PREFIX}/libexec/dovecot/imap-login
+
+ # IMAP executable location. Changing this allows you to execute other
+ # binaries before the imap process is executed.
+ #
+ # This would write rawlogs into user's ~/dovecot.rawlog/, if it exists:
+- # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
++ # mail_executable = ${PREFIX}/libexec/dovecot/rawlog
${PREFIX}/libexec/dovecot/imap
+ # <doc/wiki/Debugging/Rawlog.txt>
+ #
+ # This would attach gdb into the imap process and write backtraces into
+ # /tmp/gdbhelper.* files:
+- # mail_executable = /usr/libexec/dovecot/gdbhelper
/usr/libexec/dovecot/imap
++ # mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper
${PREFIX}/libexec/dovecot/imap
+ #
+- #mail_executable = /usr/libexec/dovecot/imap
++ #mail_executable = ${PREFIX}/libexec/dovecot/imap
+
+ # Maximum IMAP command line length in bytes. Some clients generate very long
+ # command lines with huge mailboxes, so you may need to raise this if you
get
+@@ -568,7 +568,7 @@ protocol imap {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/imap
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
+
+ # IMAP logout format string:
+ # %i - total number of bytes read from client
+@@ -609,7 +609,7 @@ protocol imap {
+ # but not both. Thunderbird separates these two by forcing server to
+ # accept '/' suffix in mailbox names in subscriptions list.
+ # The list is space-separated.
+- #imap_client_workarounds =
++ imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
+ }
+
+ ##
+@@ -618,11 +618,11 @@ protocol imap {
+
+ protocol pop3 {
+ # Login executable location.
+- #login_executable = /usr/libexec/dovecot/pop3-login
++ #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
+
+ # POP3 executable location. See IMAP's mail_executable above for examples
+ # how this could be changed.
+- #mail_executable = /usr/libexec/dovecot/pop3
++ #mail_executable = ${PREFIX}/libexec/dovecot/pop3
+
+ # Don't try to set mails non-recent or seen with POP3 sessions. This is
+ # mostly intended to reduce disk I/O. With maildir it doesn't move files
+@@ -682,7 +682,7 @@ protocol pop3 {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/pop3
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
+
+ # Workarounds for various client bugs:
+ # outlook-no-nuls:
+@@ -692,7 +692,7 @@ protocol pop3 {
+ # Outlook Express and Netscape Mail breaks if end of headers-line is
+ # missing. This option simply sends it if it's missing.
+ # The list is space-separated.
+- #pop3_client_workarounds =
++ pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
+ }
+
+ ##
+@@ -701,11 +701,11 @@ protocol pop3 {
+
+ protocol managesieve {
+ # Login executable location.
+- #login_executable = /usr/libexec/dovecot/managesieve-login
++ #login_executable = {PREFIX}/libexec/dovecot/managesieve-login
+
+ # ManageSieve executable location. See IMAP's mail_executable above for
+ # examples how this could be changed.
+- #mail_executable = /usr/libexec/dovecot/managesieve
++ #mail_executable = ${PREFIX}/libexec/dovecot/managesieve
+
+ # Maximum ManageSieve command line length in bytes. This setting is
+ # directly borrowed from IMAP. But, since long command lines are very
+@@ -746,7 +746,7 @@ protocol lda {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/lda
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
+
+ # If user is over quota, return with temporary failure instead of
+ # bouncing the mail.
+@@ -760,7 +760,7 @@ protocol lda {
+ #deliver_log_format = msgid=%m: %$
+
+ # Binary to use for sending mails.
+- #sendmail_path = /usr/lib/sendmail
++ #sendmail_path = /usr/sbin/sendmail
+
+ # Subject: header to use for rejection mails. You can use the same variables
+ # as for rejection_reason below.
+@@ -779,7 +779,7 @@ protocol lda {
+ ##
+
+ # Executable location
+-#auth_executable = /usr/libexec/dovecot/dovecot-auth
++#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
+
+ # Set max. process size in megabytes.
+ #auth_process_size = 256
+@@ -908,7 +908,7 @@ auth default {
+ # database (passwd usually), you can use static userdb.
+ # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
+ # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
+- passdb pam {
++ #passdb pam {
+ # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
+ # [cache_key=<key>] [<service name>]
+ #
+@@ -941,7 +941,7 @@ auth default {
+ # args = session=yes %Ls
+ # args = cache_key=%u dovecot
+ #args = dovecot
+- }
++ #}
+
+ # System users (NSS, /etc/passwd, or similiar)
+ # In many systems nowadays this uses Name Service Switch, which is
+@@ -961,10 +961,10 @@ auth default {
+
+ # PAM-like authentication for OpenBSD.
+ # <doc/wiki/PasswordDatabase.BSDAuth.txt>
+- #passdb bsdauth {
++ passdb bsdauth {
+ # [cache_key=<key>] - See cache_key in PAM for explanation.
+ #args =
+- #}
++ }
+
+ # passwd-like file with specified location
+ # <doc/wiki/AuthDatabase.PasswdFile.txt>
+@@ -1228,7 +1228,7 @@ plugin {
+ # a dictionary so it can be quickly determined which mailboxes contain
+ # expired mails. The actual expunging is done in a nightly cronjob, which
+ # you must set up:
+- # dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
++ # dovecot --exec-mail ext ${PREFIX}/libexec/dovecot/expire-tool
+ #expire = Trash 7 Spam 30
+ #expire_dict = proxy::expire
+
+@@ -1257,4 +1257,6 @@ plugin {
+ # The path to the directory where the personal Sieve scripts are stored.
For
+ # ManageSieve this is where the uploaded scripts are stored.
+ #sieve_dir=~/sieve
++
++ #sieve_extensions=+imapflags
+ }
Index: patches/nosieve-patch-dovecot-example_conf
===================================================================
RCS file: patches/nosieve-patch-dovecot-example_conf
diff -N patches/nosieve-patch-dovecot-example_conf
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/nosieve-patch-dovecot-example_conf 7 Sep 2009 15:12:10 -0000
@@ -0,0 +1,216 @@
+$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
+--- dovecot-example.conf.orig Thu Jun 18 09:37:43 2009
++++ dovecot-example.conf Wed Jul 8 20:57:18 2009
+@@ -12,12 +12,11 @@
+ # Default values are shown for each setting, it's not required to uncomment
+ # those. These are exceptions to this though: No sections (e.g. namespace {})
+ # or plugin settings are added by default, they're listed only as examples.
+-# Paths are also just examples with the real defaults being based on configure
+-# options. The paths listed here are for configure --prefix=/usr
+-# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
+
++# *** NOTE *** Some values HAVE been changed for OpenBSD use.
++
+ # Base directory where to store runtime data.
+-#base_dir = /var/run/dovecot/
++base_dir = /var/dovecot/
+
+ # Protocols we want to be serving: imap imaps pop3 pop3s
+ # If you only want to use dovecot-auth, you can set this to "none".
+@@ -39,13 +38,13 @@
+ # listen = *:10100
+ # ..
+ # }
+-#listen = *
++listen = *, [::]
+
+ # Disable LOGIN command and all other plaintext authentications unless
+ # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
+ # matches the local IP (ie. you're connecting from the same computer), the
+ # connection is considered secure and plaintext authentication is allowed.
+-#disable_plaintext_auth = yes
++disable_plaintext_auth = yes
+
+ # Should all IMAP and POP3 processes be killed when Dovecot master process
+ # shuts down. Setting this to "no" means that Dovecot can be upgraded without
+@@ -92,7 +91,7 @@
+ # dropping root privileges, so keep the key file unreadable by anyone but
+ # root. Included doc/mkcert.sh can be used to easily generate self-signed
+ # certificate, just make sure to update the domains in dovecot-openssl.cnf
+-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
++ssl_cert_file = /etc/ssl/dovecotcert.pem
+ #ssl_key_file = /etc/ssl/private/dovecot.pem
+
+ # If key file is password protected, give the password here. Alternatively
+@@ -136,7 +135,7 @@
+ # which login needs to be able to connect to. The sockets are created when
+ # running as root, so you don't have to worry about permissions. Note that
+ # everything in this directory is deleted when Dovecot is started.
+-#login_dir = /var/run/dovecot/login
++login_dir = /var/dovecot/login
+
+ # chroot login process to the login_dir. Only reason not to do this is if you
+ # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
+@@ -146,7 +145,7 @@
+ # and don't use it anywhere else. The user must also belong to a group where
+ # only it has access, it's used to control access for authentication process.
+ # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
+-#login_user = dovecot
++login_user = _dovecot
+
+ # Set max. process size in megabytes. If you don't use
+ # login_process_per_connection you might need to grow this.
+@@ -336,8 +335,9 @@
+ #mail_log_max_lines_per_sec = 10
+
+ # Don't use mmap() at all. This is required if you store indexes to shared
+-# filesystems (NFS or clustered filesystem).
+-#mmap_disable = no
++# filesystems (NFS or clustered filesystem) or for some operating systems
++# which use a separate cache for mmap, such as OpenBSD.
++mmap_disable = yes
+
+ # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
+ # since version 3, so this should be safe to use nowadays by default.
+@@ -482,7 +482,7 @@
+ # locking methods as well. Some operating systems don't allow using some of
+ # them simultaneously.
+ #mbox_read_locks = fcntl
+-#mbox_write_locks = dotlock fcntl
++mbox_write_locks = fcntl
+
+ # Maximum time in seconds to wait for lock (all of them) before aborting.
+ #mbox_lock_timeout = 300
+@@ -537,20 +537,20 @@
+
+ protocol imap {
+ # Login executable location.
+- #login_executable = /usr/libexec/dovecot/imap-login
++ #login_executable = ${PREFIX}/libexec/dovecot/imap-login
+
+ # IMAP executable location. Changing this allows you to execute other
+ # binaries before the imap process is executed.
+ #
+ # This would write rawlogs into user's ~/dovecot.rawlog/, if it exists:
+- # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
++ # mail_executable = ${PREFIX}/libexec/dovecot/rawlog
${PREFIX}/libexec/dovecot/imap
+ # <doc/wiki/Debugging/Rawlog.txt>
+ #
+ # This would attach gdb into the imap process and write backtraces into
+ # /tmp/gdbhelper.* files:
+- # mail_executable = /usr/libexec/dovecot/gdbhelper
/usr/libexec/dovecot/imap
++ # mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper
${PREFIX}/libexec/dovecot/imap
+ #
+- #mail_executable = /usr/libexec/dovecot/imap
++ #mail_executable = ${PREFIX}/libexec/dovecot/imap
+
+ # Maximum IMAP command line length in bytes. Some clients generate very long
+ # command lines with huge mailboxes, so you may need to raise this if you
get
+@@ -564,7 +564,7 @@ protocol imap {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/imap
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
+
+ # IMAP logout format string:
+ # %i - total number of bytes read from client
+@@ -605,7 +605,7 @@ protocol imap {
+ # but not both. Thunderbird separates these two by forcing server to
+ # accept '/' suffix in mailbox names in subscriptions list.
+ # The list is space-separated.
+- #imap_client_workarounds =
++ imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
+ }
+
+ ##
+@@ -614,11 +614,11 @@ protocol imap {
+
+ protocol pop3 {
+ # Login executable location.
+- #login_executable = /usr/libexec/dovecot/pop3-login
++ #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
+
+ # POP3 executable location. See IMAP's mail_executable above for examples
+ # how this could be changed.
+- #mail_executable = /usr/libexec/dovecot/pop3
++ #mail_executable = ${PREFIX}/libexec/dovecot/pop3
+
+ # Don't try to set mails non-recent or seen with POP3 sessions. This is
+ # mostly intended to reduce disk I/O. With maildir it doesn't move files
+@@ -678,7 +678,7 @@ protocol pop3 {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/pop3
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
+
+ # Workarounds for various client bugs:
+ # outlook-no-nuls:
+@@ -688,7 +688,7 @@ protocol pop3 {
+ # Outlook Express and Netscape Mail breaks if end of headers-line is
+ # missing. This option simply sends it if it's missing.
+ # The list is space-separated.
+- #pop3_client_workarounds =
++ pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
+ }
+
+ ##
+@@ -706,7 +706,7 @@ protocol lda {
+ # Support for dynamically loadable plugins. mail_plugins is a space
separated
+ # list of plugins to load.
+ #mail_plugins =
+- #mail_plugin_dir = /usr/lib/dovecot/lda
++ #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
+
+ # If user is over quota, return with temporary failure instead of
+ # bouncing the mail.
+@@ -720,7 +720,7 @@ protocol lda {
+ #deliver_log_format = msgid=%m: %$
+
+ # Binary to use for sending mails.
+- #sendmail_path = /usr/lib/sendmail
++ #sendmail_path = /usr/sbin/sendmail
+
+ # Subject: header to use for rejection mails. You can use the same variables
+ # as for rejection_reason below.
+@@ -739,7 +739,7 @@ protocol lda {
+ ##
+
+ # Executable location
+-#auth_executable = /usr/libexec/dovecot/dovecot-auth
++#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
+
+ # Set max. process size in megabytes.
+ #auth_process_size = 256
+@@ -868,7 +868,7 @@ auth default {
+ # database (passwd usually), you can use static userdb.
+ # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
+ # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
+- passdb pam {
++ #passdb pam {
+ # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
+ # [cache_key=<key>] [<service name>]
+ #
+@@ -901,7 +901,7 @@ auth default {
+ # args = session=yes %Ls
+ # args = cache_key=%u dovecot
+ #args = dovecot
+- }
++ #}
+
+ # System users (NSS, /etc/passwd, or similiar)
+ # In many systems nowadays this uses Name Service Switch, which is
+@@ -921,10 +921,10 @@ auth default {
+
+ # PAM-like authentication for OpenBSD.
+ # <doc/wiki/PasswordDatabase.BSDAuth.txt>
+- #passdb bsdauth {
++ passdb bsdauth {
+ # [cache_key=<key>] - See cache_key in PAM for explanation.
+ #args =
+- #}
++ }
+
+ # passwd-like file with specified location
+ # <doc/wiki/AuthDatabase.PasswdFile.txt>
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/mail/dovecot/patches/patch-Makefile_in,v
retrieving revision 1.21
diff -u -p -r1.21 patch-Makefile_in
--- patches/patch-Makefile_in 19 May 2009 08:10:56 -0000 1.21
+++ patches/patch-Makefile_in 7 Sep 2009 15:12:10 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-Makefile_in,v 1.21 2009/05/19 08:10:56 sthen Exp $
---- Makefile.in.orig Sun May 17 21:39:56 2009
-+++ Makefile.in Mon May 18 05:42:21 2009
-@@ -669,7 +669,7 @@ install-data: install-data-recursive
+--- Makefile.in.orig Wed Jul 1 21:52:38 2009
++++ Makefile.in Wed Jul 8 11:32:24 2009
+@@ -663,7 +663,7 @@ install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
Index: patches/patch-configure_in
===================================================================
RCS file: /cvs/ports/mail/dovecot/patches/patch-configure_in,v
retrieving revision 1.19
diff -u -p -r1.19 patch-configure_in
--- patches/patch-configure_in 1 Sep 2009 17:28:50 -0000 1.19
+++ patches/patch-configure_in 7 Sep 2009 15:12:10 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-configure_in,v 1.19 2009/09/01 17:28:50 jasper Exp $
---- configure.in.orig Mon Jul 27 07:26:55 2009
-+++ configure.in Tue Sep 1 12:18:46 2009
-@@ -13,6 +13,7 @@ AC_PROG_CXX # lucene plugin needs this
+--- configure.in.orig Mon Aug 17 17:40:05 2009
++++ configure.in Tue Sep 1 16:44:02 2009
+@@ -291,6 +291,7 @@ AC_PROG_CXX # lucene plugin needs this
AC_HEADER_STDC
AC_C_INLINE
AC_PROG_LIBTOOL
@@ -9,7 +9,7 @@ $OpenBSD: patch-configure_in,v 1.19 2009
AM_ICONV
AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h inttypes.h \
-@@ -1809,74 +1810,16 @@ fi
+@@ -1755,112 +1756,15 @@ fi
have_gssapi=no
if test $want_gssapi != no; then
@@ -46,7 +46,10 @@ $OpenBSD: patch-configure_in,v 1.19 2009
- AC_DEFINE(HAVE_GSSAPI_H,, GSSAPI headers in
gssapi.h)
- have_gssapi=yes
- ])
-- if test $have_gssapi = yes; then
+- if test $have_gssapi != no; then
+- if test $want_gssapi = plugin; then
+- have_gssapi=plugin
+- fi
- AC_DEFINE(HAVE_GSSAPI,, Build with GSSAPI
support)
- AC_CHECK_HEADERS(gssapi/gssapi_ext.h
gssapi_krb5.h gssapi/gssapi_krb5.h)
- AC_CHECK_LIB(gss, __gss_userok, [
@@ -60,9 +63,44 @@ $OpenBSD: patch-configure_in,v 1.19 2009
- old_LIBS=$LIBS
- LIBS="$LIBS $KRB5_LIBS"
-
AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity
krb5_gss_register_acceptor_identity)
+-
+- # does the kerberos library support SPNEGO?
+- AC_CACHE_CHECK([whether GSSAPI supports
SPNEGO],i_cv_gssapi_spnego,[
+- AC_TRY_RUN([
+- #ifdef HAVE_GSSAPI_H
+- # include <gssapi.h>
+- #else
+- # include <gssapi/gssapi.h>
+- #endif
+- #include <krb5.h>
+- #include <string.h>
+- int main(void) {
+- OM_uint32 minor_status;
+- gss_OID_set mech_set;
+- unsigned char spnego_oid[] = { 0x2b,
0x06, 0x01, 0x05, 0x05, 0x02 };
+- unsigned int i;
+-
+- gss_indicate_mechs(&minor_status,
&mech_set);
+- for (i = 0; i < mech_set->count; i++) {
+- if (mech_set->elements[i].length == 6 &&
+-
memcmp(mech_set->elements[i].elements,
+- spnego_oid, 6) == 0)
+- return 0;
+- }
+- return 1;
+- }
+- ], [
+- i_cv_gssapi_spnego=yes
+- ], [
+- i_cv_gssapi_spnego=no
+- ])
+- ])
+- if test "$i_cv_gssapi_spnego" = "yes"; then
+- AC_DEFINE(HAVE_GSSAPI_SPNEGO,, GSSAPI
supports SPNEGO)
+- fi
- LIBS=$old_LIBS
-
-- if test x$want_gssapi_plugin != xyes; then
+- if test $want_gssapi != plugin; then
- AUTH_LIBS="$AUTH_LIBS $KRB5_LIBS"
- AUTH_CFLAGS="$AUTH_CFLAGS $KRB5_CFLAGS"
- AC_DEFINE(BUILTIN_GSSAPI,, GSSAPI support is
built in)
@@ -70,14 +108,14 @@ $OpenBSD: patch-configure_in,v 1.19 2009
- have_gssapi_plugin=yes
- fi
- else
-- if test $want_gssapi = yes; then
+- if test $want_gssapi != auto; then
- AC_ERROR([Can't build with GSSAPI support: gssapi.h
not found])
- fi
- fi
- CFLAGS=$old_CFLAGS
- fi
- else
-- if test $want_gssapi = yes; then
+- if test $want_gssapi != auto; then
- AC_ERROR([Can't build with GSSAPI support: krb5-config not found])
- fi
- fi
@@ -87,7 +125,6 @@ $OpenBSD: patch-configure_in,v 1.19 2009
+ AC_DEFINE(HAVE_GSSAPI,, Build with GSSAPI support)
+ AC_DEFINE(HAVE_GSSAPI_H,, Build with GSSAPI support)
+ AC_DEFINE(HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY,, Have the
gsskrb5_register_acceptor_identity function)
-+ AC_DEFINE(BUILTIN_GSSAPI,, GSSAPI support is built in)
+ have_gssapi=yes
+ ])
+ AUTH_LIBS="$LIBS -lkrb5 -lgssapi -lcrypto"
Index: patches/patch-doc_Makefile_in
===================================================================
RCS file: patches/patch-doc_Makefile_in
diff -N patches/patch-doc_Makefile_in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-doc_Makefile_in 7 Sep 2009 15:12:10 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- doc/Makefile.in.orig Wed Jul 8 14:12:10 2009
++++ doc/Makefile.in Wed Jul 8 14:12:25 2009
+@@ -213,11 +213,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ SUBDIRS = wiki
+ confdir = $(sysconfdir)
+-conf_DATA = \
+- dovecot-db-example.conf \
+- dovecot-dict-sql-example.conf \
+- dovecot-ldap-example.conf \
+- dovecot-sql-example.conf
++conf_DATA =
+
+ doc_DATA = \
+ auth-protocol.txt \
Index: patches/patch-dovecot-example_conf
===================================================================
RCS file: patches/patch-dovecot-example_conf
diff -N patches/patch-dovecot-example_conf
--- patches/patch-dovecot-example_conf 19 May 2009 08:10:56 -0000 1.47
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,215 +0,0 @@
-$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
---- dovecot-example.conf.orig Wed May 13 12:41:46 2009
-+++ dovecot-example.conf Mon May 18 05:51:18 2009
-@@ -12,12 +12,11 @@
- # Default values are shown for each setting, it's not required to uncomment
- # those. These are exceptions to this though: No sections (e.g. namespace {})
- # or plugin settings are added by default, they're listed only as examples.
--# Paths are also just examples with the real defaults being based on configure
--# options. The paths listed here are for configure --prefix=/usr
--# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
-
-+# *** NOTE *** Some values HAVE been changed for OpenBSD use.
-+
- # Base directory where to store runtime data.
--#base_dir = /var/run/dovecot/
-+base_dir = /var/dovecot/
-
- # Protocols we want to be serving: imap imaps pop3 pop3s
- # If you only want to use dovecot-auth, you can set this to "none".
-@@ -39,13 +38,13 @@
- # listen = *:10100
- # ..
- # }
--#listen = *
-+listen = *, [::]
-
- # Disable LOGIN command and all other plaintext authentications unless
- # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
- # matches the local IP (ie. you're connecting from the same computer), the
- # connection is considered secure and plaintext authentication is allowed.
--#disable_plaintext_auth = yes
-+disable_plaintext_auth = yes
-
- # Should all IMAP and POP3 processes be killed when Dovecot master process
- # shuts down. Setting this to "no" means that Dovecot can be upgraded without
-@@ -92,7 +91,7 @@
- # dropping root privileges, so keep the key file unreadable by anyone but
- # root. Included doc/mkcert.sh can be used to easily generate self-signed
- # certificate, just make sure to update the domains in dovecot-openssl.cnf
--#ssl_cert_file = /etc/ssl/certs/dovecot.pem
-+ssl_cert_file = /etc/ssl/dovecotcert.pem
- #ssl_key_file = /etc/ssl/private/dovecot.pem
-
- # If key file is password protected, give the password here. Alternatively
-@@ -136,7 +135,7 @@
- # which login needs to be able to connect to. The sockets are created when
- # running as root, so you don't have to worry about permissions. Note that
- # everything in this directory is deleted when Dovecot is started.
--#login_dir = /var/run/dovecot/login
-+login_dir = /var/dovecot/login
-
- # chroot login process to the login_dir. Only reason not to do this is if you
- # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
-@@ -146,7 +145,7 @@
- # and don't use it anywhere else. The user must also belong to a group where
- # only it has access, it's used to control access for authentication process.
- # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
--#login_user = dovecot
-+login_user = _dovecot
-
- # Set max. process size in megabytes. If you don't use
- # login_process_per_connection you might need to grow this.
-@@ -307,8 +306,9 @@
- #mail_log_max_lines_per_sec = 10
-
- # Don't use mmap() at all. This is required if you store indexes to shared
--# filesystems (NFS or clustered filesystem).
--#mmap_disable = no
-+# filesystems (NFS or clustered filesystem) or for some operating systems
-+# which use a separate cache for mmap, such as OpenBSD.
-+mmap_disable = yes
-
- # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
- # since version 3, so this should be safe to use nowadays by default.
-@@ -449,7 +449,7 @@
- # locking methods as well. Some operating systems don't allow using some of
- # them simultaneously.
- #mbox_read_locks = fcntl
--#mbox_write_locks = dotlock fcntl
-+mbox_write_locks = fcntl
-
- # Maximum time in seconds to wait for lock (all of them) before aborting.
- #mbox_lock_timeout = 300
-@@ -504,19 +504,19 @@
-
- protocol imap {
- # Login executable location.
-- #login_executable = /usr/libexec/dovecot/imap-login
-+ #login_executable = ${PREFIX}/libexec/dovecot/imap-login
-
- # IMAP executable location. Changing this allows you to execute other
- # binaries before the imap process is executed.
- #
- # This would write rawlogs into ~/dovecot.rawlog/ directory:
-- # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
-+ # mail_executable = ${PREFIX}/libexec/dovecot/rawlog
${PREFIX}/libexec/dovecot/imap
- #
- # This would attach gdb into the imap process and write backtraces into
- # /tmp/gdbhelper.* files:
-- # mail_executable = /usr/libexec/dovecot/gdbhelper
/usr/libexec/dovecot/imap
-+ # mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper
${PREFIX}/libexec/dovecot/imap
- #
-- #mail_executable = /usr/libexec/dovecot/imap
-+ #mail_executable = ${PREFIX}/libexec/dovecot/imap
-
- # Maximum IMAP command line length in bytes. Some clients generate very long
- # command lines with huge mailboxes, so you may need to raise this if you
get
-@@ -530,7 +530,7 @@ protocol imap {
- # Support for dynamically loadable plugins. mail_plugins is a space
separated
- # list of plugins to load.
- #mail_plugins =
-- #mail_plugin_dir = /usr/lib/dovecot/imap
-+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
-
- # Send IMAP capabilities in greeting message. This makes it unnecessary for
- # clients to request it with CAPABILITY command, so it saves one round-trip.
-@@ -564,7 +564,7 @@ protocol imap {
- # but not both. Thunderbird separates these two by forcing server to
- # accept '/' suffix in mailbox names in subscriptions list.
- # The list is space-separated.
-- #imap_client_workarounds =
-+ imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
- }
-
- ##
-@@ -573,11 +573,11 @@ protocol imap {
-
- protocol pop3 {
- # Login executable location.
-- #login_executable = /usr/libexec/dovecot/pop3-login
-+ #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
-
- # POP3 executable location. See IMAP's mail_executable above for examples
- # how this could be changed.
-- #mail_executable = /usr/libexec/dovecot/pop3
-+ #mail_executable = ${PREFIX}/libexec/dovecot/pop3
-
- # Don't try to set mails non-recent or seen with POP3 sessions. This is
- # mostly intended to reduce disk I/O. With maildir it doesn't move files
-@@ -637,7 +637,7 @@ protocol pop3 {
- # Support for dynamically loadable plugins. mail_plugins is a space
separated
- # list of plugins to load.
- #mail_plugins =
-- #mail_plugin_dir = /usr/lib/dovecot/pop3
-+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
-
- # Workarounds for various client bugs:
- # outlook-no-nuls:
-@@ -647,7 +647,7 @@ protocol pop3 {
- # Outlook Express and Netscape Mail breaks if end of headers-line is
- # missing. This option simply sends it if it's missing.
- # The list is space-separated.
-- #pop3_client_workarounds =
-+ pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
- }
-
- ##
-@@ -665,7 +665,7 @@ protocol lda {
- # Support for dynamically loadable plugins. mail_plugins is a space
separated
- # list of plugins to load.
- #mail_plugins =
-- #mail_plugin_dir = /usr/lib/dovecot/lda
-+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
-
- # If user is over quota, return with temporary failure instead of
- # bouncing the mail.
-@@ -679,7 +679,7 @@ protocol lda {
- #deliver_log_format = msgid=%m: %$
-
- # Binary to use for sending mails.
-- #sendmail_path = /usr/lib/sendmail
-+ #sendmail_path = /usr/sbin/sendmail
-
- # Subject: header to use for rejection mails. You can use the same variables
- # as for rejection_reason below.
-@@ -698,7 +698,7 @@ protocol lda {
- ##
-
- # Executable location
--#auth_executable = /usr/libexec/dovecot/dovecot-auth
-+#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
-
- # Set max. process size in megabytes.
- #auth_process_size = 256
-@@ -831,7 +831,7 @@ auth default {
- # database (passwd usually), you can use static userdb.
- # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
- # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
-- passdb pam {
-+ #passdb pam {
- # [session=yes] [setcred=yes] [failure_show_msg=yes]
- # [cache_key=<key>] [<service name>]
- #
-@@ -860,7 +860,7 @@ auth default {
- # args = session=yes %Ls
- # args = cache_key=%u dovecot
- #args = dovecot
-- }
-+ #}
-
- # System users (NSS, /etc/passwd, or similiar)
- # In many systems nowadays this uses Name Service Switch, which is
-@@ -880,10 +880,10 @@ auth default {
-
- # PAM-like authentication for OpenBSD.
- # <doc/wiki/PasswordDatabase.BSDAuth.txt>
-- #passdb bsdauth {
-+ passdb bsdauth {
- # [cache_key=<key>] - See cache_key in PAM for explanation.
- #args =
-- #}
-+ }
-
- # passwd-like file with specified location
- # <doc/wiki/AuthDatabase.PasswdFile.txt>
Index: patches/patch-src_lib_randgen_c
===================================================================
RCS file: patches/patch-src_lib_randgen_c
diff -N patches/patch-src_lib_randgen_c
--- patches/patch-src_lib_randgen_c 4 May 2009 11:40:41 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_lib_randgen_c,v 1.3 2009/05/04 11:40:41 sthen Exp $
---- src/lib/randgen.c.orig Sun May 3 21:25:41 2009
-+++ src/lib/randgen.c Sun May 3 21:27:14 2009
-@@ -7,7 +7,11 @@
-
- #ifdef HAVE_DEV_URANDOM
-
-+#ifdef __OpenBSD__
-+#define URANDOM_PATH "/dev/arandom"
-+#else
- #define URANDOM_PATH "/dev/urandom"
-+#endif
-
- #include "fd-close-on-exec.h"
- #include <unistd.h>
Index: pkg/PLIST-server
===================================================================
RCS file: /cvs/ports/mail/dovecot/pkg/PLIST-server,v
retrieving revision 1.13
diff -u -p -r1.13 PLIST-server
--- pkg/PLIST-server 26 Jan 2009 14:47:02 -0000 1.13
+++ pkg/PLIST-server 7 Sep 2009 15:12:10 -0000
@@ -6,27 +6,36 @@ lib/dovecot/
lib/dovecot/auth/
lib/dovecot/imap/
lib/dovecot/imap/lib01_acl_plugin.so
+lib/dovecot/imap/lib02_imap_acl_plugin.a
+lib/dovecot/imap/lib02_imap_acl_plugin.la
+lib/dovecot/imap/lib02_imap_acl_plugin.so
lib/dovecot/imap/lib02_lazy_expunge_plugin.so
lib/dovecot/imap/lib10_quota_plugin.so
@comment lib/dovecot/imap/lib11_imap_quota_plugin.a
@comment lib/dovecot/imap/lib11_imap_quota_plugin.la
lib/dovecot/imap/lib11_imap_quota_plugin.so
lib/dovecot/imap/lib11_trash_plugin.so
+lib/dovecot/imap/lib20_autocreate_plugin.so
lib/dovecot/imap/lib20_convert_plugin.so
lib/dovecot/imap/lib20_expire_plugin.so
lib/dovecot/imap/lib20_fts_plugin.so
+lib/dovecot/imap/lib20_listescape_plugin.so
lib/dovecot/imap/lib20_mail_log_plugin.so
lib/dovecot/imap/lib20_mbox_snarf_plugin.so
+lib/dovecot/imap/lib20_virtual_plugin.so
lib/dovecot/imap/lib20_zlib_plugin.so
lib/dovecot/imap/lib21_fts_squat_plugin.so
lib/dovecot/lda/
lib/dovecot/lda/lib01_acl_plugin.so
lib/dovecot/lda/lib10_quota_plugin.so
lib/dovecot/lda/lib11_trash_plugin.so
+lib/dovecot/lda/lib20_autocreate_plugin.so
lib/dovecot/lda/lib20_convert_plugin.so
lib/dovecot/lda/lib20_expire_plugin.so
lib/dovecot/lda/lib20_fts_plugin.so
+lib/dovecot/lda/lib20_listescape_plugin.so
lib/dovecot/lda/lib20_mail_log_plugin.so
+lib/dovecot/lda/lib20_virtual_plugin.so
lib/dovecot/lda/lib21_fts_squat_plugin.so
@comment lib/dovecot/lib01_acl_plugin.a
@comment lib/dovecot/lib01_acl_plugin.la
@@ -40,6 +49,9 @@ lib/dovecot/lib10_quota_plugin.so
@comment lib/dovecot/lib11_trash_plugin.a
@comment lib/dovecot/lib11_trash_plugin.la
lib/dovecot/lib11_trash_plugin.so
+lib/dovecot/lib20_autocreate_plugin.a
+lib/dovecot/lib20_autocreate_plugin.la
+lib/dovecot/lib20_autocreate_plugin.so
@comment lib/dovecot/lib20_convert_plugin.a
@comment lib/dovecot/lib20_convert_plugin.la
lib/dovecot/lib20_convert_plugin.so
@@ -49,12 +61,18 @@ lib/dovecot/lib20_expire_plugin.so
@comment lib/dovecot/lib20_fts_plugin.a
@comment lib/dovecot/lib20_fts_plugin.la
lib/dovecot/lib20_fts_plugin.so
+lib/dovecot/lib20_listescape_plugin.a
+lib/dovecot/lib20_listescape_plugin.la
+lib/dovecot/lib20_listescape_plugin.so
@comment lib/dovecot/lib20_mail_log_plugin.a
@comment lib/dovecot/lib20_mail_log_plugin.la
lib/dovecot/lib20_mail_log_plugin.so
@comment lib/dovecot/lib20_mbox_snarf_plugin.a
@comment lib/dovecot/lib20_mbox_snarf_plugin.la
lib/dovecot/lib20_mbox_snarf_plugin.so
+lib/dovecot/lib20_virtual_plugin.a
+lib/dovecot/lib20_virtual_plugin.la
+lib/dovecot/lib20_virtual_plugin.so
@comment lib/dovecot/lib20_zlib_plugin.a
@comment lib/dovecot/lib20_zlib_plugin.la
lib/dovecot/lib20_zlib_plugin.so
@@ -64,11 +82,14 @@ lib/dovecot/lib21_fts_squat_plugin.so
lib/dovecot/pop3/
lib/dovecot/pop3/lib02_lazy_expunge_plugin.so
lib/dovecot/pop3/lib10_quota_plugin.so
+lib/dovecot/pop3/lib20_autocreate_plugin.so
lib/dovecot/pop3/lib20_convert_plugin.so
lib/dovecot/pop3/lib20_expire_plugin.so
lib/dovecot/pop3/lib20_fts_plugin.so
+lib/dovecot/pop3/lib20_listescape_plugin.so
lib/dovecot/pop3/lib20_mail_log_plugin.so
lib/dovecot/pop3/lib20_mbox_snarf_plugin.so
+lib/dovecot/pop3/lib20_virtual_plugin.so
lib/dovecot/pop3/lib20_zlib_plugin.so
lib/dovecot/pop3/lib21_fts_squat_plugin.so
libexec/dovecot/
@@ -82,6 +103,7 @@ libexec/dovecot/
@bin libexec/dovecot/idxview
@bin libexec/dovecot/imap
@bin libexec/dovecot/imap-login
+...@bin libexec/dovecot/imap-utf7
@bin libexec/dovecot/listview
@bin libexec/dovecot/logview
@bin libexec/dovecot/maildirlock
@@ -89,6 +111,7 @@ libexec/dovecot/
@bin libexec/dovecot/pop3-login
@bin libexec/dovecot/rawlog
@bin libexec/dovecot/ssl-build-param
+...@bin libexec/dovecot/threadview
@bin sbin/dovecot
sbin/dovecot-mkcert.sh
@bin sbin/dovecotpw
@@ -96,6 +119,7 @@ share/doc/dovecot/
share/doc/dovecot/auth-protocol.txt
share/doc/dovecot/documentation.txt
share/doc/dovecot/securecoding.txt
+share/doc/dovecot/thread-refs.txt
share/doc/dovecot/wiki/
share/doc/dovecot/wiki/ACL.txt
share/doc/dovecot/wiki/AixPluginsSupport.txt
@@ -249,10 +273,13 @@ share/doc/dovecot/wiki/UserIds.txt
share/doc/dovecot/wiki/Variables.txt
share/doc/dovecot/wiki/VirtualUsers.txt
share/doc/dovecot/wiki/WhyDoesItNotWork.txt
+share/doc/dovecot/wiki/elim.com.au.txt
share/doc/dovecot/wiki/maildrop.txt
share/doc/dovecot/wiki/mutt.txt
share/doc/dovecot/wiki/uw2dovecot.sh.txt
share/examples/dovecot/
+share/examples/dovecot/dovecot-db-example.conf
+share/examples/dovecot/dovecot-dict-sql-example.conf
share/examples/dovecot/dovecot-example.conf
@sample ${SYSCONFDIR}/dovecot.conf
share/examples/dovecot/dovecot-ldap-example.conf
Index: pkg/PLIST-sieve
===================================================================
RCS file: /cvs/ports/mail/dovecot/pkg/PLIST-sieve,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST-sieve
--- pkg/PLIST-sieve 20 Aug 2008 02:07:04 -0000 1.3
+++ pkg/PLIST-sieve 7 Sep 2009 15:12:10 -0000
@@ -1,6 +1,14 @@
@comment $OpenBSD: PLIST-sieve,v 1.3 2008/08/20 02:07:04 brad Exp $
-...@comment lib/dovecot/lda/lib90_cmusieve_plugin.a
-...@comment lib/dovecot/lda/lib90_cmusieve_plugin.la
-lib/dovecot/lda/lib90_cmusieve_plugin.so
-...@bin libexec/dovecot/sievec
-...@bin libexec/dovecot/sieved
+...@bin bin/sieve-test
+...@bin bin/sievec
+...@bin bin/sieved
+...@comment lib/dovecot/lda/lib90_sieve_plugin.a
+...@comment lib/dovecot/lda/lib90_sieve_plugin.la
+lib/dovecot/lda/lib90_sieve_plugin.so
+...@bin libexec/dovecot/managesieve
+...@bin libexec/dovecot/managesieve-login
+share/man/
+share/man/man1/
+...@man share/man/man1/sieve-test.1
+...@man share/man/man1/sievec.1
+...@man share/man/man1/sieved.1