summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2011-05-28 17:42:28 +0000
committerEray Aslan <eras@gentoo.org>2011-05-28 17:42:28 +0000
commit0e91fd86f8e943790a755ed01a8ef101a5d7997a (patch)
treee835737aded5cc81732a9ea80ad2e2195d2c7b97 /net-mail
parentAdd patch to fix bug 368275 again (diff)
downloadhistorical-0e91fd86f8e943790a755ed01a8ef101a5d7997a.tar.gz
historical-0e91fd86f8e943790a755ed01a8ef101a5d7997a.tar.bz2
historical-0e91fd86f8e943790a755ed01a8ef101a5d7997a.zip
remove vulnerable
Package-Manager: portage-2.1.9.50/cvs/Linux x86_64
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/dovecot/ChangeLog7
-rw-r--r--net-mail/dovecot/Manifest34
-rw-r--r--net-mail/dovecot/dovecot-1.2.16.ebuild261
-rw-r--r--net-mail/dovecot/dovecot-2.0.11.ebuild278
-rw-r--r--net-mail/dovecot/dovecot-2.0.12-r1.ebuild278
-rw-r--r--net-mail/dovecot/dovecot-2.0.12-r2.ebuild281
-rw-r--r--net-mail/dovecot/dovecot-2.0.12.ebuild278
7 files changed, 22 insertions, 1395 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog
index 4ae24923bd66..048a50c7dd7b 100644
--- a/net-mail/dovecot/ChangeLog
+++ b/net-mail/dovecot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-mail/dovecot
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.307 2011/05/28 16:48:29 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.308 2011/05/28 17:42:28 eras Exp $
+
+ 28 May 2011; Eray Aslan <eras@gentoo.org> -dovecot-1.2.16.ebuild,
+ -dovecot-2.0.11.ebuild, -dovecot-2.0.12.ebuild, -dovecot-2.0.12-r1.ebuild,
+ -dovecot-2.0.12-r2.ebuild:
+ Remove vulnerable versions
28 May 2011; Raúl Porcel <armin76@gentoo.org> dovecot-1.2.17.ebuild,
dovecot-2.0.13.ebuild:
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
index c64c5772ef8d..88b8cfa0562d 100644
--- a/net-mail/dovecot/Manifest
+++ b/net-mail/dovecot/Manifest
@@ -1,35 +1,33 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
AUX dovecot-1.2.init 1720 RMD160 0f641929fd2c58878f6d69e6ba454b9110603031 SHA1 c498c5208f0504f2eadc460d515f563f907d05ef SHA256 9c7ef516324cd5a17c5f28f6af272d8d06106420c747ff5c4da6fa14a3ac316c
AUX dovecot-2.0.12-sdbox.patch 545 RMD160 92b9d80e3cd1c2f915d4c4fcc751a8267c9cf619 SHA1 6046b2a8076b478deab2003142b31020f875fb5e SHA256 f4f70d4ff9453e5ec3246b3bef27adf101de84ce2d1dcff50577ff79b22d9441
AUX dovecot.init-r2 1618 RMD160 5b5c88847c096282f5ab94b82db7fab5c9e42aa3 SHA1 d9f61ac897a6e377dc8cf2c6da4952a4ff7918e9 SHA256 6ad0d1fc09c41ba390e717667e4dad3838f669ef7b227e3cbdb60c499758a901
-DIST dovecot-1.2-managesieve-0.11.12.tar.gz 406261 RMD160 f91a1fd059cebcb3c934192f1db57eb75ea4baa6 SHA1 c632c74bfc5e0c0c0a00c1445a65cb012423ceba SHA256 c43d2d2ab4abf7aba5061984f01dd4880118504c101b6451bd530a7edb8e3f6a
DIST dovecot-1.2-managesieve-0.11.13.tar.gz 405999 RMD160 9deed0637f1b5942a1b4996a343fed1b23301023 SHA1 cd5d2149250072aa8079f9db967cfeffc1b57c53 SHA256 2a9b0d6e048fa9294890ca1bee72fe3f41431aa806d0916bb1b6bbe2a8d2c976
-DIST dovecot-1.2-sieve-0.1.18.tar.gz 1052057 RMD160 f61b1ec03d861b964666a374a8c42a7b98c1fba1 SHA1 e661a6ab79b2987dedec1ed84cbd957755882ade SHA256 4a39bdf60d530cc27a1bc113fd3cb1f7adb6cc857578ada3720e40385c2cc7fe
DIST dovecot-1.2-sieve-0.1.19.tar.gz 1048324 RMD160 49808f393d002567f086168b6a3aae042529ad43 SHA1 9b5a8a1c89bb3af5f70a031a560d9833ff5d4101 SHA256 399335d28fe8d45b85d4d0b994739af941fe1bd77a8b46d6f1d07af7c7c95115
-DIST dovecot-1.2.16-managesieve-0.11.12.diff.gz 6459 RMD160 58369056e8f0f094fd28adf64d4de4dada24a955 SHA1 54000390e45d0d3978158322ab6377f79cd87fa0 SHA256 f2a933405361856a983235aec5e013df841bcc32fc0dc0afa2f0f9f32d16c251
-DIST dovecot-1.2.16.tar.gz 2949818 RMD160 50fbaec8a7a258be17912ea962cafaa51b4e8bc7 SHA1 84246be1c285de935bbe7649b1920efea91b12d6 SHA256 2b429a8a1666ccc97d159ce0df408ae9b524dcb72cffc7a3aabfc1c6da5dfb4c
DIST dovecot-1.2.17-managesieve-0.11.13.diff.gz 6461 RMD160 f03842bc846395b55d99c657123d9d82a3c855f4 SHA1 ace323fcbdb4ecb524068ecede3cc704c7637c93 SHA256 6b3a3b5263adc5d30275201fcc8c8ed0b2a659f85eb5b9be65c8000884343b3e
DIST dovecot-1.2.17.tar.gz 2983431 RMD160 59f619dba2aadef3cccd6ceb045a2e75a11700a2 SHA1 457b16791a15e739c6bc8b02bc9c78f9ad794e39 SHA256 6f39f86a06ddbaa8e264d03046c2fc8870f97ea27c1e52eb5bc96c3b754f0bed
-DIST dovecot-2.0-pigeonhole-0.2.2.tar.gz 1199973 RMD160 7aa58935acb5a89348c53f8e6db44045d56196d9 SHA1 83a1477e7c6b631020f24e6beb84df1676c2028a SHA256 3c5fdbf8002f1571457b0dbd714107c83245ac8df997c8a6ba594bf809392f4e
DIST dovecot-2.0-pigeonhole-0.2.3.tar.gz 1213027 RMD160 63898d5b71aee933399e9e76b6a1784b3b31197e SHA1 c8f67304028e21f8ff33163427fd4f47fa738d9d SHA256 5f6f95f8e504e19c574d9d65fce382a2b3f8709ccf2d86beb709b09bf337b113
-DIST dovecot-2.0.11.tar.gz 3225716 RMD160 e63234ad2c000f55b701ee2a27865c91b1d02beb SHA1 e79cce204d06a3cabf43dbeb4f0a9bc109d4d095 SHA256 5979af86719bcf6a99530029c74c02c865899fcde7ce92ac05d34d81b6e20de4
-DIST dovecot-2.0.12.tar.gz 3257165 RMD160 9b4aee66a187517e1ef0d8976c461a4f8c9709ba SHA1 6d991e8d68d6ec8e956bfb8cd71df2b15021079a SHA256 05322d7378d19991c098f231b9bc0296d53e499d3b12b91ab92a3e2d10ab43d6
DIST dovecot-2.0.13.tar.gz 3272542 RMD160 2c0edd03aba7935e6db18af1384a26bf0b5b432e SHA1 31d556bd1659fb10e5edb45bab8951911151bbfb SHA256 2b512263ec05bbd74cde5c697ad12250d9268eba1c8ce4a8144adea69308675d
-EBUILD dovecot-1.2.16.ebuild 8827 RMD160 c4da85e63c65784c50fca6b8cbfa4d276432c254 SHA1 dedcc6b7da960d89a7b66024556c1b1df1b12718 SHA256 980b1cc7b84add1c4b49231eef821eefa6d8edbf58181b2520e44beb9452d18a
EBUILD dovecot-1.2.17.ebuild 8744 RMD160 1c40bc02a47f1bd32bab43c5a37129a53394bbe8 SHA1 5ecf16dbef283f4c0279aba519d129d45e7b2298 SHA256 8f086c275f79bda4f54e2c9b9758c8e636bee12e106748475acac0967238082e
-EBUILD dovecot-2.0.11.ebuild 8950 RMD160 66f6a0fcc589e592e96ea3fc59169951469f4249 SHA1 a60c7b9ddd7289f13e1376d89b28fd0bc5b5cda4 SHA256 280c502afd1e2d4f26b2aa5dcdc3b274028b25e7b602993bc1f495b9611cc301
-EBUILD dovecot-2.0.12-r1.ebuild 8955 RMD160 2f3bffc943ebb97f63d94c457317534a6185d1bf SHA1 bac8a32647366c0f6bee1018628861c09acff7e4 SHA256 511240141da63c5b1d81decab47848c40f77cc9d22b2c93e84728078e60800a6
-EBUILD dovecot-2.0.12-r2.ebuild 8986 RMD160 b1ced5a7d404edbbc3e3227918060885d855fec1 SHA1 8cd4488f4dc7b81149adabaaeaaf02233c6070a2 SHA256 43a457811fb9f64f59f68049a14d2e1a20c123b217d410427d73c73339123d36
-EBUILD dovecot-2.0.12.ebuild 8952 RMD160 ab9feb663d4b614ab998bae3a71eca6abc8d1dea SHA1 23d63bb322f9068c645ef0903a2ce7c2273a9abc SHA256 0b832f8941ea140b666565e95a67ad67765900c653ed685c543051b9bebf2bb2
EBUILD dovecot-2.0.13.ebuild 8930 RMD160 e70175c0076ccc4567fdc917caa936e96a6c388b SHA1 8a0087168f786c3e92a3f9c7d1918236fbc676ac SHA256 32c718db40516dbd2bc1e56cb07f10cb374644b9bf0f76235edaedf70eeb3343
-MISC ChangeLog 48380 RMD160 b962228602e026ebb9a5db60c5312d3fa750b4d8 SHA1 0c242defcb12e0d22234cbb8cb30cb75a6bb9f0f SHA256 f2ee1b3977967444644929ef65635c3e4c8e111d46cf572f2b553d5d682daf62
+MISC ChangeLog 48581 RMD160 492be759123ee2233c1221287c2ebae7de92aa93 SHA1 45fc3bb0cd485a35b7f075b0032313296c2a787a SHA256 4181e16ba2bc3923bc0682bd13063927f5683f5900f535a948cd37badae880fa
MISC metadata.xml 703 RMD160 a7a55f21501b09979922b24a931fbf7a5bbf86b1 SHA1 b4c9f2cd2a2fae951e319960ce3aba33d56301cf SHA256 3a897cb8fc88c875563623d2757f7b0ebd08743ba4d4fcbdfe37072d99694c58
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk3hJ2QACgkQuQc30/atMkBz5QCgmAF7AOjgVA8mvoVXTs2++7LZ
-OEAAn1a7uPQNE38HkBR/++4aDAqv5Tmn
-=8d1/
+iQIcBAEBCAAGBQJN4TQUAAoJEHfx8XVYajsfpQYP/jjw7i8jPIfPMQxAJvjHPZZU
+IF9bY57aXiF75SRhZ1E2fuPfEHQPaQGzrjtnOy9oUHObt3T3HWdyYmZjfbo712yx
+C9Jp7TXzEPxMq5i9EyOZgN0GfPd6QU93V7wTZNP2bwrf0/bIBHzqfF7sV8Qvw55Q
+/hPQp2r3YCuITq9dHGKxVDxZ/dngrpE2RluN+3F2kaPXUIjuwkSPZ837HTtXLaAW
+goxT8FfTxiSYZnSTGbUp1xJAFEsn48MKVHvccDcGUTdnGNqX3XG3iEmOtjCCbNXR
+rzYW5/3RXE18HIGMNm0/CYhVJ5w6qhlZ2zh8LtVf1P/NppA758sVVPm4nM1Oj2OY
+appukqisXXfiZm4hW7+1oYoPKHNBu7f29AVBYskmveH9OOi3tB+HN7E/a2PVjFkS
+xttb/jjwyQqDeG+XmezNSj207isKRul+zT0gFEb7z2oCcC2a8b0V+F1ET7dPB4v8
+1CctIqmEMhKx7TpWbjO9ARd9cYTSv5s/SwhLyqU4V2W+3CZ8e++JZJGuwsoyzvCa
+z+3HHFd33UaEUmT7rMz04ba6K6F/M5ItdjNtW13uWztTiu7AfpiAqSBLwfqRErPF
+zqZmoZ3wL/JSplgbmna4GoIBjDHCYGmpEPJkYNJh2EVubtCBM2dkg1DIBT2cxJt6
+JmwUhd1DgrylrvkmO4pp
+=Fsqw
-----END PGP SIGNATURE-----
diff --git a/net-mail/dovecot/dovecot-1.2.16.ebuild b/net-mail/dovecot/dovecot-1.2.16.ebuild
deleted file mode 100644
index 9bb8a686640e..000000000000
--- a/net-mail/dovecot/dovecot-1.2.16.ebuild
+++ /dev/null
@@ -1,261 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.2.16.ebuild,v 1.6 2011/01/30 18:41:30 armin76 Exp $
-
-EAPI="3"
-
-inherit eutils versionator ssl-cert
-
-major_minor="$( get_version_component_range 1-2 )"
-sieve_version="0.1.18"
-managesieve_version="0.11.12"
-SRC_URI="http://dovecot.org/releases/${major_minor}/${P}.tar.gz
- sieve? ( http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-sieve-${sieve_version}.tar.gz )
- managesieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${PV}-managesieve-${managesieve_version}.diff.gz
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-managesieve-${managesieve_version}.tar.gz
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-sieve-${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 ppc sparc x86"
-
-IUSE="berkdb caps cydir dbox doc ipv6 kerberos ldap +maildir managesieve mbox mysql pam postgres sieve sqlite +ssl suid vpopmail zlib"
-
-DEPEND="berkdb? ( sys-libs/db )
- caps? ( sys-libs/libcap )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sqlite? ( dev-db/sqlite )
- ssl? ( dev-libs/openssl )
- vpopmail? ( net-mail/vpopmail )"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00-r8"
-
-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
-
- if use dbox && ! use maildir; then
- ewarn "dbox USE flag selected but maildir USE flag unselected"
- ewarn "maildir USE flag will be turned on"
- fi
-
- # Add user and group for login process (same as for fedora/redhat)
- enewgroup dovecot 97
- enewuser dovecot 97 -1 /dev/null dovecot
- # add "mail" group for suid'ing. Better security isolation.
- if use suid; then
- enewgroup mail
- fi
-}
-
-src_prepare() {
- use managesieve && epatch "${WORKDIR}"/dovecot-${PV}-managesieve-${managesieve_version}.diff
-}
-
-src_configure() {
- local conf=""
-
- if use postgres || use mysql || use sqlite; then
- conf="${conf} --with-sql"
- fi
-
- local storages=""
- for storage in cydir dbox maildir mbox; do
- use ${storage} && storages="${storage} ${storages}"
- done
- if use dbox && ! use maildir; then
- storages="${storages/dbox/dbox maildir}"
- fi
- [ "${storages}" ] || storages="maildir"
-
- econf \
- --sysconfdir="${EPREFIX}/etc/dovecot" \
- --localstatedir="${EPREFIX}/var" \
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
- $( use_with berkdb db ) \
- $( use_with caps libcap ) \
- $( use_with kerberos gssapi ) \
- $( use_with ldap ) \
- $( use_with mysql ) \
- $( use_with pam ) \
- $( use_with postgres pgsql ) \
- $( use_with sqlite ) \
- $( use_with ssl ) \
- $( use_with vpopmail ) \
- $( use_with zlib ) \
- $( use_with ldap) \
- --with-storages="${storages}" \
- --with-pic \
- --enable-header-install \
- ${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 || die "emake dovecot-config failed"
- cd "../dovecot-${major_minor}-sieve-${sieve_version}"
- econf --with-dovecot="${S}"
-
- if use managesieve; then
- cd "../dovecot-${major_minor}-managesieve-${managesieve_version}"
- econf --with-dovecot="${S}" --with-dovecot-sieve="../dovecot-${major_minor}-sieve-${sieve_version}"
- fi
- fi
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use sieve || use managesieve; then
- cd "../dovecot-${major_minor}-sieve-${sieve_version}"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use managesieve; then
- cd "../dovecot-${major_minor}-managesieve-${managesieve_version}"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
- fi
- fi
-}
-
-src_install () {
- emake DESTDIR="${ED}" install || die "make install failed"
-
- # 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 /usr/libexec/dovecot/deliver
- fperms 4750 /usr/libexec/dovecot/deliver
- fi
-
- rm -f "${ED}"/etc/dovecot/dovecot-{ldap,sql}-example.conf
-
- newinitd "${FILESDIR}"/dovecot-1.2.init dovecot
-
- rm -rf "${ED}"/usr/share/doc/dovecot
-
- if use ssl; then
- sed -i -e 's,^CERTDIR=.*,CERTDIR=\$SSLDIR/dovecot,' \
- -e 's,^KEYDIR=.*,KEYDIR=\$SSLDIR/dovecot,' \
- -e 's,^CERTFILE=.*,CERTFILE=\$CERTDIR/server.pem,' \
- -e 's,^KEYFILE=.*,KEYFILE=\$KEYDIR/server.key,' \
- doc/mkcert.sh || die "failed to update SSL settings in mkcert.sh"
- fi
-
- dodoc AUTHORS NEWS README TODO dovecot-example.conf || die "basic dodoc failed"
- dodoc doc/*.{txt,cnf,xml,sh} || die "dodoc doc/ failed"
- docinto wiki
- dodoc doc/wiki/* || die "dodoc doc/wiki/ failed"
-
- # 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"
- mv "${ED}"/etc/dovecot/dovecot-example.conf "${ED}"/etc/dovecot/dovecot.conf
-
- # .maildir is the Gentoo default, but we need to support mbox too
- 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 sieve pam file
- use managesieve && dosym imap /etc/pam.d/sieve
- 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 "${ED}"/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 "${ED}"/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
-
- if use sieve || use managesieve; then
- cd "../dovecot-${major_minor}-sieve-${sieve_version}"
- emake DESTDIR="${ED}" install || die "make install failed (sieve)"
-
- if use managesieve; then
- cd "../dovecot-${major_minor}-managesieve-${managesieve_version}"
- emake DESTDIR="${ED}" install || die "make install failed (managesieve)"
- fi
- fi
-
- dodir /var/run/dovecot
- fowners root:root /var/run/dovecot
- fperms 0755 /var/run/dovecot
- fowners root:dovecot /var/run/dovecot/login
- fperms 0750 /var/run/dovecot/login
-
- ewarn "If you are upgrading from Dovecot 1.1, read "
- ewarn " http://wiki.dovecot.org/Upgrading/1.2"
- if use sieve || use managesieve; then
- ewarn " http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve"
- ewarn " In particular, do not forget to change cmusieve to sieve"
- fi
-}
-
-pkg_postinst() {
- if use ssl; then
- # Let's not make a new certificate if we already have one
- if ! [[ -e "${EROOT}"/etc/ssl/dovecot/server.pem && \
- -e "${EROOT}"/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 "${EROOT}"/etc/ssl/dovecot/server.{key,pem}
- fi
- fi
-
- if grep -q '^ssl_key_password' "${EROOT}"/etc/dovecot/dovecot.conf; then
- echo
- ewarn "You have set ssl_key_password in dovecot.conf!"
- ewarn "You are URGED to read the advice in the current"
- ewarn "dovecot.conf regarding sensible handling of that"
- ewarn "password, as it might be readable by any user"
- ewarn "on your system who can access that file!"
- fi
-}
diff --git a/net-mail/dovecot/dovecot-2.0.11.ebuild b/net-mail/dovecot/dovecot-2.0.11.ebuild
deleted file mode 100644
index 54c1d71a1f72..000000000000
--- a/net-mail/dovecot/dovecot-2.0.11.ebuild
+++ /dev/null
@@ -1,278 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.0.11.ebuild,v 1.5 2011/05/21 08:59:28 tomka Exp $
-
-EAPI="3"
-
-inherit eutils versionator ssl-cert
-
-MY_P="${P/_/.}"
-major_minor="$( get_version_component_range 1-2 )"
-sieve_version="0.2.2"
-SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
- sieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
- )
- managesieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${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 ~ia64 ~ppc ~sparc x86 ~x86-fbsd"
-
-IUSE="berkdb bzip2 caps cydir sdbox doc ipv6 kerberos ldap +maildir managesieve mbox mdbox mysql pam postgres sieve sqlite +ssl suid vpopmail zlib"
-
-DEPEND="berkdb? ( sys-libs/db )
- caps? ( sys-libs/libcap )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sqlite? ( dev-db/sqlite )
- ssl? ( dev-libs/openssl )
- vpopmail? ( net-mail/vpopmail )
- virtual/libiconv"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00-r8"
-
-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
-
- # Add user and group for login process (same as for fedora/redhat)
- # default internal user
- enewgroup dovecot 97
- enewuser dovecot 97 -1 /dev/null dovecot
- # add "mail" group for suid'ing. Better security isolation.
- if use suid; then
- enewgroup mail
- fi
- # default login user
- enewuser dovenull -1 -1 /dev/null
-}
-
-src_configure() {
- local conf=""
-
- if use postgres || use mysql || use sqlite; then
- conf="${conf} --with-sql"
- fi
-
- local storages=""
- for storage in cydir sdbox mdbox maildir mbox; 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" \
- $( use_with bzip2 bzlib ) \
- $( use_with caps libcap ) \
- $( use_with kerberos gssapi ) \
- $( use_with ldap ) \
- $( use_with mysql ) \
- $( use_with pam ) \
- $( use_with postgres pgsql ) \
- $( use_with sqlite ) \
- $( use_with ssl ) \
- $( use_with vpopmail ) \
- $( use_with zlib ) \
- --with-storages="${storages}" \
- --disable-rpath \
- --without-systemdsystemunitdir \
- ${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 || die "emake dovecot-config failed"
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- econf \
- --localstatedir="${EPREFIX}/var" \
- --enable-shared \
- --with-dovecot="../${MY_P}" \
- $( use_with managesieve )
- fi
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make sieve failed"
- fi
-}
-
-src_test() {
- default_src_test
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- default_src_test
- fi
-}
-
-src_install () {
- emake DESTDIR="${ED}" install || die "make install failed"
-
- # 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 "${ED}"/usr/libexec/dovecot/deliver
- fperms 4750 "${ED}"/usr/libexec/dovecot/deliver
- fi
-
- newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
-
- rm -rf "${ED}"/usr/share/doc/dovecot
-
- dodoc AUTHORS NEWS README TODO || die "basic dodoc failed"
- dodoc doc/*.{txt,cnf,xml,sh} || die "dodoc doc failed"
- docinto example-config
- dodoc doc/example-config/*.{conf,ext} || die "dodoc example failed"
- docinto example-config/conf.d
- dodoc doc/example-config/conf.d/*.{conf,ext} || die "dodoc conf.d failed"
- docinto wiki
- dodoc doc/wiki/* || die "dodoc wiki failed"
- 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
- sed -i -e "s:/usr/share/doc/dovecot/:/usr/share/doc/${PF}/:" \
- "${confd}/../README" || die "sed failed"
-
- # .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 sdbox ; then
- mail_location="sdbox:~/.sdbox"
- elif use mdbox ; then
- mail_location="mdbox:~/.mdbox"
- 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 || die "make install failed (sieve)"
- 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.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
-}
-
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-2" ; then
- elog "There are a lot of changes in configuration files in dovecot-2.0."
- elog "Please read http://wiki.dovecot.org/Upgrading and"
- elog "check the conf files in ${ROOT}etc/dovecot."
- elog "You can also run doveconf -n before running etc-update or"
- elog "dispatch-conf to get an idea about what needs to be changed."
- ewarn "\nDo NOT {re}start dovecot without checking your conf files"
- ewarn "and making the necessary changes.\n"
- fi
-}
-
-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
-}
diff --git a/net-mail/dovecot/dovecot-2.0.12-r1.ebuild b/net-mail/dovecot/dovecot-2.0.12-r1.ebuild
deleted file mode 100644
index dfd3e86ddffa..000000000000
--- a/net-mail/dovecot/dovecot-2.0.12-r1.ebuild
+++ /dev/null
@@ -1,278 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.0.12-r1.ebuild,v 1.1 2011/04/15 21:52:46 eras Exp $
-
-EAPI="3"
-
-inherit eutils versionator ssl-cert
-
-MY_P="${P/_/.}"
-major_minor="$( get_version_component_range 1-2 )"
-sieve_version="0.2.3"
-SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
- sieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
- )
- managesieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${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 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
-
-IUSE="berkdb bzip2 caps cydir sdbox doc ipv6 kerberos ldap +maildir managesieve mbox mdbox mysql pam postgres sieve sqlite +ssl suid vpopmail zlib"
-
-DEPEND="berkdb? ( sys-libs/db )
- caps? ( sys-libs/libcap )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sqlite? ( dev-db/sqlite )
- ssl? ( dev-libs/openssl )
- vpopmail? ( net-mail/vpopmail )
- virtual/libiconv"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00-r8"
-
-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
-
- # Add user and group for login process (same as for fedora/redhat)
- # default internal user
- enewgroup dovecot 97
- enewuser dovecot 97 -1 /dev/null dovecot
- # add "mail" group for suid'ing. Better security isolation.
- if use suid; then
- enewgroup mail
- fi
- # default login user
- enewuser dovenull -1 -1 /dev/null
-}
-
-src_configure() {
- local conf=""
-
- if use postgres || use mysql || use sqlite; then
- conf="${conf} --with-sql"
- fi
-
- local storages=""
- for storage in cydir sdbox mdbox maildir mbox; 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" \
- $( use_with bzip2 bzlib ) \
- $( use_with caps libcap ) \
- $( use_with kerberos gssapi ) \
- $( use_with ldap ) \
- $( use_with mysql ) \
- $( use_with pam ) \
- $( use_with postgres pgsql ) \
- $( use_with sqlite ) \
- $( use_with ssl ) \
- $( use_with vpopmail ) \
- $( use_with zlib ) \
- --with-storages="${storages}" \
- --disable-rpath \
- --without-systemdsystemunitdir \
- ${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 || die "emake dovecot-config failed"
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- econf \
- --localstatedir="${EPREFIX}/var" \
- --enable-shared \
- --with-dovecot="../${MY_P}" \
- $( use_with managesieve )
- fi
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make sieve failed"
- fi
-}
-
-src_test() {
- default_src_test
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- default_src_test
- fi
-}
-
-src_install () {
- emake DESTDIR="${ED}" install || die "make install failed"
-
- # 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 "${ED}"/usr/libexec/dovecot/deliver
- fperms 4750 "${ED}"/usr/libexec/dovecot/deliver
- fi
-
- newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
-
- rm -rf "${ED}"/usr/share/doc/dovecot
-
- dodoc AUTHORS NEWS README TODO || die "basic dodoc failed"
- dodoc doc/*.{txt,cnf,xml,sh} || die "dodoc doc failed"
- docinto example-config
- dodoc doc/example-config/*.{conf,ext} || die "dodoc example failed"
- docinto example-config/conf.d
- dodoc doc/example-config/conf.d/*.{conf,ext} || die "dodoc conf.d failed"
- docinto wiki
- dodoc doc/wiki/* || die "dodoc wiki failed"
- 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
- sed -i -e "s:/usr/share/doc/dovecot/:/usr/share/doc/${PF}/:" \
- "${confd}/../README" || die "sed failed"
-
- # .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 sdbox ; then
- mail_location="sdbox:~/.sdbox"
- elif use mdbox ; then
- mail_location="mdbox:~/.mdbox"
- 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 || die "make install failed (sieve)"
- 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.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
-}
-
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-2" ; then
- elog "There are a lot of changes in configuration files in dovecot-2.0."
- elog "Please read http://wiki.dovecot.org/Upgrading and"
- elog "check the conf files in ${ROOT}etc/dovecot."
- elog "You can also run doveconf -n before running etc-update or"
- elog "dispatch-conf to get an idea about what needs to be changed."
- ewarn "\nDo NOT {re}start dovecot without checking your conf files"
- ewarn "and making the necessary changes.\n"
- fi
-}
-
-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
-}
diff --git a/net-mail/dovecot/dovecot-2.0.12-r2.ebuild b/net-mail/dovecot/dovecot-2.0.12-r2.ebuild
deleted file mode 100644
index 91e71ea2af38..000000000000
--- a/net-mail/dovecot/dovecot-2.0.12-r2.ebuild
+++ /dev/null
@@ -1,281 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.0.12-r2.ebuild,v 1.3 2011/05/12 17:43:24 jer Exp $
-
-EAPI="3"
-
-inherit eutils versionator ssl-cert
-
-MY_P="${P/_/.}"
-major_minor="$( get_version_component_range 1-2 )"
-sieve_version="0.2.3"
-SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
- sieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
- )
- managesieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
- ) "
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
-HOMEPAGE="http://www.dovecot.org/"
-
-SLOT="0"
-LICENSE="LGPL-2.1 MIT"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
-
-IUSE="bzip2 caps cydir sdbox doc ipv6 kerberos ldap +maildir managesieve mbox mdbox mysql pam postgres sieve sqlite +ssl suid vpopmail zlib"
-
-DEPEND="caps? ( sys-libs/libcap )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sqlite? ( dev-db/sqlite )
- ssl? ( dev-libs/openssl )
- vpopmail? ( net-mail/vpopmail )
- virtual/libiconv"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00-r8"
-
-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
-
- # Add user and group for login process (same as for fedora/redhat)
- # default internal user
- enewgroup dovecot 97
- enewuser dovecot 97 -1 /dev/null dovecot
- # add "mail" group for suid'ing. Better security isolation.
- if use suid; then
- enewgroup mail
- fi
- # default login user
- enewuser dovenull -1 -1 /dev/null
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-sdbox.patch"
-}
-
-src_configure() {
- local conf=""
-
- if use postgres || use mysql || use sqlite; then
- conf="${conf} --with-sql"
- fi
-
- local storages=""
- for storage in cydir sdbox mdbox maildir mbox; 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" \
- $( use_with bzip2 bzlib ) \
- $( use_with caps libcap ) \
- $( use_with kerberos gssapi ) \
- $( use_with ldap ) \
- $( use_with mysql ) \
- $( use_with pam ) \
- $( use_with postgres pgsql ) \
- $( use_with sqlite ) \
- $( use_with ssl ) \
- $( use_with vpopmail ) \
- $( use_with zlib ) \
- --with-storages="${storages}" \
- --disable-rpath \
- --without-systemdsystemunitdir \
- ${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 || die "emake dovecot-config failed"
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- econf \
- --localstatedir="${EPREFIX}/var" \
- --enable-shared \
- --with-dovecot="../${MY_P}" \
- $( use_with managesieve )
- fi
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make sieve failed"
- fi
-}
-
-src_test() {
- default_src_test
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- default_src_test
- fi
-}
-
-src_install () {
- emake DESTDIR="${ED}" install || die "make install failed"
-
- # 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 "${ED}"/usr/libexec/dovecot/deliver
- fperms 4750 "${ED}"/usr/libexec/dovecot/deliver
- fi
-
- newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
-
- rm -rf "${ED}"/usr/share/doc/dovecot
-
- dodoc AUTHORS NEWS README TODO || die "basic dodoc failed"
- dodoc doc/*.{txt,cnf,xml,sh} || die "dodoc doc failed"
- docinto example-config
- dodoc doc/example-config/*.{conf,ext} || die "dodoc example failed"
- docinto example-config/conf.d
- dodoc doc/example-config/conf.d/*.{conf,ext} || die "dodoc conf.d failed"
- docinto wiki
- dodoc doc/wiki/* || die "dodoc wiki failed"
- 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
- sed -i -e "s:/usr/share/doc/dovecot/:/usr/share/doc/${PF}/:" \
- "${confd}/../README" || die "sed failed"
-
- # .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 sdbox ; then
- mail_location="sdbox:~/.sdbox"
- elif use mdbox ; then
- mail_location="mdbox:~/.mdbox"
- 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 || die "make install failed (sieve)"
- 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.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
-}
-
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-2" ; then
- elog "There are a lot of changes in configuration files in dovecot-2.0."
- elog "Please read http://wiki.dovecot.org/Upgrading and"
- elog "check the conf files in ${ROOT}etc/dovecot."
- elog "You can also run doveconf -n before running etc-update or"
- elog "dispatch-conf to get an idea about what needs to be changed."
- ewarn "\nDo NOT {re}start dovecot without checking your conf files"
- ewarn "and making the necessary changes.\n"
- fi
-}
-
-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
-}
diff --git a/net-mail/dovecot/dovecot-2.0.12.ebuild b/net-mail/dovecot/dovecot-2.0.12.ebuild
deleted file mode 100644
index 61b5715ea3e3..000000000000
--- a/net-mail/dovecot/dovecot-2.0.12.ebuild
+++ /dev/null
@@ -1,278 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-2.0.12.ebuild,v 1.1 2011/04/14 06:22:44 eras Exp $
-
-EAPI="3"
-
-inherit eutils versionator ssl-cert
-
-MY_P="${P/_/.}"
-major_minor="$( get_version_component_range 1-2 )"
-sieve_version="0.2.2"
-SRC_URI="http://dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
- sieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
- )
- managesieve? (
- http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${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 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
-
-IUSE="berkdb bzip2 caps cydir sdbox doc ipv6 kerberos ldap +maildir managesieve mbox mdbox mysql pam postgres sieve sqlite +ssl suid vpopmail zlib"
-
-DEPEND="berkdb? ( sys-libs/db )
- caps? ( sys-libs/libcap )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sqlite? ( dev-db/sqlite )
- ssl? ( dev-libs/openssl )
- vpopmail? ( net-mail/vpopmail )
- virtual/libiconv"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00-r8"
-
-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
-
- # Add user and group for login process (same as for fedora/redhat)
- # default internal user
- enewgroup dovecot 97
- enewuser dovecot 97 -1 /dev/null dovecot
- # add "mail" group for suid'ing. Better security isolation.
- if use suid; then
- enewgroup mail
- fi
- # default login user
- enewuser dovenull -1 -1 /dev/null
-}
-
-src_configure() {
- local conf=""
-
- if use postgres || use mysql || use sqlite; then
- conf="${conf} --with-sql"
- fi
-
- local storages=""
- for storage in cydir sdbox mdbox maildir mbox; 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" \
- $( use_with bzip2 bzlib ) \
- $( use_with caps libcap ) \
- $( use_with kerberos gssapi ) \
- $( use_with ldap ) \
- $( use_with mysql ) \
- $( use_with pam ) \
- $( use_with postgres pgsql ) \
- $( use_with sqlite ) \
- $( use_with ssl ) \
- $( use_with vpopmail ) \
- $( use_with zlib ) \
- --with-storages="${storages}" \
- --disable-rpath \
- --without-systemdsystemunitdir \
- ${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 || die "emake dovecot-config failed"
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- econf \
- --localstatedir="${EPREFIX}/var" \
- --enable-shared \
- --with-dovecot="../${MY_P}" \
- $( use_with managesieve )
- fi
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make failed"
-
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "make sieve failed"
- fi
-}
-
-src_test() {
- default_src_test
- if use sieve || use managesieve ; then
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
- default_src_test
- fi
-}
-
-src_install () {
- emake DESTDIR="${ED}" install || die "make install failed"
-
- # 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 "${ED}"/usr/libexec/dovecot/deliver
- fperms 4750 "${ED}"/usr/libexec/dovecot/deliver
- fi
-
- newinitd "${FILESDIR}"/dovecot.init-r2 dovecot
-
- rm -rf "${ED}"/usr/share/doc/dovecot
-
- dodoc AUTHORS NEWS README TODO || die "basic dodoc failed"
- dodoc doc/*.{txt,cnf,xml,sh} || die "dodoc doc failed"
- docinto example-config
- dodoc doc/example-config/*.{conf,ext} || die "dodoc example failed"
- docinto example-config/conf.d
- dodoc doc/example-config/conf.d/*.{conf,ext} || die "dodoc conf.d failed"
- docinto wiki
- dodoc doc/wiki/* || die "dodoc wiki failed"
- 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
- sed -i -e "s:/usr/share/doc/dovecot/:/usr/share/doc/${PF}/:" \
- "${confd}/../README" || die "sed failed"
-
- # .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 sdbox ; then
- mail_location="sdbox:~/.sdbox"
- elif use mdbox ; then
- mail_location="mdbox:~/.mdbox"
- 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 || die "make install failed (sieve)"
- 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.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
-}
-
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-2" ; then
- elog "There are a lot of changes in configuration files in dovecot-2.0."
- elog "Please read http://wiki.dovecot.org/Upgrading and"
- elog "check the conf files in ${ROOT}etc/dovecot."
- elog "You can also run doveconf -n before running etc-update or"
- elog "dispatch-conf to get an idea about what needs to be changed."
- ewarn "\nDo NOT {re}start dovecot without checking your conf files"
- ewarn "and making the necessary changes.\n"
- fi
-}
-
-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
-}