Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/dovecot/
Date: Tue, 20 Mar 2018 15:58:28
Message-Id: 1521561482.644abc391c788a3369616bbedadda5b859bdd461.eras@gentoo
1 commit: 644abc391c788a3369616bbedadda5b859bdd461
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 20 15:58:02 2018 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 20 15:58:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=644abc39
7
8 net-mail/dovecot: bump to 2.2.35
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-mail/dovecot/Manifest | 2 +
13 net-mail/dovecot/dovecot-2.2.35.ebuild | 290 +++++++++++++++++++++++++++++++++
14 2 files changed, 292 insertions(+)
15
16 diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
17 index 1a212faeccf..e442d8f82fd 100644
18 --- a/net-mail/dovecot/Manifest
19 +++ b/net-mail/dovecot/Manifest
20 @@ -1,12 +1,14 @@
21 DIST dovecot-2.2-pigeonhole-0.4.18.tar.gz 1742357 BLAKE2B 8f9fc54e6effb233f7e8543a560b474dd4cd028d0a7bd1cc02e45c879bc2e7d636c2543e8aed3bd8e0b49b260703590be44fd1032ba3e1f4eb87a8e6f8ecf396 SHA512 6f49a6a6435b0e4dcbe29f852ce17c016df2f367f5460301a2a2c6bd5f5ba6260b23bfe1c5e78b91c6041554ee67d1ce14ad3adf219505f692c61681d9e70cc4
22 DIST dovecot-2.2-pigeonhole-0.4.20.tar.gz 1745121 BLAKE2B 4a320d7340f3a7fbb92f911c16abb49561692310c7c9224842065b9830f057e442e6ae27010232d615a06f6fdd889ef8619c555516e2d843802297644b935a27 SHA512 84a28842be206e05cb96c07cf1c1b62c9c378ba4c952caa47cf79a44b9428e076f4182eadd9c4fb8f45d3605b881f91e8e520c41705017ac4039240d4bcace39
23 DIST dovecot-2.2-pigeonhole-0.4.21.tar.gz 1774887 BLAKE2B ebf2601e7b087d655713f985b72442496e36543ec32881d3bc84d2c6b132f58082aee6c5fae3747f756b72a3c9a2e11f78350bc34c398214de13dfc83cffdef1 SHA512 4751f449ede1b05173c706b414ebf9f7f670ff78589ce6f0b687c32c9abe6dae8b3064ed1b20e893d9ec0147b0139ce479e1d74ebe94747c33f2d8ca177912de
24 +DIST dovecot-2.2-pigeonhole-0.4.23.tar.gz 1787189 BLAKE2B 5ba20f6943dad508a655a5ba48c8d9a61d1bd40ddcbc8c037a4cda629fc7f87abe0abd8858d1d50324d7003f3997df27e9fc81ca83c76f465bc3bcbb3e023fae SHA512 24dae1f7a52fdb37f644e9c0a5c30dcbb95018e8dd43f18af56e7ee813723cad36b74d6c22ddff281e140e4c0bbb61900baf23116a980dcda5244ae8a5b544f8
25 DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 BLAKE2B 7e6f11bf74d56887b640ab5ebffd6e2ad7878d47da808f81b2f21ab4de02495f6ca79453ab5867568afee7f2d9a0915601ceccf5c6a9581d38994c4d35f692e7 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2
26 DIST dovecot-2.2.19.tar.gz 5256627 BLAKE2B 0b7fe57ced1b1f7eb5e29e8d6723d237cc107752286995d8e5f6857f24b45ab40c4a38b03935b228e8530c3b254509124a7b6ce4e0a8a9be0ea87f0c529db935 SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9
27 DIST dovecot-2.2.29.1.tar.gz 5972119 BLAKE2B 9b05e9976369757de07471c2e499a863efbd94b51d8aefdeb2144c01596f03f9ea02670ee9cac9590615e4139dc754c11eb4777d791f87a2e6031302155d9f05 SHA512 1e5ea6080ebe7dd4afe6fcfe8e98ed6d2ad2735655a18cc96e439dd044ccc3a1a6a80428bc746b4d6250820895d6a62121562e97e4b46c8b1cf88a19443bc111
28 DIST dovecot-2.2.32.tar.gz 6100268 BLAKE2B e7d79f81fe06565d254c46de5cd7f4565883a029f4fa409d9f3c6ff75d599fb3f1ce5f8a32b96b9bebe4654de2be4998d0e178f1784e00d246186727324c6e80 SHA512 a26ce763fdea7d72ff9801d3b7d57a1f0d00278e4a1aa60d1be070fe5a6d2c6a15f266a519119492bee7a3e7a6b7d0732e9879e5c5841adbab8c0952cd1b7c7c
29 DIST dovecot-2.2.33.2.tar.gz 6131086 BLAKE2B 5bfa9f52e7263e778b717d52f540682574e4bbcb04fc003e78b9ce94562d092f1c5360f835ee8cea912afbed7351be9f06dd321df3f7893d27544ede00c682ca SHA512 028910a4d02b1630f1ada4d1c45fcc3ea2057969db7078a78d46e2a578b4dceaf8be0ac8de4a613b4890019e721871f2d366ec651db658da4cc72977d3e09931
30 DIST dovecot-2.2.34.tar.gz 6181270 BLAKE2B dfdb1e6812574e79595202e830167400569adf61155aa5ddaae443e798c4a05ccec2acd2975e00e9e7ffc63ee1dcf7e4e2a9288b1e6e1e1427d1e89790a8fa13 SHA512 9f08a7116a08a08495aa0e7b4cb6b11a924ea61006970487946e338bc79bba7fd7619c345cbf278a74de285d548af04fc66eaaee508185b8b9d7335cf5612055
31 +DIST dovecot-2.2.35.tar.gz 6185237 BLAKE2B 7ad08816553683126c4c8d494770730c49c2912a5437ba6dcb21e418d636c0d03280425e8a55b420a4500ebcf459da8be11deffccefdbc60811393e2044a4e4d SHA512 002ceea7f17018bcd438edda5a36a782606f291264ef63cebb8b4f72b094e812bf5553686c9e1e0d8c1354af54c1174f3670d1b1fc498ec4cddb3f731bf00c56
32 DIST dovecot-2.3-pigeonhole-0.5.0.1.tar.gz 1783039 BLAKE2B 8452c11d1c5f26d2ee9a0c54a2c30642bce5117f1ad140db8a8509a2bcc03236361a99c6f622267279eb75c19c68de7d96947557b595c345db34e34a135b492c SHA512 60016145caa444eeba13b49735f87ab2ebe7f178f104ad57283b5aa7e5119920d9f579032b775547e0866e86045a4ab653fd084068187d0cbe2e088cc15fc288
33 DIST dovecot-2.3-pigeonhole-0.5.0.tar.gz 1782375 BLAKE2B ecbf20ec3a12d72d6040d4d4fffc63e44dd80c28d3b5ad62a97bfefffc0d3063114cd46cacfd1e24f1000829f28d457d3b68773cdecf151ef20e5e0ccb899c3b SHA512 c338a94ff5db1cc34cac10da2854cd2905567addf5e40f36fe24958abeae1ae9900461f0aeda4f2133eecb2762005c0d6414a109538a1da7aabdd7a4a8eeb127
34 DIST dovecot-2.3.0.1.tar.gz 6499984 BLAKE2B 4bfb38ba8bed154e58db03c53c0a6958632841fd66a118571c341be90f9d20a570a22699d4b8d117b72d4599fe074248c96cf4e7fc78ddd65c69662b4275cf97 SHA512 2b30c46c1660f425f6303a15cf638388439fd7a8065c91d28caf41d9a6403a4fccb530df3f69037a634bc3b0b9e498037da6b0b93c176f5e3b5808907d3f759d
35
36 diff --git a/net-mail/dovecot/dovecot-2.2.35.ebuild b/net-mail/dovecot/dovecot-2.2.35.ebuild
37 new file mode 100644
38 index 00000000000..6c3d022d8fb
39 --- /dev/null
40 +++ b/net-mail/dovecot/dovecot-2.2.35.ebuild
41 @@ -0,0 +1,290 @@
42 +# Copyright 1999-2018 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=6
46 +inherit ssl-cert systemd user versionator
47 +
48 +MY_P="${P/_/.}"
49 +major_minor="$(get_version_component_range 1-2)"
50 +sieve_version="0.4.23"
51 +if [[ ${PV} == *_rc* ]] ; then
52 + rc_dir="rc/"
53 +else
54 + rc_dir=""
55 +fi
56 +SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
57 + sieve? (
58 + https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
59 + )
60 + managesieve? (
61 + https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
62 + ) "
63 +DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
64 +HOMEPAGE="https://www.dovecot.org/"
65 +
66 +SLOT="0"
67 +LICENSE="LGPL-2.1 MIT"
68 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
69 +
70 +IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
71 +IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
72 +IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
73 +
74 +IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
75 +
76 +DEPEND="bzip2? ( app-arch/bzip2 )
77 + caps? ( sys-libs/libcap )
78 + kerberos? ( virtual/krb5 )
79 + ldap? ( net-nds/openldap )
80 + lucene? ( >=dev-cpp/clucene-2.3 )
81 + lzma? ( app-arch/xz-utils )
82 + lz4? ( app-arch/lz4 )
83 + mysql? ( virtual/mysql )
84 + pam? ( virtual/pam )
85 + postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
86 + selinux? ( sec-policy/selinux-dovecot )
87 + solr? ( net-misc/curl dev-libs/expat )
88 + sqlite? ( dev-db/sqlite:* )
89 + ssl? (
90 + !libressl? ( dev-libs/openssl:0 )
91 + libressl? ( dev-libs/libressl )
92 + )
93 + tcpd? ( sys-apps/tcp-wrappers )
94 + textcat? ( app-text/libexttextcat )
95 + vpopmail? ( net-mail/vpopmail )
96 + zlib? ( sys-libs/zlib )
97 + virtual/libiconv
98 + dev-libs/icu:="
99 +
100 +RDEPEND="${DEPEND}
101 + net-mail/mailbase"
102 +
103 +# Dovecot does not support building without ssl. Force it for now
104 +REQUIRED_USE="ssl"
105 +
106 +S=${WORKDIR}/${MY_P}
107 +
108 +pkg_setup() {
109 + if use managesieve && ! use sieve; then
110 + ewarn "managesieve USE flag selected but sieve USE flag unselected"
111 + ewarn "sieve USE flag will be turned on"
112 + fi
113 + # default internal user
114 + enewgroup dovecot 97
115 + enewuser dovecot 97 -1 /dev/null dovecot
116 + # default login user
117 + enewuser dovenull -1 -1 /dev/null
118 + # add "mail" group for suid'ing. Better security isolation.
119 + if use suid; then
120 + enewgroup mail
121 + fi
122 +}
123 +
124 +src_prepare() {
125 + eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
126 + eapply_user
127 +}
128 +
129 +src_configure() {
130 + local conf=""
131 +
132 + if use postgres || use mysql || use sqlite; then
133 + conf="${conf} --with-sql"
134 + fi
135 +
136 + # turn valgrind tests off. Bug #340791
137 + VALGRIND=no econf \
138 + --with-statedir="${EPREFIX}/var/lib/dovecot" \
139 + --with-rundir="${EPREFIX}/run/dovecot" \
140 + --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
141 + --without-stemmer \
142 + --disable-rpath \
143 + --with-icu \
144 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
145 + $( use_with bzip2 bzlib ) \
146 + $( use_with caps libcap ) \
147 + $( use_with kerberos gssapi ) \
148 + $( use_with ldap ) \
149 + $( use_with lucene ) \
150 + $( use_with lz4 ) \
151 + $( use_with lzma ) \
152 + $( use_with mysql ) \
153 + $( use_with pam ) \
154 + $( use_with postgres pgsql ) \
155 + $( use_with sqlite ) \
156 + $( use_with solr ) \
157 + $( use_with ssl ) \
158 + $( use_with tcpd libwrap ) \
159 + $( use_with textcat ) \
160 + $( use_with vpopmail ) \
161 + $( use_with zlib ) \
162 + $( use_enable static-libs static ) \
163 + ${conf}
164 +
165 + if use sieve || use managesieve ; then
166 + # The sieve plugin needs this file to be build to determine the plugin
167 + # directory and the list of libraries to link to.
168 + emake dovecot-config
169 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
170 + econf \
171 + $( use_enable static-libs static ) \
172 + --localstatedir="${EPREFIX}/var" \
173 + --enable-shared \
174 + --with-dovecot="../${MY_P}" \
175 + $( use_with managesieve )
176 + fi
177 +}
178 +
179 +src_compile() {
180 + default
181 + if use sieve || use managesieve ; then
182 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
183 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
184 + fi
185 +}
186 +
187 +src_test() {
188 + default
189 + if use sieve || use managesieve ; then
190 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
191 + default
192 + fi
193 +}
194 +
195 +src_install () {
196 + default
197 +
198 + # insecure:
199 + # use suid && fperms u+s /usr/libexec/dovecot/deliver
200 + # better:
201 + if use suid;then
202 + einfo "Changing perms to allow deliver to be suided"
203 + fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
204 + fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
205 + fi
206 +
207 + newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
208 +
209 + rm -rf "${ED}"/usr/share/doc/dovecot
210 +
211 + dodoc AUTHORS NEWS README TODO
212 + dodoc doc/*.{txt,cnf,xml,sh}
213 + docinto example-config
214 + dodoc doc/example-config/*.{conf,ext}
215 + docinto example-config/conf.d
216 + dodoc doc/example-config/conf.d/*.{conf,ext}
217 + docinto wiki
218 + dodoc doc/wiki/*
219 + doman doc/man/*.{1,7}
220 +
221 + # Create the dovecot.conf file from the dovecot-example.conf file that
222 + # the dovecot folks nicely left for us....
223 + local conf="${ED}/etc/dovecot/dovecot.conf"
224 + local confd="${ED}/etc/dovecot/conf.d"
225 +
226 + insinto /etc/dovecot
227 + doins doc/example-config/*.{conf,ext}
228 + insinto /etc/dovecot/conf.d
229 + doins doc/example-config/conf.d/*.{conf,ext}
230 + fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
231 + rm -f "${confd}/../README"
232 +
233 + # .maildir is the Gentoo default
234 + local mail_location="maildir:~/.maildir"
235 + sed -i -e \
236 + "s|#mail_location =|mail_location = ${mail_location}|" \
237 + "${confd}/10-mail.conf" \
238 + || die "failed to update mail location settings in 10-mail.conf"
239 +
240 + # We're using pam files (imap and pop3) provided by mailbase
241 + if use pam; then
242 + sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
243 + "${confd}/auth-system.conf.ext" \
244 + || die "failed to update PAM settings in auth-system.conf.ext"
245 + # mailbase does not provide a sieve pam file
246 + use managesieve && dosym imap /etc/pam.d/sieve
247 + sed -i -e \
248 + 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
249 + "${confd}/10-auth.conf" \
250 + || die "failed to update PAM settings in 10-auth.conf"
251 + fi
252 +
253 + # Disable ipv6 if necessary
254 + if ! use ipv6; then
255 + sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
256 + || die "failed to update listen settings in dovecot.conf"
257 + fi
258 +
259 + # Update ssl cert locations
260 + if use ssl; then
261 + sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
262 + || die "ssl conf failed"
263 + sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
264 + -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
265 + "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
266 + fi
267 +
268 + # Install SQL configuration
269 + if use mysql || use postgres; then
270 + sed -i -e \
271 + 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
272 + "${confd}/10-auth.conf" || die "failed to update SQL settings in \
273 + 10-auth.conf"
274 + fi
275 +
276 + # Install LDAP configuration
277 + if use ldap; then
278 + sed -i -e \
279 + 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
280 + "${confd}/10-auth.conf" \
281 + || die "failed to update ldap settings in 10-auth.conf"
282 + fi
283 +
284 + if use vpopmail; then
285 + sed -i -e \
286 + 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
287 + "${confd}/10-auth.conf" \
288 + || die "failed to update vpopmail settings in 10-auth.conf"
289 + fi
290 +
291 + if use sieve || use managesieve ; then
292 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
293 + emake DESTDIR="${ED}" install
294 + sed -i -e \
295 + 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
296 + || die "failed to update sieve settings in 15-lda.conf"
297 + rm -rf "${ED}"/usr/share/doc/dovecot
298 + docinto example-config/conf.d
299 + dodoc doc/example-config/conf.d/*.conf
300 + insinto /etc/dovecot/conf.d
301 + doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
302 + use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
303 + docinto sieve/rfc
304 + dodoc doc/rfc/*.txt
305 + docinto sieve/devel
306 + dodoc doc/devel/DESIGN
307 + docinto plugins
308 + dodoc doc/plugins/*.txt
309 + docinto extensions
310 + dodoc doc/extensions/*.txt
311 + docinto locations
312 + dodoc doc/locations/*.txt
313 + doman doc/man/*.{1,7}
314 + fi
315 +
316 + use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
317 +}
318 +
319 +pkg_postinst() {
320 + if use ssl; then
321 + # Let's not make a new certificate if we already have one
322 + if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
323 + -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
324 + einfo "Creating SSL certificate"
325 + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
326 + install_cert /etc/ssl/dovecot/server
327 + fi
328 + fi
329 +
330 + elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
331 +}