diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2009-02-03 08:32:08 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2009-02-03 08:32:08 +0000 |
commit | 2033cd7cc33867ca0eb5129bca5f429f99ea0a10 (patch) | |
tree | e752759d81b70aa2e38be9847bb733181ce424ff /net-mail | |
parent | Fix --as-needed bug #247334 (diff) | |
download | historical-2033cd7cc33867ca0eb5129bca5f429f99ea0a10.tar.gz historical-2033cd7cc33867ca0eb5129bca5f429f99ea0a10.tar.bz2 historical-2033cd7cc33867ca0eb5129bca5f429f99ea0a10.zip |
removed old versions
Package-Manager: portage-2.2_rc13/cvs/Linux 2.6.24-gentoo-r5-1 i686
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/dovecot/ChangeLog | 11 | ||||
-rw-r--r-- | net-mail/dovecot/Manifest | 23 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.0.15-r1.ebuild | 234 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.10.ebuild | 268 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.4-r1.ebuild | 252 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.6-r1.ebuild | 252 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.6.ebuild | 251 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.7.ebuild | 258 | ||||
-rw-r--r-- | net-mail/dovecot/dovecot-1.1.8.ebuild | 270 | ||||
-rw-r--r-- | net-mail/dovecot/files/dovecot-1.1.4-expire.patch | 36 | ||||
-rw-r--r-- | net-mail/dovecot/files/dovecot-1.1.8-5417c01fff5b.patch | 26 | ||||
-rw-r--r-- | net-mail/dovecot/files/dovecot-1.1.8-b42c06ef8213.patch | 30 | ||||
-rw-r--r-- | net-mail/dovecot/files/dovecot.init-r1 | 56 |
13 files changed, 11 insertions, 1956 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog index 17d2d0e28b12..69b40ee1a7a9 100644 --- a/net-mail/dovecot/ChangeLog +++ b/net-mail/dovecot/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-mail/dovecot # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.197 2009/02/02 11:18:37 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.198 2009/02/03 08:32:08 wschlich Exp $ + + 02 Feb 2009; Wolfram Schlich <wschlich@gentoo.org> + -files/dovecot-1.1.4-expire.patch, + -files/dovecot-1.1.8-5417c01fff5b.patch, + -files/dovecot-1.1.8-b42c06ef8213.patch, -files/dovecot.init-r1, + -dovecot-1.0.15-r1.ebuild, -dovecot-1.1.4-r1.ebuild, + -dovecot-1.1.6.ebuild, -dovecot-1.1.6-r1.ebuild, -dovecot-1.1.7.ebuild, + -dovecot-1.1.8.ebuild, -dovecot-1.1.10.ebuild: + removed old versions *dovecot-1.1.10-r1 (02 Feb 2009) diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest index 3dcc73b3e4fc..f2aeaca35e46 100644 --- a/net-mail/dovecot/Manifest +++ b/net-mail/dovecot/Manifest @@ -1,36 +1,15 @@ AUX dovecot-1.1.10-498022697a33.patch 1384 RMD160 d1672e43729859c8290953637addb40eb8723f7b SHA1 4cd53e7e2015678d4199a55a9f4ab38f90fe2860 SHA256 c89e39ed0d7d9f67b67d021aecce615990bb7c9f38637de8117da9d8ae8b7d86 -AUX dovecot-1.1.4-expire.patch 1203 RMD160 a27bd308495108bc0078c4fc79245604da5ae90a SHA1 9f1b949ab5283d67fd6b965253a293e1a6fac4d5 SHA256 6ff8c3e0e8856c5b058ac36018d65ea9ee02657c0ea00d0a70a6601b520142ed -AUX dovecot-1.1.8-5417c01fff5b.patch 818 RMD160 f7fcd4b368189c1b281464942c43f1a3587a1e39 SHA1 d36e35224c6108f947100ceb021b7c87e907db97 SHA256 5a65f5c1a6e01c077f7798e45d8abe0dd660d0027b7849352565f564a6a9cbc6 -AUX dovecot-1.1.8-b42c06ef8213.patch 1035 RMD160 ca95c6ed7d448acdca6eb1c53ca809b7c67b0849 SHA1 4941ea1cda2a050720e44f800bb3187372bab88f SHA256 9f3da47a90cf31a02ba4ee42faab61fcd78498ee01c7234aa0e1c68ed196103b AUX dovecot.init 874 RMD160 aa899b69d42946dcf2262c38731319474e759041 SHA1 4f0a95cf6ba9e86bd9008694ea927dc97703b24d SHA256 145d68382d757110aa86f58b2567fb25648fa0ca62788e3461f2b45fc5999c80 -AUX dovecot.init-r1 1670 RMD160 1c147fe3780adcee11009695adc8e10ee5a33100 SHA1 ee708766e5657b8cfce7b4fc02305506d9cff049 SHA256 bdd58f6466fdb0cd98f46ac8493cc73f80c3e13a15283e3dc267707717d17412 AUX dovecot.init-r2 1695 RMD160 5d4fa8f8929462f526a9bfdd1138249a8df62cff SHA1 5d519afd9891e624fb33d15508f3c55c02b9a9ba SHA256 75a103bdb45cd315073c2a653c1b520cc69d6a71d04493009d5815d0dce5c3f0 -DIST dovecot-1.0.15-MANAGESIEVE-v9.3.diff.gz 105361 RMD160 30cba9148d657cc986e2f119197f9c38736d35a2 SHA1 c80c999ba4c8a193c6f9fc59d339eb9898b24171 SHA256 6dcee66e753ce07f8c953900f9ea72904ffd02c0b742dc6450e6a7f1d72d75d6 -DIST dovecot-1.0.15.tar.gz 1783347 RMD160 d882e3dbed60cbcbacdcb6023d0c12213a0d35ac SHA1 4e1f40e37461f848459df9dde809097fef46c376 SHA256 2b4d8720d5f5868d57df294350ee0f5a8d2723e9937dab1eea2084478ace9597 -DIST dovecot-1.1-managesieve-0.10.3.tar.gz 395123 RMD160 bc8cc1be276d15d574e6a49ee4de67504b159399 SHA1 3f4764da34e7416cd280a6ab801e2a20b970b30c SHA256 ac70ee48cdec2d472c14cb93bc9f3339a30763e418a579ddea0b9b18befac5ac DIST dovecot-1.1-managesieve-0.10.4.tar.gz 397332 RMD160 4da8129ead0de9d807e7311849a1b660c7f0509a SHA1 70a84beb5477738ff03024c4ce18a678b90fa1df SHA256 3a66a9dcad5b3a291cd87364fbb961725aa1473cf9c7ce7fa675ba71fe9313ae DIST dovecot-1.1-managesieve-0.10.5.tar.gz 397879 RMD160 4696a0546aafffc2cef8fa010f615d488eaa7f8b SHA1 8606758af27cacc3ed06089d0e693d34f740dcd1 SHA256 651a952db0816f1ff876d32098c50932cbcae49f862c43a5f45aba5c0dc04da0 DIST dovecot-1.1.10-managesieve-0.10.5.diff.gz 5915 RMD160 b2f6198b88e2ae205bc5b9c737ba986e9b05a979 SHA1 b38c19908bdc4dab33ada2c76548048f84c4ffe1 SHA256 5b00e6cbf65a82d4012e4b5216367d2f169eb88b168494ac916cf4284ea5bd0d DIST dovecot-1.1.10.tar.gz 2360885 RMD160 b5cbd15d03407cad78846e59c4ca22a3713d21af SHA1 7b509975e52473e86c4fdf13bd6f464144837f02 SHA256 07a714066a513cb845567405ce942a0b82d65f7bc6ac311e9cfd0bd59924da31 -DIST dovecot-1.1.4-managesieve-0.10.3.diff.gz 5827 RMD160 445db07bf8e3521cf5a568fd473388cfa15829ba SHA1 5d6366a4291c08c5c2339fb2ffd364de3f3bce6c SHA256 a7a1ea40ad1c025dfd8f0b0dde5cd37ab86520d046193bf641d57a3b4702b54b -DIST dovecot-1.1.4.tar.gz 2314155 RMD160 1990d1276454f6a376c7fe0681f0969d6ba57a29 SHA1 576d0d1323b77e7820f284fae788a98d174098f8 SHA256 37edb0f7f790879a3cc9a6ad9fb89bf12cc59fd5b1d39173fa34f004daf6a12e -DIST dovecot-1.1.6-managesieve-0.10.3.diff.gz 5912 RMD160 7284b3d81887e10cb174c64a0c7b3652e19e5272 SHA1 fff11aacf7df7f3d12d3163b36ca39f9681111fd SHA256 4a9612f788796d1c18653bc0aa5cc9269b3365d4a0358b3f6bf05cda206c139f -DIST dovecot-1.1.6.tar.gz 2320875 RMD160 35f0f2b9d9a661a9ee6fbc2a6ce4f08dedead5a3 SHA1 722fbe8cd199a8fabb01876df9da27460a0b19f9 SHA256 91ab9b78e2ed4230d96faa89aecde3e6c42ad7e2ef4858c292c5988b195cbbec DIST dovecot-1.1.7-managesieve-0.10.4.diff.gz 5912 RMD160 7d22cd364cb1e95eaf6525b61e93208a3aff39ba SHA1 fad08ecf9a4d5cbfc77e32268af9e11ad0a55431 SHA256 dc13a3c231c7bd29a452e16f3654c941bfc2a89c31e6b392ac76ca47cd897a76 DIST dovecot-1.1.7.tar.gz 2325617 RMD160 e2a53de356910094f2516b33f4155ded4cf5a6dc SHA1 d8554a1e1f04a84ddf009d1599526c016b36582b SHA256 915cae7684438c6335d0472ff20ec2fe44d620aa61f404ce91fd02a27434cf9f -DIST dovecot-1.1.8-managesieve-0.10.4.diff.gz 6215 RMD160 9be03e0637ea0ae92306e98cae28580453919b6d SHA1 ab046dbf69232aa64e905b45da23ea53b66e9302 SHA256 937b55fafe722c81a1ec650ce03fb69957b22ccc9ac77091c08b93a6e7b40000 -DIST dovecot-1.1.8.tar.gz 2353524 RMD160 05ebdc90c64bb0fb3f4e3b16490e0174d2325bf4 SHA1 8989d811dd3a9a060e6101bad302f7855358d1c5 SHA256 15e82f60b9116f592ade07bed218ff5aa0c7370f31e49f830241f37fcd2dbf48 -DIST dovecot-sieve-1.0.3.tar.gz 455806 RMD160 b575a1181fb2389a47db4cdd2815a47a2fe30b91 SHA1 48f67c33c08689c50a254bc6faeecba407d12294 SHA256 3f9e23abc64e7ae70343144b9a20f8da50aa102e3d9b85774ddd8ac0d1480fe1 DIST dovecot-sieve-1.1.5.tar.gz 468913 RMD160 825a8ec07d49527d8551cb5f3f86b638fddbafbd SHA1 672adf0a2f1627d96f97fc63fecaf024dd9f7a42 SHA256 ec1ea94311d5fb6cb5dd7e451728784afb39521a6a580f640b4d2115505a5ddf DIST dovecot-sieve-1.1.6.tar.gz 470071 RMD160 ed6f75dc1ffdb0ec51ecf3786aa71092851289f5 SHA1 c109ee8ab1c7ffece7940fb2e37104baf784440e SHA256 a2130a8e7d732bb341a96a96a24b4ddb66834e116573a10c17e68344fe712b36 -EBUILD dovecot-1.0.15-r1.ebuild 7351 RMD160 cdd0b0b9b824aa1262a0c254410e8f7865fc4d6d SHA1 19c95d9f7a2a9a2c89013e553ce7d536ab227073 SHA256 4a8231ee4099306ccd7a095608a2b483f9fad440f13afec7bb7ec8dd2c4346f7 EBUILD dovecot-1.1.10-r1.ebuild 8637 RMD160 8935982f02c476ae448de829fba7ce2993669381 SHA1 2f784a5e743393f3e92b5bccb3c57ee684275536 SHA256 2a7b4df5bd79a7894dde575d47a99a07b0a6044e7008bb823ffbb81e8bfac22e -EBUILD dovecot-1.1.10.ebuild 8588 RMD160 2a31388241f17bdbdb8432ab58439b9e95c75a76 SHA1 71909e4fb02da02bc51de77b3985b6ec9f75aaac SHA256 2f5c4b448244712f09fb82c1478c83b464fe94836795098908fcc8296905cde7 -EBUILD dovecot-1.1.4-r1.ebuild 8010 RMD160 c01c7452d28fbe5d5dc8826bc705bc1eefeef2cd SHA1 378c5c715177fdcef7d8c76a4e1fb2d76aa4a4c4 SHA256 93956a4240deb10d9d4573c6837fedc91c7a1645481fd734dd9ac6743b2de77e -EBUILD dovecot-1.1.6-r1.ebuild 8027 RMD160 531f79cd36afb83e35dc751c154b6c26fe18aff3 SHA1 067310f31ad356cee89bc30dfbcf4a464a5b2b59 SHA256 02c1094f2e7cbb216cb9eb9844bcc64512b99ef1d8bd09b6e544cbd814e2ee43 -EBUILD dovecot-1.1.6.ebuild 7967 RMD160 8f533c55e0f774765b6b7c37858d3a2f6a842473 SHA1 e2ef8901e3ee2f3973152d701949a4b15d98b5a5 SHA256 8a39abf135d06973b7b0dc0bc2e7d2392c650b73f155b4dcbf51b405535f47b4 EBUILD dovecot-1.1.7-r1.ebuild 8584 RMD160 9e0bf8fdbf8ed699fd131273241bdf3d4d3cb6bc SHA1 565e5a6bee35ccd3540682ac5f37a47d988700c0 SHA256 1a39caa28662acb24ee1413de6ef2efbc2dd093c2cfe717008fc3dc08f938a37 -EBUILD dovecot-1.1.7.ebuild 8164 RMD160 0f84b1a3463505fe4d273724644813f3a4e55000 SHA1 00e9e1d1ddfeca741a511b3cb9ad398c82ecab1e SHA256 24707562541b9a126118fa71f154ea3f0f148b7df2aa1f89279458ad386071d4 -EBUILD dovecot-1.1.8.ebuild 8679 RMD160 a216fd48d8e0df49d67ebfdcab8ca4b155c3fa84 SHA1 26137bfbac21d2f6e0800cc97d907b61994e5e60 SHA256 3bd72a45689e620a2e6a4587f7711439cb4b4efcf8bbece799d9a4d6957574ff -MISC ChangeLog 31839 RMD160 07f652c182517e99543a0c73d74f5ceacf560ac2 SHA1 a17d619c8d162b527bbdd4bfe9e9133f9f9f45ab SHA256 e048c2428c76f0f561b5df7e9de3682466c22a3830d9ffa78d0edd4bd5b9d091 +MISC ChangeLog 32241 RMD160 f9a79f9d760f9efc2eafb5a3be2d641396ba522f SHA1 1b4108ff04814d8ce12b95c3da4a138247d46d39 SHA256 77af52f7a8d79d25e91ee7707a08a9459f7be063cf84cefd75d269d9f3db7075 MISC metadata.xml 560 RMD160 1d9909ba298f97ddfedc7c37a9a74a8a00f0fc98 SHA1 062f2369f4349513f9e8167b6c781e50c62b95d0 SHA256 2cce3170119fffd0c9e8403f57cee03c128ca1e1d58950f087ced22b04ba75c8 diff --git a/net-mail/dovecot/dovecot-1.0.15-r1.ebuild b/net-mail/dovecot/dovecot-1.0.15-r1.ebuild deleted file mode 100644 index 51e7323189ea..000000000000 --- a/net-mail/dovecot/dovecot-1.0.15-r1.ebuild +++ /dev/null @@ -1,234 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.0.15-r1.ebuild,v 1.6 2008/08/08 21:34:22 maekke Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.0.3" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE="MANAGESIEVE-v9.3" - -SRC_URI="http://dovecot.org/releases/1.0/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE}.diff.gz )" - -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" -HOMEPAGE="http://www.dovecot.org/" - -SLOT="0" -LICENSE="LGPL-2.1" -KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd" - -IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE}.diff - eautoreconf - fi -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && dodoc README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.10.ebuild b/net-mail/dovecot/dovecot-1.1.10.ebuild deleted file mode 100644 index 5b8efe1cf5a2..000000000000 --- a/net-mail/dovecot/dovecot-1.1.10.ebuild +++ /dev/null @@ -1,268 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.10.ebuild,v 1.1 2009/01/27 14:10:35 wschlich Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.6" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.5" -MANAGESIEVE="managesieve-0.10.5" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" - -IUSE="berkdb debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - sys-libs/libcap - berkdb? ( >=sys-libs/db-4.2 ) - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_with berkdb db) \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r2 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi - - if grep -q '^ssl_key_password' "${ROOT}"/etc/dovecot/dovecot.conf; then - echo - ewarn "*** ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ***" - ewarn - ewarn "You have set ssl_key_password in dovecot.conf!" - ewarn "You are URGED to read the advice in the current" - ewarn "dovecot-example.conf regarding sensible handling" - ewarn "of that password, as it might be readable by any" - ewarn "user on your system who can access that file!" - ewarn - ewarn "*** ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ***" - echo - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.4-r1.ebuild b/net-mail/dovecot/dovecot-1.1.4-r1.ebuild deleted file mode 100644 index bb2c2b7ddfbd..000000000000 --- a/net-mail/dovecot/dovecot-1.1.4-r1.ebuild +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.4-r1.ebuild,v 1.5 2008/10/12 18:11:02 armin76 Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.5" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.3" -MANAGESIEVE="managesieve-0.10.3" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd" - -IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi - epatch "${FILESDIR}"/${P}-expire.patch -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r1 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.6-r1.ebuild b/net-mail/dovecot/dovecot-1.1.6-r1.ebuild deleted file mode 100644 index d94a3522c1b7..000000000000 --- a/net-mail/dovecot/dovecot-1.1.6-r1.ebuild +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.6-r1.ebuild,v 1.2 2008/11/08 20:47:58 klausman Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.5" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.3" -MANAGESIEVE="managesieve-0.10.3" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" - -IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r2 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - fperms 600 /etc/dovecot/dovecot.conf # bug #245316 - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.6.ebuild b/net-mail/dovecot/dovecot-1.1.6.ebuild deleted file mode 100644 index 167469d51b22..000000000000 --- a/net-mail/dovecot/dovecot-1.1.6.ebuild +++ /dev/null @@ -1,251 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.6.ebuild,v 1.4 2008/11/06 09:12:01 armin76 Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.5" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.3" -MANAGESIEVE="managesieve-0.10.3" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd" - -IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r1 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.7.ebuild b/net-mail/dovecot/dovecot-1.1.7.ebuild deleted file mode 100644 index 2a6dae1bff89..000000000000 --- a/net-mail/dovecot/dovecot-1.1.7.ebuild +++ /dev/null @@ -1,258 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.7.ebuild,v 1.1 2008/11/25 17:38:57 wschlich Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.5" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.4" -MANAGESIEVE="managesieve-0.10.3" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" - -IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r2 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - fperms 600 /etc/dovecot/dovecot.conf # bug #245316 - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_preinst() { - if [[ -e "${ROOT}"/etc/dovecot/dovecot.conf ]]; then - chmod 0600 "${ROOT}"/etc/dovecot/dovecot.conf # bug #245316 - fi -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/dovecot-1.1.8.ebuild b/net-mail/dovecot/dovecot-1.1.8.ebuild deleted file mode 100644 index 886691612c59..000000000000 --- a/net-mail/dovecot/dovecot-1.1.8.ebuild +++ /dev/null @@ -1,270 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.8.ebuild,v 1.1 2009/01/13 18:01:25 wschlich Exp $ - -inherit autotools eutils ssl-cert versionator - -MY_P="${P/_/.}" -MY_PV12=$(get_version_component_range 1-2 ${PV}) -S="${WORKDIR}/${MY_P}" -SIEVE="dovecot-sieve-1.1.6" -SIEVE_S="${WORKDIR}/${SIEVE}" -MANAGESIEVE_PATCH="managesieve-0.10.4" -MANAGESIEVE="managesieve-0.10.4" -MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}" - -SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz -sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz ) -managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz -http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.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" -KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" - -IUSE="berkdb debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail" - -# Developer documentation, controlled by the doc USE flag -DEVDOCS="auth-protocol index multiaccess securecoding" - -DEPEND=">=sys-apps/sed-4 - sys-libs/libcap - berkdb? ( >=sys-libs/db-4.2 ) - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - ssl? ( dev-libs/openssl ) - postgres? ( virtual/postgresql-base ) - mysql? ( virtual/mysql ) - sqlite3? ( =dev-db/sqlite-3* ) - vpopmail? ( net-mail/vpopmail )" - -RDEPEND="${DEPEND} - >=net-mail/mailbase-0.00-r8" - -src_unpack() { - unpack ${A} - cd "${S}" - if use managesieve; then - epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff - eautoreconf - fi - epatch "${FILESDIR}"/${P}-5417c01fff5b.patch - epatch "${FILESDIR}"/${P}-b42c06ef8213.patch -} - -pkg_setup() { - if ! use sieve && use managesieve; then - eerror "managesieve USE flag selected but sieve USE flag unselected" - die "USE flag problem" - fi - # Add user and group for login process (same as for fedora/redhat) - enewgroup dovecot 97 - enewuser dovecot 97 -1 /dev/null dovecot -} - -src_compile() { - local myconf= - use ssl && myconf="${myconf} --with-ssl=openssl" \ - || myconf="${myconf} --without-ssl" - econf \ - --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ - --enable-header-install \ - --with-ioloop=best \ - --with-poll=best \ - $(use_with berkdb db) \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with pam) \ - $(use_with pop3d) \ - $(use_with postgres pgsql) \ - $(use_with sqlite3 sqlite) \ - $(use_with vpopmail) \ - ${myconf} \ - || die "configure failed" - emake || die "make failed" - - if use sieve; then - einfo "Building sieve" - cd "${SIEVE_S}" - econf --with-dovecot="${S}" || die "configure failed (sieve)" - emake || die "make failed (sieve)" - fi - - if use managesieve; then - einfo "Building managesieve" - cd "${MANAGESIEVE_S}" - econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \ - || die "configure failed (managesieve)" - emake || die "make failed (managesieve)" - fi -} - -src_install () { - make DESTDIR="${D}" install || die "make install failed" - use suid && fperms u+s /usr/libexec/dovecot/deliver - - rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf - - newinitd "${FILESDIR}"/dovecot.init-r2 dovecot - - # Documentation - rm -rf "${D}"/usr/share/doc/dovecot - dodoc AUTHORS NEWS README TODO dovecot-example.conf - use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve - if use doc; then - dodoc doc/*.txt - else - local x= n= - for x in doc/*.txt; do - n=$(basename "${x}" .txt) - [[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}" - done - fi - - # Create the dovecot.conf file from the dovecot-example.conf file that - # the dovecot folks nicely left for us.... - local conf="${D}/etc/dovecot/dovecot.conf" - mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf - - # .maildir is the Gentoo default, but we need to support mbox to - local mail_location="maildir:~/.maildir" - 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|' "${conf}" - fi - sed -i -e \ - "s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \ - || die "failed to update mail location settings in dovecot.conf" - - # We're using pam files (imap and pop3) provided by mailbase - if use pam; then - sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ - "${conf}" || die "failed to update PAM settings in dovecot.conf" - # mailbase does not provide a managesieve pam file - use managesieve && dosym imap /etc/pam.d/managesieve - fi - - # Listen on ipv6 and ipv4 - 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_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ - -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ - "${conf}" || die "failed to update SSL settings in dovecot.conf" - fi - - # Install SQL configuration - if use mysql || use postgres; then - cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf - fperms 600 /etc/dovecot/dovecot-sql.conf - sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \ - || die "failed to update SQL settings in dovecot-sql.conf" - dodoc doc/dovecot-sql-example.conf - fi - - # Install LDAP configuration - if use ldap; then - cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf - fperms 600 /etc/dovecot/dovecot-ldap.conf - sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \ - || die "failed to update LDAP settings in dovecot-ldap.conf" - dodoc doc/dovecot-ldap-example.conf - fi - - # Install sieve plugin - if use sieve; then - make -C "${SIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (sieve)" - fi - - # Install managesieve - if use managesieve; then - make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \ - || die "make install failed (managesieve)" - fi - - dodir /var/run/dovecot - fowners root:0 /var/run/dovecot - fperms 0755 /var/run/dovecot - keepdir /var/run/dovecot/login - fowners root:dovecot /var/run/dovecot/login - fperms 0750 /var/run/dovecot/login -} - -get_config_var() { - local varname=${1} - if [[ -z ${varname} ]]; then - die "${FUNCNAME}: variable name missing" - fi - sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \ - "${ROOT}"/etc/dovecot/dovecot.conf -} - -pkg_postinst() { - elog "The Dovecot configuration has vastly changed since 0.99." - elog "You are encouraged to start afresh with a new configuration file." - elog "see http://wiki.dovecot.org/ for configuration examples." - - if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then - echo - ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot" - fi - - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - 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 - chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem} - fi - if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then - echo - elog "Dovecot requires DH SSL Parameters if you use SSL connections" - elog "These take some time to make, and dovecot will create them before" - elog "it allows any SSL connections." - elog "You can create them now before starting dovecot like so" - elog " emerge --config =${PF}" - fi - fi - - if grep -q '^ssl_key_password' "${ROOT}"/etc/dovecot/dovecot.conf; then - echo - ewarn "*** ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ***" - ewarn - ewarn "You have set ssl_key_password in dovecot.conf!" - ewarn "You are URGED to read the advice in the current" - ewarn "dovecot-example.conf regarding sensible handling" - ewarn "of that password, as it might be readable by any" - ewarn "user on your system who can access that file!" - ewarn - ewarn "*** ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ***" - echo - fi -} - -pkg_config() { - local base_dir="$(get_config_var base_dir)" - base_dir="${base_dir:-/var/run/dovecot}" - - if use ssl; then - einfo "Regenerating SSL parameters. This will take some time." - "${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat" - fi -} diff --git a/net-mail/dovecot/files/dovecot-1.1.4-expire.patch b/net-mail/dovecot/files/dovecot-1.1.4-expire.patch deleted file mode 100644 index 76a4e439bc1b..000000000000 --- a/net-mail/dovecot/files/dovecot-1.1.4-expire.patch +++ /dev/null @@ -1,36 +0,0 @@ - -# HG changeset patch -# User Timo Sirainen <tss@iki.fi> -# Date 1223320000 -10800 -# Node ID 96dfe8fb57b8e061b4339cbf3d50fc8067dc50ec -# Parent 9f95b3c28cc392b6c9534a69e6a2aa75ea54f5eb -Expire plugin was crashing because of previous change. - ---- a/src/plugins/expire/expire-plugin.c Mon Oct 06 19:24:03 2008 +0300 -+++ b/src/plugins/expire/expire-plugin.c Mon Oct 06 22:06:40 2008 +0300 -@@ -99,6 +99,7 @@ expire_mailbox_transaction_commit(struct - { - struct expire_mailbox *xpr_box = EXPIRE_CONTEXT(t->box); - struct expire_transaction_context *xt = EXPIRE_CONTEXT(t); -+ struct mailbox *box = t->box; - time_t new_stamp; - bool update_dict = FALSE; - int ret; -@@ -117,13 +118,14 @@ expire_mailbox_transaction_commit(struct - i_free(xt); - return -1; - } -+ /* transaction is freed now */ -+ t = NULL; - - if (xt->first_expunged || xt->saves) T_BEGIN { - const char *key, *value; - - key = t_strconcat(DICT_PATH_SHARED, expire.username, "/", -- t->box->storage->ns->prefix, -- t->box->name, NULL); -+ box->storage->ns->prefix, box->name, NULL); - if (!xt->first_expunged && xt->saves) { - /* saved new mails. dict needs to be updated only if - this is the first mail in the database */ - diff --git a/net-mail/dovecot/files/dovecot-1.1.8-5417c01fff5b.patch b/net-mail/dovecot/files/dovecot-1.1.8-5417c01fff5b.patch deleted file mode 100644 index 1822f82e08bc..000000000000 --- a/net-mail/dovecot/files/dovecot-1.1.8-5417c01fff5b.patch +++ /dev/null @@ -1,26 +0,0 @@ - -# HG changeset patch -# User Timo Sirainen <tss@iki.fi> -# Date 1231444007 18000 -# Node ID 5417c01fff5be03b9b41f0da1d2bf1902c55aaa0 -# Parent 0041d055acac5ca09428262dc8cdec91d7008c0b -mbox: Fixed assert-crash with pop3_lock_session=yes - ---- a/src/lib-storage/index/mbox/mbox-transaction.c Thu Jan 08 12:22:11 2009 -0500 -+++ b/src/lib-storage/index/mbox/mbox-transaction.c Thu Jan 08 14:46:47 2009 -0500 -@@ -50,8 +50,12 @@ static int mbox_transaction_commit(struc - if (mbox_unlock(mbox, lock_id) < 0) - ret = -1; - } -- i_assert(mbox->ibox.box.transaction_count > 0 || -- mbox->mbox_lock_type == F_UNLCK); -+ if (mbox->mbox_global_lock_id == 0) { -+ i_assert(mbox->ibox.box.transaction_count > 0 || -+ mbox->mbox_lock_type == F_UNLCK); -+ } else { -+ i_assert(mbox->mbox_lock_type == F_WRLCK); -+ } - return ret; - } - - diff --git a/net-mail/dovecot/files/dovecot-1.1.8-b42c06ef8213.patch b/net-mail/dovecot/files/dovecot-1.1.8-b42c06ef8213.patch deleted file mode 100644 index 12d92b1449c2..000000000000 --- a/net-mail/dovecot/files/dovecot-1.1.8-b42c06ef8213.patch +++ /dev/null @@ -1,30 +0,0 @@ - -# HG changeset patch -# User Timo Sirainen <tss@iki.fi> -# Date 1231444040 18000 -# Node ID b42c06ef8213c8c412f0fff26146284b79b9413d -# Parent 5417c01fff5be03b9b41f0da1d2bf1902c55aaa0 -mbox: Fixed crash with pop3_lock_session=yes if dotlock already existed. - ---- a/src/lib-storage/index/mbox/mbox-storage.c Thu Jan 08 14:46:47 2009 -0500 -+++ b/src/lib-storage/index/mbox/mbox-storage.c Thu Jan 08 14:47:20 2009 -0500 -@@ -569,6 +569,9 @@ mbox_alloc_mailbox(struct mbox_storage * - if ((storage->storage.flags & MAIL_STORAGE_FLAG_KEEP_HEADER_MD5) != 0) - mbox->mbox_save_md5 = TRUE; - -+ index_storage_mailbox_init(&mbox->ibox, name, flags, -+ want_memory_indexes(storage, path)); -+ - if ((flags & MAILBOX_OPEN_KEEP_LOCKED) != 0) { - if (mbox_lock(mbox, F_WRLCK, &mbox->mbox_global_lock_id) <= 0) { - struct mailbox *box = &mbox->ibox.box; -@@ -584,8 +587,6 @@ mbox_alloc_mailbox(struct mbox_storage * - } - } - -- index_storage_mailbox_init(&mbox->ibox, name, flags, -- want_memory_indexes(storage, path)); - return mbox; - } - - diff --git a/net-mail/dovecot/files/dovecot.init-r1 b/net-mail/dovecot/files/dovecot.init-r1 deleted file mode 100644 index 47bc60239c18..000000000000 --- a/net-mail/dovecot/files/dovecot.init-r1 +++ /dev/null @@ -1,56 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r1,v 1.2 2008/04/21 17:07:52 wschlich Exp $ - -opts="reload" - -depend() { - need localmount net - after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd - use logger -} - -checkconfig() { - DOVECOT_INSTANCE=${SVCNAME##*.} - if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then - DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf - else - DOVECOT_CONF=/etc/dovecot/dovecot.conf - fi - if [ ! -e ${DOVECOT_CONF} ]; then - eerror "You will need an ${DOVECOT_CONF} first" - return 1 - fi - DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | sed -ne '/^base_dir/{s#^base_dir:[[:space:]]*\(.*[^/]\)/\?$#\1#;p}') - DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot} - DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid - if [ ! -d "${DOVECOT_BASEDIR}" ]; then - ebegin "Creating missing base_dir ${DOVECOT_BASEDIR}" - install -d -o root -g root -m 0755 "${DOVECOT_BASEDIR}" - eend $? - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/sbin/dovecot \ - --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" - eend $? -} - -stop() { - checkconfig || return 1 - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/sbin/dovecot \ - --pidfile "${DOVECOT_PIDFILE}" - eend $? -} - -reload() { - ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes" - start-stop-daemon --stop --oknodo --exec /usr/sbin/dovecot \ - --pidfile "${DOVECOT_PIDFILE}" --signal HUP - eend $? -} |