summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/dovecot/ChangeLog7
-rw-r--r--net-mail/dovecot/Manifest20
-rw-r--r--net-mail/dovecot/dovecot-2.2.15-r2.ebuild294
3 files changed, 316 insertions, 5 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog
index 75edadb2b117..cb2e212383e8 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.496 2014/11/03 13:42:49 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.497 2014/11/04 07:51:23 eras Exp $
+
+*dovecot-2.2.15-r2 (04 Nov 2014)
+
+ 04 Nov 2014; Eray Aslan <eras@gentoo.org> +dovecot-2.2.15-r2.ebuild:
+ Version bump
03 Nov 2014; Aaron W. Swenson <titanofold@gentoo.org> dovecot-2.2.9.ebuild,
dovecot-2.2.13.ebuild, dovecot-2.2.13-r1.ebuild, dovecot-2.2.14.ebuild,
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
index 0ef67833e1cf..2428af14535e 100644
--- a/net-mail/dovecot/Manifest
+++ b/net-mail/dovecot/Manifest
@@ -8,6 +8,7 @@ DIST dovecot-2.2-pigeonhole-0.4.2.tar.gz 1159311 SHA256 0499f07037b86489fdc1d48f
DIST dovecot-2.2-pigeonhole-0.4.3.tar.gz 1184029 SHA256 d692f4ab077bdf2c43c98829ed24b2e6f148db488ef8ba429b430394d8b4d757 SHA512 f2bb83578bb05c7ca2213ecc110f5e7059935746f720ee43897508394f3ab8a7072d193c78caf1fa77df81a20fbbeab1ac14069989250b3032ef459e798c54ff WHIRLPOOL 854d58cdb6b0d51d6e6337a2716858020a1ec22b7da24db903965fc01a00a75af5efcde7c4ddf572c0ee2a36a51bf467da011276f8a4e092463dc76e2622bfbb
DIST dovecot-2.2-pigeonhole-0.4.4.tar.gz 1235456 SHA256 e08c5a45f359afa34b27571e14d79de753d73d47b8e72c5142064c6fd047f93e SHA512 76b635f5213ac61161734040fed0a3d32643190f9fb8fbcbf166c797953bb09f1414e2c994c86dd965e215a79f7f1898cfcd586d02782df9ac3c6d6781bd079e WHIRLPOOL a30032e96cee2f9e4b427f7beb6986b943c829d0c6d55352d9cf7b9372c8b86b95747f637691b481fbc41aefda0b30bf9283369bc3ccd1c5114d446ff7f924da
DIST dovecot-2.2-pigeonhole-0.4.5.tar.gz 1239438 SHA256 020a4795ca9cd528394cd55e87714776aeb396b943411dce86cb9945a68ff419 SHA512 faf369662ed3498589804e09391ef17128c834a88f2ef0a5aa6150f53c8ef512f8862a7550e47d45ef09e7ea1a0784b43025d45e83c4dd7475d04bdfba30c58d WHIRLPOOL b07c33c9830e6b127d472dca9dbed8dfffa3344d85ef5a4d4bcc51324431cb95a48c890706c16e059c5c8bc8e35ae9ab628d51aaab63f01db08769b02cb5710f
+DIST dovecot-2.2-pigeonhole-0.4.6.tar.gz 1240368 SHA256 91034669f9ce07661bbadcfb00fe50b6929bf7f616d9aa79d3f5a351d1a47d3d SHA512 50b0df4438f6fc751a7dd058919628a2f3bc631c119e86356495d7de94d24b9f9cc8c11fa5e3646bc2429170bf3c9473d42542ee8b15b7c94a1502bb76042b9e WHIRLPOOL 00f32f01bc5298a5ee428b920e4489b2234ce48db2d0603008b11f2ab0f9e45a280ec2d3b2bedeb28ce3baf3401c8231a49a973792da76ac81643ffc4b551898
DIST dovecot-2.2.13.tar.gz 4613824 SHA256 133cf3d2aa81733f6688ec986c91dbe07602fad81e856ba3d8046ffca85d9dce SHA512 1f3c0e600048ac2c1b2e497286620976c0fc821a6cac8e4e1492180af8eb9620cd143c89ee6d12872cecacbcadca573435cce1050c46325de3072c98ab5a9331 WHIRLPOOL 7bb81575faf69820b07d654c469fdd3fcf12c47517bb1dd6ea5566771bb60ce8f9c3a1a7b5c6df6d5f4b903d10472ffa1cca1a01c7fd158b6055794a44aacf39
DIST dovecot-2.2.14.tar.gz 4720087 SHA256 68ac0fa105c6041129a1fe83ccf4915982d03d41d99054567892cc0fbd68ebf0 SHA512 640edfc0f6d2261485f366a6b4139bdb09f25a26439ee22573e09aeffa5f47106b0acb036c673839de12f76e6490c383ab6c7320ca85747c51c4f4757e120d24 WHIRLPOOL e32e9450db8bc4cd8aa84e81bf8aa9121b9a44a981b7cdbe5a52f986b866bbcc4078fc536fa88ae2c96d1f3666bf174ce22bef34cae05a279debab1855c9e9e6
DIST dovecot-2.2.15.tar.gz 4747444 SHA256 d10e7769e2367d635c93fd6589efdd05f2e3acf13c7911a40167faedf23c399f SHA512 4d84744a23f21dd0923e86fdb1604a0a431e7c1a579f8323fb6643f92ac84754389e5a91fc8e8b53eac4202dba7f8541aa13ada12265e397ecdc15ff9b5c7ada WHIRLPOOL 3cccf5d6014baf8f7b66ab9fa7e90cf27001ab8842db3f1d2814b94b05fba5827103eccf7e07253632a58f8ed2a492d693bff070fd2a1a40c8016ec63b4abc2a
@@ -17,14 +18,25 @@ EBUILD dovecot-2.2.13.ebuild 8893 SHA256 b4630ffec87cdebae725902df715100ccb8f19d
EBUILD dovecot-2.2.14-r1.ebuild 8919 SHA256 5af94c50424ed47f12da46375e3e975c871d9717df27f0f936288cc765e52118 SHA512 fb12ed0007f91eff75baaa5ec4980ba956f26a0c4ec0c5b6233461b312d8270159785a743fe33a5d714adab489309c6c731809ae8ffaeadc24bbf734678c0cbc WHIRLPOOL 4d699b83620bc77800dba9c88f1fc0259e2975e76f2c43a6071f6c2d28ce9cd35ec7c81fca3de71f34b58baf42dbfafaa964c59acbde16536c64ccc1a4cceafc
EBUILD dovecot-2.2.14.ebuild 8916 SHA256 d255b86217c7594aa6d9c2beda74e089b009c5e6eebfb17627439b2298e19763 SHA512 d380038d451414582f7f8133c26eed1c37a32d62ed7a6ff6579f489949662593fe08128e3f1879c430c097c233614aead7c83e3084af2d2d4f49f9d239439a14 WHIRLPOOL b5b09a4168af4f09af0884396e0330b6747bc5e134e0325d01c60c68af468a3d250974098a401c3e6623c74c4d297fa152b5d125fd7d38340ed47854944fb56a
EBUILD dovecot-2.2.15-r1.ebuild 9133 SHA256 a92b2930adcd8ea601e63b25c4d25fe980d0d165cc2551e0601399c8cce95e65 SHA512 45af30982d1b8c9161d3caff0681abaae9cf0db4e9a9d40c13d97e106111e35ec6e1f4cfabcdb472ecf2cd5a15a126bf712abdb2c2754e1a87cbb884075fa265 WHIRLPOOL 7fbeed407fd60d1b6d81b80cb3a5523133545ad12a59b58f9c4ceb5c845c784e76651de97af67225875d3cbe63a17b298bfca21ae86df0f2380a0632de537ad7
+EBUILD dovecot-2.2.15-r2.ebuild 8937 SHA256 0e182fa2c5dc5dd1707d8656e87992e2a563f2d2b47936e1c3c7a30acf433d17 SHA512 1c5989600568d8bb05732e9b172336ab928142fa268904f0f1166eeba88579373d2b148eaf1dcc089c3e678f9751ed8a7cfa1f808ebdc282c5a74edb997eb668 WHIRLPOOL a5dcda477be276f9f8966d41a7bf0caecdb81f3fe502ea04a6b3f88190bff95bba5826aba0d5e77da594548204ff450cd7bae28fec47c40a35ceef67dcbf63ff
EBUILD dovecot-2.2.15.ebuild 8930 SHA256 9e3acff5e766e4e15f0cf4b7f6e20f3c185510cfcb9284c8351da7b284e221ad SHA512 7d5218025e9edc09c55ef56c5d99eb4468f8917e74e9f953b65353719461b357dfa02567d2a0c5ec213ea67635cae9182f6fb2bedcb2150fe3b1daf1204624eb WHIRLPOOL d30ea936b2bcfbb102f4daacb33dbd357939112afbc48352e52c04002b10db83efad3343a35add5f3fd598fcf5a305a3109e252f0eddd3fc8edd56969ac32dd2
EBUILD dovecot-2.2.9.ebuild 8621 SHA256 5fcf76456860701cda3cd442d8573ef8196a07d30df7c06684692069d42233c6 SHA512 fefd5aaed1344585753c4d8c9cfffc75661bd2c689ef09bd7b053b6fda9e33fd6dd00a5f8810d9140b1dbc48ca0537204822c332308d9333762a923888c494b8 WHIRLPOOL 4df63c633dadb2d1d8e7dcac367422f0080164b7d7c431a9cfd8b53e385decddb865031cb95f879a19bdedd4bdd719ad7942ca3d722a63d2b1cfae164b007ef0
-MISC ChangeLog 73003 SHA256 31e1aee891d185336fdd501af2257fb761335c9cbf94784f026bca4fbd500c0f SHA512 5f2d06e302838c280bd93c9af6503539b63c28096e5fc98c88ff9983b4eb37f54f5904588fd6f662a071ead1c2ba54737b62374633bd2d0fb86ea1cd5edf197f WHIRLPOOL c94422a43d39cd0d30be291ad8fb44ab80ed011fa7406db53fe1ed82758d027649a6ebc6fa7676ddb0ecdbcf35f09de56404c12e5c021836f1eaf57804d3dfea
+MISC ChangeLog 73118 SHA256 39b9641c9a759a2a93163de879853971da619dd783993b29e20279b0211788c8 SHA512 5c99dde6144b4df95db0894ae3ec5ebcd6dcbdc62c4350d633853f598e9f1a65a910b512ed2103c6e83c363d348af9832073b4969d65b078a1ed8a00b200be3d WHIRLPOOL 1efbf29563eb8bf0b814ca4c2eb5fe2937ac8227faa4afcd78b1fbc501a184b3cf486644d6652f1a92b32a5838b02088cb6d6f2297b9f8f69bb7dfea90dd3866
MISC metadata.xml 1078 SHA256 cad311926efedde5a689ae18496389ca80a1e4c5b4b16f1bfb456e8e27ce118c SHA512 f208e189f4901e1385d4c237cb7c91f333021b7bc4656d8b8365d7f6d827dc3a3e7ef58963baec88f399ffea505577e94e7901c5e58119e5952736f1c129e4bb WHIRLPOOL d94e39a391cf3ce8c31647d55a387c6102e244fcc3ebdb34909024f8b2faecf7a225552c77dbc5d841ac45f2583ec38b7f8e18e9eee92fbc702210dbdb581740
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iF4EAREIAAYFAlRXhl0ACgkQVxOqA9G7/aDujQEAioxOGkk9bMZdc894p8W4QuxX
-5lpGDlCGYox3GgfgqDQBAJ5U2INg93NxOQ7i7vh6v5kTQn9gWD84GSd3P6BAjCBM
-=YxX7
+iQIcBAEBCAAGBQJUWIWHAAoJEHfx8XVYajsf4IIP/2lm1VNa1dbb8wAtiujbN6b4
+2503ZFLc7W+FUrPOBMZFuIlANrDHclXfmaK54pWJLktc5uzL9LKNvY/mEnl8miHl
+NmtkiKU0LnR/eIfoyI3piGM1NYK+n1oxQwn0ZeyahW6NmBXaYcLj90T30aG7iYLy
+C/psf5W+HDSuwdRoc5UPjgUoszZeKKa2PJJELvX/WlU1rNiHSDhreyKutStz0m3T
+tCQiC3TbDBEx6oMNXze8+HlM82wfe3saCMsKJrl8IgGMmGde9MxO73S2OM3K5Awj
+9bYV93STgCJZ1qLVPzkAuWPk8FyAkBA34yjSWlOcwS2AWv3xyyxEipsoHmxyjugo
+qqHuNMulm0vjpdRXmIw/gkRjajmSZKd5535bWPNO8Okh8u37klHkYqNio9DjWK/D
+EQHtsUDMBMesnCGJKFjChRN7oo76lt3hHlVJSMz8IEEg+kp36nHKqg8d0HDvRE4m
+zhbEiDkqzuqfSNOQRy+DnsN8KYBEdDEiG86kEJFTkt1A27NarCVD6LEH/x0nuqAk
+jFrKWRRvIGgkQaHWp4hlZuQb0zMd+BG5X9GQMCxG4SYUCCLy2jfspzyRTqiz6s46
+zTcGJCwfgssU9lkBgrh6QzDRS1VkmyQRjEWs6cXdwl8O22d3Bh46LLY1dm6NRFFv
+XW6g611ipTnByazWNs0e
+=32OJ
-----END PGP SIGNATURE-----
diff --git a/net-mail/dovecot/dovecot-2.2.15-r2.ebuild b/net-mail/dovecot/dovecot-2.2.15-r2.ebuild
new file mode 100644
index 000000000000..8242b873c49f
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.15-r2.ebuild
@@ -0,0 +1,294 @@
+# 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.15-r2.ebuild,v 1.1 2014/11/04 07:51:23 eras Exp $
+
+EAPI=5
+inherit autotools eutils multilib ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.6"
+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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~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? ( virtual/postgresql !virtual/postgresql[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"
+
+ epatch_user
+}
+
+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."
+}