diff options
author | Eray Aslan <eras@gentoo.org> | 2013-05-09 15:20:56 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2013-05-09 15:20:56 +0000 |
commit | 7bfaa56e67b739dc71f360cc29053da8721175f3 (patch) | |
tree | a950060ed13e3083f3dc205a561a782efb0a15d9 /net-mail | |
parent | Remove mask for dovecot-2.2_rc - no longer in the tree (diff) | |
download | historical-7bfaa56e67b739dc71f360cc29053da8721175f3.tar.gz historical-7bfaa56e67b739dc71f360cc29053da8721175f3.tar.bz2 historical-7bfaa56e67b739dc71f360cc29053da8721175f3.zip |
Version bump - bug #466296
Package-Manager: portage-2.2.0_alpha174/cvs/Linux x86_64
Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/dovecot/ChangeLog | 7 | ||||
-rw-r--r-- | net-mail/dovecot/Manifest | 31 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-2.2.1.ebuild | 276 |
3 files changed, 299 insertions, 15 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog index 32b8a807fc47..8ce6475e1c0a 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.420 2013/05/09 15:17:20 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.421 2013/05/09 15:20:55 eras Exp $ + +*dovecot-2.2.1 (09 May 2013) + + 09 May 2013; Eray Aslan <eras@gentoo.org> +dovecot-2.2.1.ebuild: + Version bump - bug #466296 09 May 2013; Eray Aslan <eras@gentoo.org> -dovecot-2.2_rc7.ebuild: Remove old diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest index cab9e4206b47..25c4da96bfd2 100644 --- a/net-mail/dovecot/Manifest +++ b/net-mail/dovecot/Manifest @@ -12,26 +12,29 @@ DIST dovecot-2.1-pigeonhole-0.3.4.tar.gz 1089752 SHA256 34da8801c7695c397a53a135 DIST dovecot-2.1.15.tar.gz 3862058 SHA256 706a69cede44551401dc5f49225b97b4b7b7e30ddbdc5cc11176a23a0fa72ded SHA512 e97f12ba5fbf2608c377730467efd0bd6773aab2f31dd886c25e8966ca084599498da1c092fc52e46456da3fd7fc4ca410623b1077838a3561ed164ca0acd9d3 WHIRLPOOL 5bdcad2f1c5833d2142c1282c4321c3488f3c4e75ea8a95561d57ba41f733ec08633f2d69b8cdee5cb0a233f8088d89fc61ec816f0ed3eb7769b331e3c865b75 DIST dovecot-2.1.16.tar.gz 3866802 SHA256 a61d5fa774615849f6e754232c41a7a87dd0de619f1089627c3682180fa9b447 SHA512 634600ae99db8d29766aa05d21df06f4f5e9c2bb3b8378e6a92fcdc0eb3e2ae2e8383c7d516623d774dc13bae72a47a79587ec5b527c7bb47fdb5da704c4047b WHIRLPOOL 93b0dad89b190211fcdf5ab2efbc7fcf77cc667a6a94c27bd507fb824d9efef8089d6e85ec3ced04d895660d0691cbc021cadb94c5e48dea04a10b48c19b31e9 DIST dovecot-2.1.9.tar.gz 3829755 SHA256 77d11112bced9e2bbb1410ce5e6464af477775315ec67c7f3ab4d0da64e3c512 SHA512 da16bce6fdb535dd8eb48b4626444296e78808613f5a0d3d28dd7a509a82a276ee4f34d3ed8c339a98bd6aaee10ddf1c2df62060748b4c603a06ab165086d8de WHIRLPOOL f5bfe022687f36fcb06aa46165d6ffe8323bd13e990b7acecaed6af91226c5b06bc1e479f242dd6f963ff6039f633d790221559af42c4debf39ca252715a81f3 +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 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.ebuild 8567 SHA256 6cc3e226e7977103d89422e5df65d7e7bdf093bcb73cce3847a47ba3ae96577b SHA512 f5b50a95225d358027b5de868c549dffad5fe24ca55d4f68b33b9281e7562bf6ef495af6d86a62d42777dda0bd64e80e14f8c9c99f0762a45871b1a531512363 WHIRLPOOL 4d6e1696f45c7c7a71a69a98cdae9c3f26afec8811ca63a23b5063d39fc615c181b81db07497b88776bdc52c4b6d4a53b1d043c7d8490a0f5caa31d725a9f799 EBUILD dovecot-2.1.9.ebuild 8711 SHA256 7d1dcd87630cd6ea0692aeb1b3e5a323692935948634610fac6ecadc6a0c4e2b SHA512 15d6ec32508190d166eeeb5ba195e9228d58da7834cc0f670f68d43357b8dd8c3b82fbab909ea7d232ca0d8676820af4946d66acefc836526d598f61d249df33 WHIRLPOOL 73ce697ed35a319b87e2e9b4bc6286c848a847b0c72c14cc18f31e381d3815952567ef02b4c23fe280e473983ebbf078101539234ccc532810a5f73c601a5d36 -MISC ChangeLog 63175 SHA256 8361daf6db374969aa869df4691703f69712316a427eb7b1782b3a8ffa740c53 SHA512 6aa8394fb2c123a11178e3746bda9f82ebe9444639d4563fce08c5c07e2110a94b370f71402de22a26ec6d69942e083579397d334b02fd5f6b8b5dcd9fdc23d8 WHIRLPOOL dce2b8eaa8fef625bf1d7bb40df17f08b94d02ca82a46105dd6a0083ee78b812371045fd122ba426031a0df28c141da09cb5ce2fbf9f9ff61149d161fbffe5ce +EBUILD dovecot-2.2.1.ebuild 8563 SHA256 02723b5a19724ee045a2d0d5a06a6945038264d2b803f78620bce0c5b3c48844 SHA512 b818766975eec2aaf2e020b468e244a1a8fd0ef4d22bd0721de348ba746abf11b7d46692dbe89db4e2d2bf6b1db77422865104496394a7d6d0bece432d30a07e WHIRLPOOL acd698a70ad0c4369c853fa24e5f4a8d8e1c67ce94449ba7245851b1f4154b2b8cb53da70b4efcb533701394aea89af0d488fd219528ab734616c8965af8cff7 +MISC ChangeLog 63302 SHA256 7227ff31a122223b9f197c213d83bbd819d3e6a898dfb51811d476de306d93df SHA512 2a76dfba85472385d7d0caeb2e79e1987374c02c582640111f542b823c5a3b1488483da43b5b815351d116ea9f421369ffcc6e254d9d531f8a5187763871e077 WHIRLPOOL c4d5b39df28c84fb224b6cab5f9842ed052d10bd503c6c52bba357c73b707514f91640ebc60eafe1f9a1ea321cf7e05a5075e816d1852ecf731bf8ec1be0a6d2 MISC metadata.xml 879 SHA256 40171ddac84b6d47c050e61ec8158085dc11c1da24c3c85b0375632868da55f6 SHA512 0f0dbfc71c087fd1c6f0b673ff83b837ea8e203f74cdbd159dd66943fbccb39fdd30bc38ba19b74403a369110c205218e397dec35db72ae53bd1431bfa61b702 WHIRLPOOL 25c2f71d1e7f8987155b7c7fa08f45ff2e1f647bb390ef19e4f84dbb319ede24bf1bbce9482a823e487eab08948368b74898f57ca182f8904c501a7bc4f70755 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJRi74LAAoJEHfx8XVYajsftVQQALE7x4jI4ypn14UeM7oNO6pP -n8TgUy5hqpo6+mrsc6fGrHUmigrZW9ba0xqIjD71fJ5NBvfWrOBuWuQo1Ym3E3qk -iNWuzynhSgnOTj0DwrfXQTJqhJOlSrkph4caH80NsMVdNigmFib9X/CM9sDuHDja -x6/hGvnQ1FdzRe6ArxoRehr6z0I52B5iMtib/Oa70xoWW3pcz/AIrC9pqOz1+baD -HWHRnTIUlz4HrKpQJYrWnIdd2ARrQ6HI6bi8J6cvlSz7HK8PGAvVgHY64fT46F8G -53Nu3eXrKb4W8V0LG98UIAr5gK6lz5usWIgwD4hFQ/OY8dk/uaSYpC3Z4lfhZbnj -lGTuC4UhNRhsnEyES936LfsmeVdSxESklcS0QecBiTIPA9u59UAl8/x+e67iYw8u -RMqnEV/6ZMslT7BmJwu8VltBxDJ/6W4m2iQ9GNJcV42sbvKirWMcp0ZLdB6NINik -Qe9NZauQ76xrVjKOMpuwYkuHaknfCqYAc6i/CauR8Ldee9ZSxjBdeAEg5FO3p3Be -BwHVbt7NpT0ro6Rs9lf7by6jSBcWr9ty2RiAxOOpIorhJcn3t3BsQjAWuy19o9wg -SvA00SF4SxK3tIjue7KE1S2E4q0dqMowho3B+opXoYv5L2zcpFraC+QDjLZBY57M -ZpUwCfFjoKvJTCyqKOmn -=k/4b +iQIcBAEBCAAGBQJRi77YAAoJEHfx8XVYajsfhdwP/3xRoSHjGWnO92UzwLXKfDuS +CQedJ7jyUu0TPFw1uQuwHP5FfO6UBN2/ywtLaN8QA+dohChxN6jXdW92OpUHYKFw +GlBxOyz+BwKZwIVq2MqyQ+B/OpRRzgLwoC08xBgPLC9s1MkoDmKJ33h3KGXkTLvc +saKznlYm0f/ujzKFffwQZEnH7b8ukQXO1keLFbuj3m8BfMO1WOOozmRtK6qfhwEC +fqIJuERrc4HMbUHa0Zd35TU/BF6yr/wj0e1hVDsdJaNx6ncgfI2et8iWO1OlPIYf +pxAVUFy2hLwGlyN6c95pG6488TMVTtHg08beCG0/Sz9iHQQTw5tdmkDgvE7Dicnl +1i29q9nv2MM/njI+ztmgfHjH/5vI/2pxRJfNwVY2N6KCcsuI/YmcvKdRVLmuIfMX +20RDXagmm4v9TRg5EkANYlnDSBS11oqlg559cSt3HFAD50c8TqUDLSOHvaYd3xps +aaGYlwMi/YDRGHxL6gvAyPEe7aAQoElHTUKqew8EdQ44aY0bYUJw/rcD05qyj4XN +x0wsyWYhv+pBV5b9KOPD8Yn3q+pU+ZZmKgnvD2NtmHejjLpJWOa4yV7yHR2LCy5G +bZRqxA3waLY40tkLWfGqJ6fcS8hRI/tXWJ9aZoYP0uhI0CWYG3Uo5pfDscYOlSW6 +vs6FvA0Hn4z1yMbh7d79 +=3l1X -----END PGP SIGNATURE----- diff --git a/net-mail/dovecot/dovecot-2.2.1.ebuild b/net-mail/dovecot/dovecot-2.2.1.ebuild new file mode 100644 index 000000000000..6d1b09f04c6d --- /dev/null +++ b/net-mail/dovecot/dovecot-2.2.1.ebuild @@ -0,0 +1,276 @@ +# 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.1.ebuild,v 1.1 2013/05/09 15:20:55 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 +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 ) + 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 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." +} |