Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/offlineimap/
Date: Tue, 02 Aug 2016 16:20:40
Message-Id: 1470154818.c632867a039d61a5525305aff58a90a054d88267.radhermit@gentoo
1 commit: c632867a039d61a5525305aff58a90a054d88267
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 16:11:22 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 16:20:18 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c632867a
7
8 net-mail/offlineimap: only show postinst message for new installs
9
10 Also, fix dev-python/six dep to use proper python versions.
11
12 net-mail/offlineimap/offlineimap-7.0.3-r1.ebuild | 22 ++++++++++++----------
13 1 file changed, 12 insertions(+), 10 deletions(-)
14
15 diff --git a/net-mail/offlineimap/offlineimap-7.0.3-r1.ebuild b/net-mail/offlineimap/offlineimap-7.0.3-r1.ebuild
16 index 6de39f8..ed8d234 100644
17 --- a/net-mail/offlineimap/offlineimap-7.0.3-r1.ebuild
18 +++ b/net-mail/offlineimap/offlineimap-7.0.3-r1.ebuild
19 @@ -6,7 +6,7 @@ EAPI=6
20
21 # Normally you need only one version of this.
22 DISTUTILS_SINGLE_IMPL=1
23 -PYTHON_COMPAT=( python2_7 python3_4 )
24 +PYTHON_COMPAT=( python{2_7,3_4} )
25 PYTHON_REQ_USE="threads,sqlite,ssl?"
26
27 inherit distutils-r1
28 @@ -20,7 +20,7 @@ SLOT="0"
29 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
30 IUSE="doc ssl"
31
32 -RDEPEND="dev-python/six"
33 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
34 DEPEND="doc? ( app-text/asciidoc )"
35
36 # see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
37 @@ -41,12 +41,14 @@ src_install() {
38 }
39
40 pkg_postinst() {
41 - elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
42 - elog "Sample configurations are in /usr/share/doc/${PF}/"
43 - elog ""
44 - elog "If you connect via ssl/tls and don't use CA cert checking, it will"
45 - elog "display the server's cert fingerprint and require you to add it to the"
46 - elog "configuration file to be sure it connects to the same server every"
47 - elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
48 - elog "check SSL server certificate) in cases where you have no CA cert."
49 + if [[ -z ${REPLACING_VERSIONS} ]]; then
50 + elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
51 + elog "Sample configurations are in /usr/share/doc/${PF}/"
52 + elog ""
53 + elog "If you connect via ssl/tls and don't use CA cert checking, it will"
54 + elog "display the server's cert fingerprint and require you to add it to the"
55 + elog "configuration file to be sure it connects to the same server every"
56 + elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
57 + elog "check SSL server certificate) in cases where you have no CA cert."
58 + fi
59 }