summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2014-05-13 06:10:50 +0000
committerEray Aslan <eras@gentoo.org>2014-05-13 06:10:50 +0000
commit930e1d0ae64eecfdb8a3d644688fbbae9ea7d142 (patch)
tree56d8958ec39a24dd19af0b6b01800caa8a23362c /net-mail
parentVersion bump. (diff)
downloadhistorical-930e1d0ae64eecfdb8a3d644688fbbae9ea7d142.tar.gz
historical-930e1d0ae64eecfdb8a3d644688fbbae9ea7d142.tar.bz2
historical-930e1d0ae64eecfdb8a3d644688fbbae9ea7d142.zip
Sieve version bump
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/dovecot/ChangeLog7
-rw-r--r--net-mail/dovecot/Manifest30
-rw-r--r--net-mail/dovecot/dovecot-2.2.13-r1.ebuild292
3 files changed, 314 insertions, 15 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog
index 360f33872245..0ecc44af92fd 100644
--- a/net-mail/dovecot/ChangeLog
+++ b/net-mail/dovecot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-mail/dovecot
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.477 2014/05/12 15:27:43 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.478 2014/05/13 06:10:36 eras Exp $
+
+*dovecot-2.2.13-r1 (13 May 2014)
+
+ 13 May 2014; Eray Aslan <eras@gentoo.org> +dovecot-2.2.13-r1.ebuild:
+ Sieve version bump
*dovecot-2.2.13 (12 May 2014)
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
index 0729a838de42..65e8dc8b7a01 100644
--- a/net-mail/dovecot/Manifest
+++ b/net-mail/dovecot/Manifest
@@ -13,6 +13,7 @@ DIST dovecot-2.1-pigeonhole-0.3.4.tar.gz 1089752 SHA256 34da8801c7695c397a53a135
DIST dovecot-2.1.16.tar.gz 3866802 SHA256 a61d5fa774615849f6e754232c41a7a87dd0de619f1089627c3682180fa9b447 SHA512 634600ae99db8d29766aa05d21df06f4f5e9c2bb3b8378e6a92fcdc0eb3e2ae2e8383c7d516623d774dc13bae72a47a79587ec5b527c7bb47fdb5da704c4047b WHIRLPOOL 93b0dad89b190211fcdf5ab2efbc7fcf77cc667a6a94c27bd507fb824d9efef8089d6e85ec3ced04d895660d0691cbc021cadb94c5e48dea04a10b48c19b31e9
DIST dovecot-2.1.17.tar.gz 3908153 SHA256 f59cb39ff5839badaf73fa28006c37b79839b48e782baf256c80d5cc56d1421a SHA512 cebe06b83cb06f9ff6374775a552b8c6f3a72ac08923964e83af711f0109803a7074a188b709e3fb38e3852c50c2f639d9bf5671d4b30620c4d7876c7aa67ca4 WHIRLPOOL 6f3fb936246c8b8ec5d05b5f585cc6a4fb497879037a5bd67b9c8c7add903e22887891feed30e71b12d162e6e6540019ae820dfcfaa1d0c89f986c09cf96c7a2
DIST dovecot-2.2-pigeonhole-0.4.2.tar.gz 1159311 SHA256 0499f07037b86489fdc1d48fb19e298d5360ec41273bccaec230eb1bcf5a3e13 SHA512 3b66d00a8462ee668b8671f5eaa48bb91d47ed8bf8b331f7d879ba8c581e2bef11e236b06a8c5da9f1248572348ad0b3e2b867fd0a17badf32152fedbe61c1ed WHIRLPOOL 4d86bd5c010434620d0741156d4b7b24c60252de76958c0fc774418abff4bebeb4a8a78b5490ee34b20d48f61fb2ee75c4ff04202108ecdd33e1eaa9e2763ad9
+DIST dovecot-2.2-pigeonhole-0.4.3.tar.gz 1184029 SHA256 d692f4ab077bdf2c43c98829ed24b2e6f148db488ef8ba429b430394d8b4d757 SHA512 f2bb83578bb05c7ca2213ecc110f5e7059935746f720ee43897508394f3ab8a7072d193c78caf1fa77df81a20fbbeab1ac14069989250b3032ef459e798c54ff WHIRLPOOL 854d58cdb6b0d51d6e6337a2716858020a1ec22b7da24db903965fc01a00a75af5efcde7c4ddf572c0ee2a36a51bf467da011276f8a4e092463dc76e2622bfbb
DIST dovecot-2.2.10.tar.gz 4558660 SHA256 75592483d40dc4f76cc3b41af40caa4be80478946a699d46846d5d03e4d2e09b SHA512 862a20d4e8bcfa21fb635a3f27bc689ca5b41dec0ec4984fe0f329a719b87c23341d99c259b6fc912ab3277028a05450c2d197dd7d9748a2e6f39ac5aedfc8bb WHIRLPOOL 4b4257d906fbf3fe0b2d04b5c8f51399dff93e6ee441ac85e36cbd672a9cab23546c442a6c8b05cdb94f1e75cf96269576e15a4a2f4c6bcbdab46b6cec5164aa
DIST dovecot-2.2.12.tar.gz 4587634 SHA256 f3de1cae5665ff202713c1489bc96b4d029760808bf3311d76c173d7f3e38c56 SHA512 f3d99ae58b05b739c7e8f07cfb5ddd60b7490a1226b319fd693f222ec63d0800c33bd19d12d998e2914b077c1c66f1a4e9150748d850c8fd56b58f0392760271 WHIRLPOOL 8a638f2137a4070573f261f40643c924cca61380cc036b50ca9f4f24d597bf9af563b5f7aee71cc0f3ab974e68dfbc23fa2cea82cd99a20706852f2f0c099ca8
DIST dovecot-2.2.13.tar.gz 4613824 SHA256 133cf3d2aa81733f6688ec986c91dbe07602fad81e856ba3d8046ffca85d9dce SHA512 1f3c0e600048ac2c1b2e497286620976c0fc821a6cac8e4e1492180af8eb9620cd143c89ee6d12872cecacbcadca573435cce1050c46325de3072c98ab5a9331 WHIRLPOOL 7bb81575faf69820b07d654c469fdd3fcf12c47517bb1dd6ea5566771bb60ce8f9c3a1a7b5c6df6d5f4b903d10472ffa1cca1a01c7fd158b6055794a44aacf39
@@ -22,24 +23,25 @@ EBUILD dovecot-2.1.16.ebuild 8556 SHA256 7b7516de25edd2ccc8dbd6656082cfa8a011928
EBUILD dovecot-2.1.17.ebuild 8635 SHA256 98486c1dc60e3f2ac43385f8077b87ae237df180f41fd95147a0557335448079 SHA512 521664a37101d5e1f95167dff9c560c24507b03e2521e966ffd40350d9d07aa4aa9efcc1c80aae77e31564cff3945f890499d402be157894384bb1138e4d4768 WHIRLPOOL 8bfe32ca7f653fb2b7f4567dae0fd4957b56a05b7dd94c0bfc0dde260bf6ca64bd37af3671320494a1a54ad455b76e9ba4e07350e00bfc6a800e70599689c398
EBUILD dovecot-2.2.10.ebuild 8632 SHA256 19d797f4d966f1bc0e46aaf02f4bda652189d55b758527589faa285b8209c8f5 SHA512 174e8020c895d282aaf9ff7d3d9c7ee552198e75baf751a96b336744734a85d9f346fe6d060902c4b2e559614db1ca92749439eb21c8e482ea4406cc52d54657 WHIRLPOOL f69d5e23236dbc5414642738e464c433cd41467a3144d4838a50ff8f450e9a79d7ec6a8d0034c8ab081b9a1104cf65e5d84513e205bc74cfabb90e7aa94338dd
EBUILD dovecot-2.2.12.ebuild 8825 SHA256 68cf99e54403ce69a33320d21b305e9385dfadd7d49e20c2bc64f1bdef02d053 SHA512 442028d1c98e38afaecb4ab208b1808a585457792aefab500dcdb296762eabd6ec15c6b619b113fa619248208813c720fb8d616283f12e4b9b11fd8ee5ac699b WHIRLPOOL 1d726b36d3d54769862174b281c611774c00c41afce530c073c7f30f6f6c4989b4ccaadbbedbc4469bb3fb70eb17f46dda0bfff4244dd7455221c53a4c694d7d
+EBUILD dovecot-2.2.13-r1.ebuild 8902 SHA256 0d8a1bb18f67370522ca531d03fff5cb112c26fbe323a682dc829cfe294f11ad SHA512 ce199a6e9bfb5905d80ed3c78bd058ebec66c11ebe6b0a790f1b036722e9f81369d965e66168c8d878e221b86fd27aa391f288c11247a7da21b7e31df82b0ba3 WHIRLPOOL 46b7a81cd8e4a1a918545d4f896d4727b81d7ceaa7fe4498ed00ddf66ce849261139aecc111131c68dfcd09ee7f9f4dfdeaf30e390e2370e904905411f57917e
EBUILD dovecot-2.2.13.ebuild 8885 SHA256 02dc4e3e32527b4ddaa7a857e099cfcc666b498d023c4c210c2a27e5d1e200aa SHA512 973d853c769935dc884ca68d64fa2694c73bb30437bd91a2b1a1a36316e6b6aa2650fcbe4a7fd450917a352bc216c14750f0c574fd19372f83d1e5fd2ba77462 WHIRLPOOL 4c6927f65742ead6a83ed6cc872f6839d653c8e6eb7e6d0253df411e5bf42715c126baff7d35e94af63cb11242b397fea86a5d57e1e3a294c5c4af0bb8b5d368
EBUILD dovecot-2.2.9.ebuild 8622 SHA256 86f4fdac2ac4095840e57cd1188e00bd013d89face21e3fe7b5a6254af1e8efd SHA512 46e29a8b68aab961a5678fb0534490c7da2fa6284bf3b878313dfffeac0aeda429b09d093cc7eb93c0f61c54cfc259d7028dd594c16d97ff16e06f86de246025 WHIRLPOOL 82fd1003e529636ab214b8aabf7696d7a532b8e018176c1d85b259b80308b979097e5bc7ec9638780f0ed8351c25a50ebb432cc6a57dafab8152bcd40f4e669a
-MISC ChangeLog 70115 SHA256 85e4db9f874885fb4f507d223c78c65ce96c19febfc57a3d841366b55300a533 SHA512 f4bd0230828a333136c0afea8bb47b91427da233f184fc2288325ba2dc5879cea25f51e72351bd9dd2aa15ec42d5c69ed835235544402e86778f63ff965372fe WHIRLPOOL 74ab1025174ede99fc8f78f76bab7a5d456cee9491b6cfd3b745af01376f2228fdfad95c213d88b0444ebd72810e32138cfc9cdd5b55349b32b5f173feaff300
+MISC ChangeLog 70242 SHA256 6c8255ed21c3922edd1d7b9ebb7077d220d501739b2d95d157c2be12e423c447 SHA512 6a1b7e10fb76f4c87657286408acc4645b1d66bedccf647e83f3bc9c0288c140c8594d100a8a4c318edf7e8dc1965f4875b6761aec7155c8520225c03590b656 WHIRLPOOL b151ed2d591084fb44753275b3b4347f6f0278264ff679c875152019c7d2bb1b11b45aab9c402dcfa218b7093151b0710b6548e681da3a6ad10db7eafd6a14b9
MISC metadata.xml 1078 SHA256 cad311926efedde5a689ae18496389ca80a1e4c5b4b16f1bfb456e8e27ce118c SHA512 f208e189f4901e1385d4c237cb7c91f333021b7bc4656d8b8365d7f6d827dc3a3e7ef58963baec88f399ffea505577e94e7901c5e58119e5952736f1c129e4bb WHIRLPOOL d94e39a391cf3ce8c31647d55a387c6102e244fcc3ebdb34909024f8b2faecf7a225552c77dbc5d841ac45f2583ec38b7f8e18e9eee92fbc702210dbdb581740
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJTcOh5AAoJEHfx8XVYajsfoooQAJoYuYxagpfUW/OQwqkKpbvj
-Zin4WvCbRmzu5pkMek64qgfrn8i6PiCWOiUWBTBpZhp/Ww/WW34k0rbI4sOnl0ZX
-anb4pYzaE7Z2TLRQznIFerBGN7Dg14NOFojkdH50023E72CZygy8ixXHDnepffOW
-Ph+Uoeeoc4Sc2hdcrWr+L+p0H6m2eqZsVUyODuTa1ZL3B5aQDKIrdw246ZRKg2o8
-m23Mq/9+7+ZpGKsFMxC62mT3/5vhTXkn3k+sdEUluBfEtLt4Ve7LQPlh7FzzHU5B
-P5Xle812kTCbrrfwWaZZRAKM7U2jpbGxaTvs/FgQVwDWmxzLRRKB2BFoDEKec582
-wKvtI252ZAC5yZ/LZ1EerkJEblsabW9ZntXJL2xAmYjbBtuKwBDmQLvplH8XHqqq
-FucVXnsgfTQBaBaxiToKaUswGZc0AJ3FNqf7iPWmdSdIsiOxylhDl/yGEGLcG5jN
-f4rmKNo9SJUphyaBa3KQHPk+7aMDsXaC/1qGcEEJha+KfRjMfSDj/Fz5+SIurbsV
-QdbHuZEpQgUGsZTk3YfjQIZKI+tAuK0VRxYac9HhfoUXRqpSXHNtT4+2xW9TWWyX
-Jd6jVhuRHO20vx98Wxrz5W0OZt6wClBFhGn+7IdWeurGpBAL8WxLuitYtbn1FugA
-O7Uom4g91Pp8yOp4+xvw
-=Z64b
+iQIcBAEBCAAGBQJTcbdqAAoJEHfx8XVYajsf+VcP/jol2oXc28sU3YernI0ox764
+aaKZkzqElXB+78G2W3+EAy+USC0k3ldf0528ltlcTaOsinRcEvg7p0tbXz4K8X60
+Zgz5OhZtdYE3AAvGAk8i0L0wmIfrak/3bpdsKRnJrRTdgp7UGvu+nlqGllykrCSQ
+9g7TNOVIee3RY6Te0OkYUuET5qRjx9DqTFXxuN53m9uoQq52vNfKXrJ/0VpguVoT
+Kdmf0ats9NAiYh7lGILBrQE/uCRtVx6uVyP4LNJz/mN3GPDBVkTxA7sYijX9Bcih
+B/sim9Xp5dN5ebQnx4BHHBojzGtZ8EGnPwoTRRjjcn/f6/E5S4pUPzYrWf7/PUee
+bRFTl33GsQnBTPSbs6ym1K9lKafIh92TgYLwz5FdopkOC/9CgH/wq2dgMcM9Iw+v
+zGakb55vo3xPzYrXWe03sNQ+TZltzSl3dno44AiBLyqDwkhAO70mHZzANrtJyB+Z
+MI3GUQ0qe1Z8ddnSWY24+D0lm7vMPC5jcE+727LklH89scwLlQkgH35hYGwVJVAR
+OBxlELQlN3kvys/9R6VtBYR6BGM4WzSLVAqfGwfEie6HBWW0tL72UMrPfjxuA1oy
+o5wpKOpkLnctGNaYaMFLulodrYnDTUDNrFhMdyl9h776GYIGBWt5le4qKOZKaDgq
+8Xl7UjPp1KeXfvNOqfdV
+=6BEz
-----END PGP SIGNATURE-----
diff --git a/net-mail/dovecot/dovecot-2.2.13-r1.ebuild b/net-mail/dovecot/dovecot-2.2.13-r1.ebuild
new file mode 100644
index 000000000000..b0e5e70ce9ca
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.13-r1.ebuild
@@ -0,0 +1,292 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.2.13-r1.ebuild,v 1.1 2014/05/13 06:10:36 eras Exp $
+
+EAPI=5
+inherit eutils multilib ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.3"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="http://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 lucene managesieve selinux sieve solr +ssl static-libs suid tcpd"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql-base !dev-db/postgresql-base[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite )
+ ssl? ( dev-libs/openssl )
+ tcpd? ( sys-apps/tcp-wrappers )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv"
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-10-ssl.patch"
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ local storages=""
+ for storage in ${IUSE_DOVECOT_STORAGE//+/}; do
+ use ${storage} && storages="${storage} ${storages}"
+ done
+ [ "${storages}" ] || storages="maildir"
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --with-storages="${storages}" \
+ --disable-rpath \
+ $( systemd_with_unitdir ) \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ if ! use maildir; then
+ if use mbox; then
+ mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
+ keepdir /var/dovecot
+ sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \
+ "${confd}/10-mail.conf" || die "sed failed"
+ elif use mdbox ; then
+ mail_location="mdbox:~/.mdbox"
+ elif use sdbox ; then
+ mail_location="sdbox:~/.sdbox"
+ fi
+ fi
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ dodoc doc/*.txt
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}