summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2008-01-02 18:37:38 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2008-01-02 18:37:38 +0000
commit221e81758524703be50e01d4df1bd5245e68d4ba (patch)
treebd181bc8aff8c505377687934e05492c1cadf8ed /net-mail
parentHOMEPAGE updated. (diff)
downloadhistorical-221e81758524703be50e01d4df1bd5245e68d4ba.tar.gz
historical-221e81758524703be50e01d4df1bd5245e68d4ba.tar.bz2
historical-221e81758524703be50e01d4df1bd5245e68d4ba.zip
Version bump, bug #201952
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/cyrus-imapd/ChangeLog9
-rw-r--r--net-mail/cyrus-imapd/Manifest31
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-2.3.11.ebuild252
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-2.3.11-drac_with_autocreate.patch46
-rw-r--r--net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.3.116
5 files changed, 329 insertions, 15 deletions
diff --git a/net-mail/cyrus-imapd/ChangeLog b/net-mail/cyrus-imapd/ChangeLog
index 36fa74eff897..50f95b9a6223 100644
--- a/net-mail/cyrus-imapd/ChangeLog
+++ b/net-mail/cyrus-imapd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-mail/cyrus-imapd
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.115 2008/01/01 14:30:21 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.116 2008/01/02 18:37:37 dertobi123 Exp $
+
+*cyrus-imapd-2.3.11 (02 Jan 2008)
+
+ 02 Jan 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ +files/cyrus-imapd-2.3.11-drac_with_autocreate.patch,
+ +cyrus-imapd-2.3.11.ebuild:
+ Version bump, bug #201952
01 Jan 2008; Markus Meier <maekke@gentoo.org> cyrus-imapd-2.3.9-r1.ebuild:
x86 stable, bug #201684
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest
index 0ab2c42dc084..f81f9524c12e 100644
--- a/net-mail/cyrus-imapd/Manifest
+++ b/net-mail/cyrus-imapd/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX cyrus-imapd-2.2-db45.patch 1283 RMD160 e3925988a6c628eb5567aa482351bb6a8ab01113 SHA1 b074166f6092ee58db685038c45382f77479bdb1 SHA256 4d814546280b83cf420855faf067ac95d36818be8b2a9ad9973805f261c1d90e
MD5 94e33770741d5309d51ba7f4edbe1fc5 files/cyrus-imapd-2.2-db45.patch 1283
RMD160 e3925988a6c628eb5567aa482351bb6a8ab01113 files/cyrus-imapd-2.2-db45.patch 1283
@@ -29,6 +26,10 @@ AUX cyrus-imapd-2.2.13-pts.patch 647 RMD160 f321203e723a39508df8812e30ba3a660c5b
MD5 64a35455ea1674129587faeba44a0106 files/cyrus-imapd-2.2.13-pts.patch 647
RMD160 f321203e723a39508df8812e30ba3a660c5bd526 files/cyrus-imapd-2.2.13-pts.patch 647
SHA256 d775fbc182402b8bf6aec160bc3eedbbb23f4d44f64f07a8ab0d44ef9ca54f77 files/cyrus-imapd-2.2.13-pts.patch 647
+AUX cyrus-imapd-2.3.11-drac_with_autocreate.patch 2334 RMD160 53bb3d38e121ac22e4149de52151f3c3945f4934 SHA1 7571d40975aa61f9ac04e30bc371ab4733b3acdb SHA256 bfe1cabf1131b3ae3e67d5847d965cc4dfe2ac001064cc56176d3d2553651f3f
+MD5 ca671021c0a508f9aa21790108aaa274 files/cyrus-imapd-2.3.11-drac_with_autocreate.patch 2334
+RMD160 53bb3d38e121ac22e4149de52151f3c3945f4934 files/cyrus-imapd-2.3.11-drac_with_autocreate.patch 2334
+SHA256 bfe1cabf1131b3ae3e67d5847d965cc4dfe2ac001064cc56176d3d2553651f3f files/cyrus-imapd-2.3.11-drac_with_autocreate.patch 2334
AUX cyrus-imapd-2.3.8-drac_with_autocreate.patch 2378 RMD160 a545ffbf21e7d14897d177b2866bc5df9df3130f SHA1 16e29ddddd924877d9d7dd572a6bcafe25c67725 SHA256 f55235912bcec09c91270dfeb9f2846300f70c22eef945781e77473ea7013aa6
MD5 687f311749b0a998d7cf832aa451fbf5 files/cyrus-imapd-2.3.8-drac_with_autocreate.patch 2378
RMD160 a545ffbf21e7d14897d177b2866bc5df9df3130f files/cyrus-imapd-2.3.8-drac_with_autocreate.patch 2378
@@ -70,20 +71,26 @@ MD5 66137eb399ec7760afc24491a10d8bd7 files/imapd.conf 1587
RMD160 74e02af5daa7648ce7e366478c1b89b112750e6b files/imapd.conf 1587
SHA256 69eacd9fffad55f20990fcf3b117fe4e2ac55233515ed70698c65a6deb42503f files/imapd.conf 1587
DIST cyrus-imapd-2.2.13.tar.gz 2109770 RMD160 7e8ac84b5ddd9f1206e71d5b659d07d8400f9ac2 SHA1 ba84b67a1cae4c15d5a588d010764031167970c4 SHA256 109e85b901bfcdbdd6a76d7cac83af866aa9c37a40919be7f58813319082d09c
+DIST cyrus-imapd-2.3.11-uoa.tbz2 18045 RMD160 8f35b2399b47669d99fd301be1e14aaaab903234 SHA1 827b279e47dbe56ee4969a3ecd8d21a83b31fd44 SHA256 c67f97274c328c80f1cbaab7514fdd0de05c032e57b526e4e13e8f63d212aa9d
+DIST cyrus-imapd-2.3.11.tar.gz 2275173 RMD160 34727e08cc25f3cb6e0ea0195b96de942de10f48 SHA1 6218f0dc4f1792e786677362b8b3965e4593122e SHA256 87ce58b28ed1f8974118c02ac009377bb3de62adccd699a67f0100158106d842
DIST cyrus-imapd-2.3.9-uoa.tbz2 17935 RMD160 1e46f17972552ed94496d1dfee8671332844775b SHA1 1fc400239cf2410f531570c37d19ad964c606a14 SHA256 3ca66f3ec992416276daca9e43dd159797d2838ff9efd118139495a86e070f5d
DIST cyrus-imapd-2.3.9.tar.gz 2272004 RMD160 c9aae3476108c0face06dfe304a136015370b166 SHA1 b95e1de87ff2c7a42d4bec87c839fe439452a79c SHA256 27e6476789788b7c72f09711103f7c4bd0136dbd33ceadd0ae2dc776a17ab437
EBUILD cyrus-imapd-2.2.13-r1.ebuild 9642 RMD160 28201df2ebc0f1aa29c48b9d41bfa0e7382b48a4 SHA1 ae38d8942a2b798517bffca964555c6492faae5a SHA256 52edc4b04f9088de111bab7eca070602ecb9d707bc9f01f5b04e4af0a18f3a03
MD5 393661d3e80e76fc348edd2e0e22bb42 cyrus-imapd-2.2.13-r1.ebuild 9642
RMD160 28201df2ebc0f1aa29c48b9d41bfa0e7382b48a4 cyrus-imapd-2.2.13-r1.ebuild 9642
SHA256 52edc4b04f9088de111bab7eca070602ecb9d707bc9f01f5b04e4af0a18f3a03 cyrus-imapd-2.2.13-r1.ebuild 9642
+EBUILD cyrus-imapd-2.3.11.ebuild 7854 RMD160 b6ed350da6b7766ca6a1da967640bb50fdf059c7 SHA1 d8335367fcfbd268e4ac6fadc19be80357099213 SHA256 5c1ef1d9d3c217c2eaaef06ad2fe75d65e8a977291cdee7a41337f85644e6a22
+MD5 dfb55dd14c691e30f24b421f6edd5872 cyrus-imapd-2.3.11.ebuild 7854
+RMD160 b6ed350da6b7766ca6a1da967640bb50fdf059c7 cyrus-imapd-2.3.11.ebuild 7854
+SHA256 5c1ef1d9d3c217c2eaaef06ad2fe75d65e8a977291cdee7a41337f85644e6a22 cyrus-imapd-2.3.11.ebuild 7854
EBUILD cyrus-imapd-2.3.9-r1.ebuild 7913 RMD160 8fbbc0dd1e0757b821803a0934424b401b383d3f SHA1 2220626e8005756a3245e8039d1cdfbef9985321 SHA256 7876e391853b0d53c8edcbdd96bfd2c0fbf7ee2e623acad65a96bafa729f52fb
MD5 492a67911eb1b94d96f87471a225823a cyrus-imapd-2.3.9-r1.ebuild 7913
RMD160 8fbbc0dd1e0757b821803a0934424b401b383d3f cyrus-imapd-2.3.9-r1.ebuild 7913
SHA256 7876e391853b0d53c8edcbdd96bfd2c0fbf7ee2e623acad65a96bafa729f52fb cyrus-imapd-2.3.9-r1.ebuild 7913
-MISC ChangeLog 22413 RMD160 29d51415d0ef29e852929e4ac2535ac05d8b0961 SHA1 0f1cf0abb1e3a220a7449f95b69a37b064e62fb0 SHA256 99efd94161f9b706a683112d8eb2000da6267b5d655131a535229cc0833054bb
-MD5 8ad736ebf0a208341041272a80df49a4 ChangeLog 22413
-RMD160 29d51415d0ef29e852929e4ac2535ac05d8b0961 ChangeLog 22413
-SHA256 99efd94161f9b706a683112d8eb2000da6267b5d655131a535229cc0833054bb ChangeLog 22413
+MISC ChangeLog 22623 RMD160 a59df130f0751844c6d6c0726d5be4fee4a571e4 SHA1 6a725b983c8bed900e83499fea2c103da4974787 SHA256 5f99a53b1825ced248fe5ce2357b2addc89fe6bc57771025c1988adc31e1cbab
+MD5 2f0086b2f4d2484991dcfcafb8cac28b ChangeLog 22623
+RMD160 a59df130f0751844c6d6c0726d5be4fee4a571e4 ChangeLog 22623
+SHA256 5f99a53b1825ced248fe5ce2357b2addc89fe6bc57771025c1988adc31e1cbab ChangeLog 22623
MISC metadata.xml 227 RMD160 dea45630aba3c22da6ccfe5867e88797658a9e41 SHA1 82018ee8f0b71c0e29e01aa374a89275a46dde26 SHA256 d3c03c4962fef1e25acac4875ada3102e5122e3eb7292d83d9833df8ef581d5c
MD5 a562a93428a4efa4b0b4c0943075e3ff metadata.xml 227
RMD160 dea45630aba3c22da6ccfe5867e88797658a9e41 metadata.xml 227
@@ -91,13 +98,9 @@ SHA256 d3c03c4962fef1e25acac4875ada3102e5122e3eb7292d83d9833df8ef581d5c metadata
MD5 557d07d40c036efbbd10ef852a0b6c57 files/digest-cyrus-imapd-2.2.13-r1 259
RMD160 232835b5f24ede499731cb761b501e47d4c884be files/digest-cyrus-imapd-2.2.13-r1 259
SHA256 7afc422d893280bcc49f9e7bf45d2292f6560132160d5c7f98d35782a6167291 files/digest-cyrus-imapd-2.2.13-r1 259
+MD5 187b2307d83aa7f7b8de806acd4ac78a files/digest-cyrus-imapd-2.3.11 518
+RMD160 c58b2cd96a9d6f43851dd45c982e955fc44e0cd4 files/digest-cyrus-imapd-2.3.11 518
+SHA256 6278a994d0da763c4af48e3fd33d5583701402142470da44a1cd8fb786f63085 files/digest-cyrus-imapd-2.3.11 518
MD5 c55df6df734f859e5f0ef9d3b9a9b969 files/digest-cyrus-imapd-2.3.9-r1 512
RMD160 617c63af48df4adba02101a30db0f4e70b73508f files/digest-cyrus-imapd-2.3.9-r1 512
SHA256 e03dc15ac8b730f5c4ca419fa764cc374d8821e67ceb147d4f0358ad6673913b files/digest-cyrus-imapd-2.3.9-r1 512
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.8 (GNU/Linux)
-
-iEYEARECAAYFAkd6TssACgkQkKaRLQcq0GL7lgCghKHbx+wmkzGjg8jxFs4635JY
-RYsAnihW9RAENHdQXaQKxpkAMXovdKKg
-=7LeF
------END PGP SIGNATURE-----
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.3.11.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.3.11.ebuild
new file mode 100644
index 000000000000..cea121c80c5a
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.3.11.ebuild
@@ -0,0 +1,252 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.3.11.ebuild,v 1.1 2008/01/02 18:37:37 dertobi123 Exp $
+
+inherit autotools eutils ssl-cert fixheadtails pam
+
+DESCRIPTION="The Cyrus IMAP Server."
+HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/"
+SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${P}.tar.gz
+ mirror://gentoo/${P}-uoa.tbz2"
+LIBWRAP_PATCH_VER="2.2"
+DRAC_PATCH_VER="2.3.11"
+AUTOCREATE_PATCH_VER="0.10-0"
+AUTOSIEVE_PATCH_VER="0.6.0"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="autocreate autosieve drac idled kerberos nntp pam replication snmp ssl tcpd"
+
+PROVIDE="virtual/imapd"
+RDEPEND=">=sys-libs/db-3.2
+ >=dev-libs/cyrus-sasl-2.1.13
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ kerberos? ( virtual/krb5 )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ drac? ( >=mail-client/drac-1.12-r1 )"
+
+DEPEND="$RDEPEND
+ sys-devel/libtool
+ >=sys-devel/autoconf-2.58
+ sys-devel/automake"
+
+new_net-snmp_check() {
+ # tcpd USE flag check. Bug #68254.
+ if use tcpd ; then
+ if has_version net-analyzer/net-snmp && ! built_with_use net-analyzer/net-snmp tcpd ; then
+ eerror "You are emerging this package with USE=\"tcpd\""
+ eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"-tcpd\""
+ fail_msg
+ fi
+ else
+ if has_version net-analyzer/net-snmp && built_with_use net-analyzer/net-snmp tcpd ; then
+ eerror "You are emerging this package with USE=\"-tcpd\""
+ eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"tcpd\""
+ fail_msg
+ fi
+ fi
+ # DynaLoader check. Bug #67411
+
+ if [ -x "$(type -p net-snmp-config)" ]; then
+ einfo "$(type -p net-snmp-config) is found and executable."
+ NSC_AGENTLIBS="$(net-snmp-config --agent-libs)"
+ einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\""
+ if [ -z "$NSC_AGENTLIBS" ]; then
+ eerror "NSC_AGENTLIBS is null"
+ einfo "please report this to bugs.gentoo.org"
+ fi
+ for i in ${NSC_AGENTLIBS}; do
+ # check for the DynaLoader path.
+ if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then
+ DYNALOADER_PATH="$i"
+ einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\""
+ if [[ ! -f "${DYNALOADER_PATH}" ]]; then
+ eerror "\""${DYNALOADER_PATH}"\" is not found."
+ einfo "Have you upgraded \"perl\" after"
+ einfo "you emerged \"net-snmp\". Please re-emerge"
+ einfo "\"net-snmp\" then try again. Bug #67411."
+ die "\""${DYNALOADER_PATH}"\" is not found."
+ fi
+ fi
+ done
+ else
+ eerror "\"net-snmp-config\" not found or not executable!"
+ die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!"
+ fi
+}
+
+fail_msg() {
+ eerror "enable "snmp" USE flag for this package requires"
+ eerror "that net-analyzer/net-snmp and this package both build with"
+ eerror "\"tcpd\" or \"-tcpd\". Bug #68254"
+ die "sanity check failed."
+}
+
+pkg_setup() {
+ use snmp && new_net-snmp_check
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_unpack() {
+ unpack ${A} && cd "${S}"
+
+ ht_fix_file "${S}"/imap/xversion.sh
+
+ # Fix prestripped binaries
+ epatch "${FILESDIR}/${PN}-strip.patch"
+
+ # Unsupported UoA patch. Bug #112912 .
+ # http://email.uoa.gr/projects/cyrus/autocreate/
+ if use autocreate ; then
+ epatch "${WORKDIR}/${P}-autocreate-${AUTOCREATE_PATCH_VER}.diff"
+ use drac \
+ && epatch "${FILESDIR}/${PN}-${DRAC_PATCH_VER}-drac_with_autocreate.patch" \
+ && epatch "${S}/contrib/drac_auth.patch"
+ else
+ use drac && epatch "${S}/contrib/drac_auth.patch"
+ fi
+
+ # Unsupported UoA patch. Bug #133187 .
+ # http://email.uoa.gr/projects/cyrus/autosievefolder/
+ use autosieve && epatch "${WORKDIR}/${P}-autosieve-${AUTOSIEVE_PATCH_VER}.diff"
+
+ # Add libwrap defines as we don't have a dynamicly linked library.
+ use tcpd && epatch "${FILESDIR}/${PN}-${LIBWRAP_PATCH_VER}-libwrap.patch"
+
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # Recreate configure.
+ WANT_AUTOCONF="2.5"
+ eautoreconf
+
+ # When linking with rpm, you need to link with more libraries.
+ sed -i -e "s:lrpm:lrpm -lrpmio -lrpmdb:" configure || die "sed failed"
+}
+
+src_compile() {
+ local myconf
+ myconf="${myconf} $(use_with drac)"
+ myconf="${myconf} $(use_with ssl openssl)"
+ myconf="${myconf} $(use_with snmp ucdsnmp)"
+ myconf="${myconf} $(use_with tcpd libwrap)"
+ myconf="${myconf} $(use_enable kerberos gssapi) $(use_enable kerberos krb5afspts)"
+ myconf="${myconf} $(use_enable idled)"
+ myconf="${myconf} $(use_enable nntp nntp)"
+ myconf="${myconf} $(use_enable replication)"
+
+ if use kerberos; then
+ myconf="${myconf} --with-auth=krb5"
+ else
+ myconf="${myconf} --with-auth=unix"
+ fi
+
+ econf \
+ --enable-murder \
+ --enable-listext \
+ --enable-netscapehack \
+ --with-extraident=Gentoo \
+ --with-service-path=/usr/lib/cyrus \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --without-perl \
+ --disable-cyradm \
+ ${myconf} || die "econf failed"
+
+ # needed for parallel make. Bug #72352.
+ cd "${S}"/imap
+ emake xversion.h || die "emake xversion.h failed"
+
+ cd "${S}"
+ emake || die "compile problem"
+}
+
+src_install() {
+ dodir /usr/bin /usr/lib
+ for subdir in master imap imtest timsieved notifyd sieve; do
+ make -C "${subdir}" DESTDIR="${D}" install || die "make install failed"
+ done
+
+ # Link master to cyrusmaster (postfix has a master too)
+ dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster
+
+ doman man/*.[0-8]
+ dodoc COPYRIGHT README*
+ dohtml doc/*.html doc/murder.png
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf
+
+ insinto /etc
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
+
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they are exist.
+ use ssl && {
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ }
+
+ enewuser cyrus -1 -1 /usr/cyrus mail
+
+ if df -T /var/imap | grep -q ' ext[23] ' ; then
+ ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous."
+ chattr +S /var/imap/{user,quota}{,/*}
+ eend $?
+ fi
+
+ if df -T /var/spool/imap | grep -q ' ext[23] ' ; then
+ ebegin "Making /var/spool/imap/* synchronous."
+ chattr +S /var/spool/imap{,/*}
+ eend $?
+ fi
+
+ ewarn "If the queue directory of the mail daemon resides on an ext2"
+ ewarn "or ext3 filesystem you need to set it manually to update"
+ ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'."
+ echo
+
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+}
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-2.3.11-drac_with_autocreate.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-2.3.11-drac_with_autocreate.patch
new file mode 100644
index 000000000000..5e7929d7b439
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-2.3.11-drac_with_autocreate.patch
@@ -0,0 +1,46 @@
+--- contrib/drac_auth.patch.orig 2008-01-02 20:22:53.244043151 +0100
++++ contrib/drac_auth.patch 2008-01-02 20:23:42.858474159 +0100
+@@ -107,23 +107,23 @@
+ DEPLIBS = ../lib/libcyrus.a ../lib/libcyrus_min.a @DEPLIBS@
+
+ @@ -201,17 +202,17 @@
+- imapd: $(IMAPDOBJS) mutex_fake.o libimap.a $(DEPLIBS) $(SERVICE)
++ imapd: $(IMAPDOBJS) mutex_fake.o libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(SERVICE)
+ $(CC) $(LDFLAGS) -o imapd \
+ $(SERVICE) $(IMAPDOBJS) mutex_fake.o \
+-- libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+-+ libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
++- libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+++ libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
+
+- imapd.pure: $(IMAPDOBJS) mutex_fake.o libimap.a $(DEPLIBS) $(SERVICE)
++ imapd.pure: $(IMAPDOBJS) mutex_fake.o libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(SERVICE)
+ $(PURIFY) $(PUREOPT) $(CC) $(LDFLAGS) -o imapd.pure \
+ $(SERVICE) $(IMAPDOBJS) mutex_fake.o libimap.a \
+-- $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+-+ $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
++- $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+++ $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
+
+- imapd.quant: $(IMAPDOBJS) mutex_fake.o libimap.a $(DEPLIBS) $(SERVICE)
++ imapd.quant: $(IMAPDOBJS) mutex_fake.o libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(SERVICE)
+ $(QUANTIFY) $(QUANTOPT) $(CC) $(LDFLAGS) -o imapd.quant \
+ $(SERVICE) $(IMAPDOBJS) mutex_fake.o libimap.a \
+-- $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+-+ $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
++- $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+++ $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
+
+ mupdate: mupdate.o mupdate-slave.o mupdate-client.o mutex_pthread.o tls.o \
+ libimap.a $(DEPLIBS)
+@@ -131,8 +131,8 @@
+ pop3d: pop3d.o proxy.o backend.o tls.o mutex_fake.o libimap.a \
+ $(DEPLIBS) $(SERVICE)
+ $(CC) $(LDFLAGS) -o pop3d pop3d.o proxy.o backend.o tls.o $(SERVICE) \
+-- mutex_fake.o libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+-+ mutex_fake.o libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
++- mutex_fake.o libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP)
+++ mutex_fake.o libimap.a $(SIEVE_LIBS) $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(DRAC_LIBS)
+
+ nntpd: nntpd.o proxy.o backend.o index.o smtpclient.o spool.o tls.o \
+ mutex_fake.o nntp_err.o libimap.a $(DEPLIBS) $(SERVICE)
diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.3.11 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.3.11
new file mode 100644
index 000000000000..a4c083d3114a
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.3.11
@@ -0,0 +1,6 @@
+MD5 2c1bad387120e6738b4bf917b4514cd4 cyrus-imapd-2.3.11-uoa.tbz2 18045
+RMD160 8f35b2399b47669d99fd301be1e14aaaab903234 cyrus-imapd-2.3.11-uoa.tbz2 18045
+SHA256 c67f97274c328c80f1cbaab7514fdd0de05c032e57b526e4e13e8f63d212aa9d cyrus-imapd-2.3.11-uoa.tbz2 18045
+MD5 df632eb2a89e36e6296e4abd687435ed cyrus-imapd-2.3.11.tar.gz 2275173
+RMD160 34727e08cc25f3cb6e0ea0195b96de942de10f48 cyrus-imapd-2.3.11.tar.gz 2275173
+SHA256 87ce58b28ed1f8974118c02ac009377bb3de62adccd699a67f0100158106d842 cyrus-imapd-2.3.11.tar.gz 2275173