summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2013-06-19 06:04:05 +0000
committerEray Aslan <eras@gentoo.org>2013-06-19 06:04:05 +0000
commit1bb7118540d7b8145722e21a559511f94eed8d8b (patch)
tree816fca6adde1d199508d24ab030ba380296f6369 /net-mail
parentVersion bump (diff)
downloadhistorical-1bb7118540d7b8145722e21a559511f94eed8d8b.tar.gz
historical-1bb7118540d7b8145722e21a559511f94eed8d8b.tar.bz2
historical-1bb7118540d7b8145722e21a559511f94eed8d8b.zip
Version bump
Package-Manager: portage-2.2.0_alpha181/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/Manifest34
-rw-r--r--net-mail/dovecot/dovecot-2.2.3.ebuild278
3 files changed, 302 insertions, 17 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog
index 61b9255064ea..d6f48219fa68 100644
--- a/net-mail/dovecot/ChangeLog
+++ b/net-mail/dovecot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-mail/dovecot
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.434 2013/06/02 08:40:18 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.435 2013/06/19 06:04:04 eras Exp $
+
+*dovecot-2.2.3 (19 Jun 2013)
+
+ 19 Jun 2013; Eray Aslan <eras@gentoo.org> +dovecot-2.2.3.ebuild:
+ Version bump
02 Jun 2013; Agostino Sarubbo <ago@gentoo.org> dovecot-2.1.16.ebuild:
Stable for sh, wrt bug #470196
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
index 16728af77373..27db0a98ed2d 100644
--- a/net-mail/dovecot/Manifest
+++ b/net-mail/dovecot/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX dovecot-2.1.9_managesieve_gold.patch 1938 SHA256 e81efbc39b710d010a407a0f9863f3a41801bee6c4423a9c36c09c87e906cdae SHA512 17152599dda9a2d34f6a1e6a885dc0887db503d701e00d875878dfb594f3778f99e5194e98cf74c999c643b7faab314f224b9023f7e0cb038fbc25c1488aa216 WHIRLPOOL 2b125645dbd7a108c6646cf22aabb4d9695b4d7d156c7afafefffbb299ad7625aa7cf6119df81da28725f87e757da295bed8eb79e0c53ce86558ffbc8a4f3a2a
AUX dovecot.init-r3 1609 SHA256 b4fb8ffb9aa7fd270d45512a657dcb5597ae5fe516b1f8e0078aa1892de8ecaa SHA512 957801c0e65153b0e0f394de8e6f6e66ae56427d64823e9937deaf98fda18ce82b2da6c4a0f42a2a46f8492923cf079b41c437b6b3558eeec0a81faa61c3c761 WHIRLPOOL 552a8333f7093727c6e67cce28abf730bb1bf3ed676895797e617308d1da133fd88636e34e080bebe81d8cadce2b9f0aa99f9e6d49ff2d69f7014a5fc6c3a499
@@ -15,6 +15,7 @@ DIST dovecot-2.1.9.tar.gz 3829755 SHA256 77d11112bced9e2bbb1410ce5e6464af4777753
DIST dovecot-2.2-pigeonhole-0.4.0.tar.gz 1144018 SHA256 e630d0c73e9c60028c5d25780eb38eda556ca7a5983cc07b7c0ac8490c4a7fa5 SHA512 d26977d9cd6685a29050f44b3754e8453c54449d3f5b7cc255bbc98c46c62571e3fb16d3362c646345c6c63600f4ecd38e05b59d159e55123ef81ac21d23b7f2 WHIRLPOOL a74841a45862666b6c71de8fa91668fa7c8d2755142982850da99a02ff79a7dce77c0d5f7c6982702460c2bd8aaf757279e508ef8a08238168f7e6e4936bc9e6
DIST dovecot-2.2.1.tar.gz 4258863 SHA256 50af4c6d6d20f97b4d9b1559266d79be03da9930d20885ec5fbe4daf5afa2545 SHA512 e91da79a705873132190af7aef3db11d79c613b03a67b2ec28d2f95c2763e0fe0b3767addf604704bcb446794eb0915b28b525692b66306696fc5c6f175eeac8 WHIRLPOOL b1f1bd69c885c6da36bac53d9c4fdb4d9145a7f0f749fea4486e467a66b8d8d9eac13300fb1c8b3f6af314d142d808904ea938981cb1fb3c3726b6a3a625f9ec
DIST dovecot-2.2.2.tar.gz 4282339 SHA256 30c98e8f9e40d7397d451a8679359b70031702f205aefbff1a6e27656fb63b9a SHA512 622dbb41044c45d45cfcacdf10cc4d83c29311730b62091591251d871c7ae99dba64bfda5bd7e10d6862a3d30eab492a75d208f30f5a80fefc8db471bb9caae1 WHIRLPOOL 075b9b8b8bce9e5ad010d293a7346db3d1e4b4c2663288936fee04ee556694e2fccbad4f7f1466a5b9f8f9c04b4833c6d33c9a13b8330ed798747b2c5856fd09
+DIST dovecot-2.2.3.tar.gz 4331148 SHA256 a93dccf736d5ce937b1d713c086d7283b5341e2ed07f5ddc646752825f22bb97 SHA512 222458744210f24c53665f385fd146d16ad5d08ae05f77a7d687a028ecba05f31542d628aec8ca8f4c1fc3bbd8db00413271fd3d0e93febe5a769f419cba8441 WHIRLPOOL 4153d6c060617a6806f94f3840e761d425386839922fe894181e2ec4b51dd75539395f45de4fb5b8fdfb5e9c3623f83fc00a8a2e998c59f74adbdffef93b3d56
EBUILD dovecot-2.0.19.ebuild 8872 SHA256 672190f8898d8587dad95872745bb65af195a77e2894527091e9032d4259a366 SHA512 52ef08b376d6bf6a443e9c4aea0db3b6a1a80e3cc0a899558e6dbdac6f36fbee5a1a84eb96f1d396a114ec74bafcb8ffada4a64a05a976fdbdc88c800dd0ccc3 WHIRLPOOL d4debf95e6404d908ccfbc1b01315902f77364c998488e1edd13b4a1008c308a3ba51479d228df4969e00efc29bab849216453d847d602f058674fb742aae6a2
EBUILD dovecot-2.1.15.ebuild 8487 SHA256 93da1e5635449886882835c47e75614e539ee1bab86bb2fcb5a71f77a51fc132 SHA512 ea3f45e424cd1aed63691d643d79f30b1d306d1c78583420ffce4eb209e8b9e82b6c6e8291935d9f8ce49eb9fa96deeabfb985f23877993eb659e0e84e44a371 WHIRLPOOL f3a8f3ae06c8d34c1e14839010114f23cdc8ce4b6cc3b092488a7250a5770c8ffc009c100571fba0f44f970474c241df31b5dcdd99c20d86c44b86ead817204f
EBUILD dovecot-2.1.16-r1.ebuild 8641 SHA256 c2df2ed4180f356fe95d598b46d73f16878c9dc7cd2edde7f60ea5d9747a384c SHA512 7bc8fc194a19d1b61edd4e0d6e714d18a659e80960456d8abe0d2e804c04507b79faf9b48103341553f83d86a8716bc6ba84f9679b6a960fcd9d12885be7f063 WHIRLPOOL 709415f65fdb97fcde1a4478c78f2d32a2d49355bbee657437512f0f431a87227364ccd2e889debdb0c5d4bb142f8fb494d5dab37c2b09d8b2876d000179ea0c
@@ -23,22 +24,23 @@ EBUILD dovecot-2.1.9.ebuild 8711 SHA256 7d1dcd87630cd6ea0692aeb1b3e5a32369293594
EBUILD dovecot-2.2.1.ebuild 8563 SHA256 02723b5a19724ee045a2d0d5a06a6945038264d2b803f78620bce0c5b3c48844 SHA512 b818766975eec2aaf2e020b468e244a1a8fd0ef4d22bd0721de348ba746abf11b7d46692dbe89db4e2d2bf6b1db77422865104496394a7d6d0bece432d30a07e WHIRLPOOL acd698a70ad0c4369c853fa24e5f4a8d8e1c67ce94449ba7245851b1f4154b2b8cb53da70b4efcb533701394aea89af0d488fd219528ab734616c8965af8cff7
EBUILD dovecot-2.2.2-r1.ebuild 8637 SHA256 16159458a4d3ba6104c6120601b84e86069828bc1b582802237147bc870f1b97 SHA512 d2d081f70b059d43c07bd2b43cac5a8ab5be550ef71026d4bf35779cae2954244b88a348d8e4632cb192b27633a2a0be713bdfc9fcbaca37bbf42df306ed821a WHIRLPOOL 8a4b73d920e89636985302245c517ce9789dc88f30588a5d0821092746adcae4fd119613ff27edc8127cd054db78eecd7292a444a5ec3b752ebef01a3ad4bd0b
EBUILD dovecot-2.2.2.ebuild 8563 SHA256 8cc32dd996b9aae9ab5d00f0d78b879ba536a60524627dd6f22c559e49b7fb93 SHA512 078f3ff658d39c4c26680c14b6efd71538d81f301b4e4e6cd40d5ddedf25f3d15aed83cd1e2b2fcac56d487e40f1f3545d9e6b04764025304f000f512650942b WHIRLPOOL 354963c06d1f9b13ddf8fa456bc015cc456e321bed6e036f2a1e8fdec8b51531c3877bc5944acfe0252c82a8c0cb09e7aa226262626a43ca7ae5d046ee22f16f
-MISC ChangeLog 64858 SHA256 70879d70c089ec4774095c1b406e5b157381e1a4b7132642fdb241f39d6d3c06 SHA512 5d3b0e9bee3179f5f8b29705d1cdebf3022d97c83d75b8b59b6087be08ce376e2e63ecf45c9b6fc1245f3f57fb548d36d258a9ce19896f0606ba644715d52404 WHIRLPOOL 23115f8a624703e38666ef82006b223c71f2bb0755cb6b713f713d5d4f129800fad7070060c711b83c26d4d99c696786a6669209e1052b6970aaaac18c35c61d
+EBUILD dovecot-2.2.3.ebuild 8631 SHA256 4355540dd4296ccdff76c11b35607a99200b43e666e91ae2c36b956a67a4cb4b SHA512 228ee923597ac923a14d36bc9cd09a146f1ce1ea9bea21daf26eae83360fcf6acbdbc66c740554e24bb3aae71c6d723649f228e2c07ac9782bd32dd6d0ced1f8 WHIRLPOOL d41548bc2bac191028aa0948ab07c4db5a110166040080c708e7b1c397c7b11610d019165f391dc4236e221881e29c3bacc6bcde7634da82fa2e68d825ab8856
+MISC ChangeLog 64972 SHA256 80aa357285e6030a75cc3e0d462e88f54ec9ef74e39fd904cb47251fc87065a1 SHA512 06945436d163a0b09a8e0ba1d445a0c9b726a3b16788f0f4dcc084191a681c69768607eced9f85e555f31bfdddabc8d9ee5b31be64be80b40fa06666e5ea408f WHIRLPOOL 4b6c2f66cf91602a88f4e2d5b3cc3fd7a1c678a72dd9d71b68c77e7c4da81a6879069b5a2abcfba4751f4295ee5181e1a7eb9940b1def6f17966bb814aec380b
MISC metadata.xml 948 SHA256 ad1e5324e4ac307c9fd4acfaab4375a91399c3302c0bf7a358cc9b879953e64b SHA512 a58ed0e97a8ad182eed6a253b247a388e7e6a955ad0ec8c2c63469fa9c77d0af824bb00d959505cddda354ac434da3e22100cce7449556268ccf95fafe05f98b WHIRLPOOL c5977d6032ac360f22b723fe811e3c65988cbbc06952b222666166c074092bf4ef68465f19fe689282a74a1383c1bb99802711ff4d7b8501cb989d8989385fed
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQIcBAEBCgAGBQJRqwRIAAoJELp701BxlEWfpGcQALlQT27PBgxMTdokiPZAH4vT
-ey0f2tumCqvJTJgam4GWsZgLNUXhActcK5swAdOsm0wBxEdIgnHO8/TWjz4N/F4v
-9Xcju2kV4XvkrKfHSO0am+fRz3GpXo/lmPQESOPZGlEM+/CiTaQniYi1cR59Kzvq
-OgjD/hK0n/JWSnUkbw2HI0NX5h5oXIWH/nDxjMlJoRxvy+9oDN0RuNn8JgkeXATO
-ENs58MdPRCU4EmwtuN9maGNMvhZ4zjzj3cPf6L6+tEgMfZ3hcEYxYztYiUhNNlQk
-uEJWryG3T+Y9/FU+kLz/89oeLdES/2ctL0sSIF2+WmgWH131WPW8P10zwjshLEbj
-DH0KQd9q4Drvg6WisfF6Wp4Qg5nLS5mQzTZMZp6nNXeG+pJDrIXfA8wsbl3gt/gj
-jXsNR8s71LVk94zaS5S7qIHK20duROjUeMrN1Z2pAuh7fdF9oy58HWjuFBQUSA81
-fhyT2w8LzdqFa2aaTCodZlQgTgZG34Jl5EzNm2w4BxRB4YTdmpy2C5xF6zO/JAV3
-rM4i1wJLflZhIdVoe/o7IrhcswjNL0sDbmOoffg7CknYYC3SY79kAgiJaW1v0F8K
-8vOfR4zPMRAHhwM/w6Ld7RCsuzzcwtDyie7ZrHpg3hWbKBvA5dpfOgMKOKplA0To
-rZI4wnpWm+HYZzxCi7dv
-=78z0
+iQIcBAEBCAAGBQJRwUnbAAoJEHfx8XVYajsf14wP/2iYfeN/95H3QgXik6BeO8Jc
+ULfAd+UL1xg0e50lAzbZDLqRVhDgxSOLaXqOIThjRu43Vha3kIsurplqiCiJjYVk
+qkavGrPzDARyvNDyGBetBOyt+oModT4LWEIEsert+RKeWdXCdwXvSSXJIVwUBjZe
+zopnY/jK4b+3TUyfcJerAXO2uIZcnfXMLHWzljJZuHUqH+6vUCjNjZNOpJxvwjIU
+qJH8jIO/SQTlY3UnFQVjrhSD4Mh6J2zgqR+VhlBmC6dNFK89YQ+ZIGupXH9R6pmV
+O7p0sjNOepCsWvNtjdujWq6KqMLhQFYVs9my/mXo+lcbaCVooQIbVBKEBs7nEbaA
+nPNB40ExCkV12LrxZw0Wz+DsL0KRh4YZBkVVEmLu5tpPGbCDfKPJoDW/09nT6qob
+KTkmyYu0FcacDTYVW95gfGELw5Jl+cUWqc3hYGIvJiyJ1u5CNbcPIr9O5ddJPRWn
+J2nFtFlB41k7GorgNoJbm4xRAENWIQYuNMpy9owQfGjDt4vX6Va/PtC3+uWeQiy4
+lXHK/l25KgO/3+JiIfLWbZ6JhWqcflJiYs6h2t0dGqtjpo41S0NBqhaSbtEcLQx4
+1gD2d0b44Rbdnz0bdqbuTXzO2mj/m0F/GdJwhVeiFaEdDgaFz0cGlAsCAAvpNpWd
+mL68DziLU+rkvj3gRLEe
+=/T+a
-----END PGP SIGNATURE-----
diff --git a/net-mail/dovecot/dovecot-2.2.3.ebuild b/net-mail/dovecot/dovecot-2.2.3.ebuild
new file mode 100644
index 000000000000..d9613fae95a3
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.3.ebuild
@@ -0,0 +1,278 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.2.3.ebuild,v 1.1 2013/06/19 06:04:04 eras Exp $
+
+EAPI=5
+inherit eutils versionator ssl-cert systemd user multilib
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.0"
+SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
+ sieve? (
+ http://www.rename-it.nl/dovecot/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ http://www.rename-it.nl/dovecot/${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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox"
+IUSE_DOVECOT_OTHER="bzip2 caps doc ipv6 lucene managesieve selinux sieve solr +ssl static-libs suid tcpd zlib"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ 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 )
+ 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_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."
+}