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, 12 Jul 2016 12:47:38
Message-Id: 1468327618.cb689d94f1a9c823d0d79f8f4461536937cc7407.eras@gentoo
1 commit: cb689d94f1a9c823d0d79f8f4461536937cc7407
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 12 12:46:58 2016 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 12 12:46:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb689d94
7
8 net-mail/dovecot: version bump to dovecot-2.2.25
9
10 Package-Manager: portage-2.3.0
11
12 net-mail/dovecot/Manifest | 2 +
13 net-mail/dovecot/dovecot-2.2.25.ebuild | 308 +++++++++++++++++++++++++++++++++
14 2 files changed, 310 insertions(+)
15
16 diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
17 index ac1930c..16c1470 100644
18 --- a/net-mail/dovecot/Manifest
19 +++ b/net-mail/dovecot/Manifest
20 @@ -3,9 +3,11 @@ DIST dovecot-2.2-pigeonhole-0.4.11.tar.gz 1660922 SHA256 5168b4ac4e173b563dd71f4
21 DIST dovecot-2.2-pigeonhole-0.4.12.tar.gz 1681327 SHA256 98a2fd79b0d9effd08c0caf04d483b1caa5e4503dae811e6d436948557bfb702 SHA512 68b2bcc8bd2a8c039ff116a441ff8795917b280f89ad60819638d5903010611bbd5966567d0d33ae305f9ae4db9f6756b2a72ccd8305124cfe846d64bbdd08c5 WHIRLPOOL 7e5bca584219ed2c9dbfe7056c137ced7a1a56cfa7eb6940fa882d3683ef67ec103e9cf5788f0869175c5d4bf4804fb979951836f70755d4752af441d50afbbc
22 DIST dovecot-2.2-pigeonhole-0.4.13.tar.gz 1706253 SHA256 7fd187b8393a5048b302f90ad84adc7bf6e73bf79fd8d22a1c1aaa71f836a910 SHA512 4e25a406b888fd8cbc9a4f4f7a7364f10ab47e932550970cede34c964d50a6fe697c4b6d61cc83846b97901368ac63d1e22aa4d1d2002f24540766c5fbbebbf5 WHIRLPOOL 4669079c5f6c727b2436b86c506984dc17a07851a3d95a8a9b00e30c1bf48da7438cc6376d710676258b7898b6fac4b9c38eee7f13c67933321e327ccf25e14b
23 DIST dovecot-2.2-pigeonhole-0.4.14.tar.gz 1752101 SHA256 dff30a636c1516158f3e159c669a254569c9dabaa6ecfa3669379101ea5b3300 SHA512 97e72a3046a5975d416e49a900a9d801224c6de944aea4fd80b0e9c571af68d4e11c4a152ab6048abd9867a31eb4d8e3e648165489fb4a2b57a9a2929760247e WHIRLPOOL 2456faed24117f8fcb93f924617462756c8eac0312e450e2671e6a11cfed2a52fdc8d23954c28399b46632b1959f1eb733825a43042895d4da2bf9d81b7f60d5
24 +DIST dovecot-2.2-pigeonhole-0.4.15.tar.gz 1755980 SHA256 c99ace6ead310c6c3b639922da618f90d846307da4fe252d994e5e51bf8a3de3 SHA512 bd590a95029801251ff3c76b38b6ddfc25446b82937217dc4ea421075c7b651ae0356b088403d5ad9bb87bc86817d727faccaf4e2500bfd46a242d331fc252f5 WHIRLPOOL 6dd3371a82a35b540a0db5dc0af286c05b5a56e9ae24ad24b7cf7c6aa46e86958645283281ef1f2dd0db6d8e8b2b3ccd34ec70e592f6b50bcda40e04ef9f6e76
25 DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 SHA256 82892f876d26008a076973dfddf1cffaf5a0451825fd44e06287e94b89078649 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2 WHIRLPOOL be309436b43af82a7cb8eff205e1638b2c59751927fdab187e6fde72330e4abd99878cbfa94ca50440ec8de1f9b569bf334d426891ddc73d5f647ee2040c193f
26 DIST dovecot-2.2.19.tar.gz 5256627 SHA256 759e1e3f9d907cdaabad1f5fbacc793ca191d234c084bec3bba42966952a4e9f SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9 WHIRLPOOL 30dbe70bfeef10dbe414ebf3f091041ad66926a8748cd401ecaf9ed5c7602939e86943d98bfb839f32c0aa1d0081ab71adacf23bb4adba34e828ee296e9a7278
27 DIST dovecot-2.2.21.tar.gz 4985686 SHA256 7ab7139e59e1f0353bf9c24251f13c893cf1a6ef4bcc47e2d44de437108d0b20 SHA512 0d246d44e0c908ea40d324982fb279b19424ddcb642e51796078f600fc5bf530898d2fa387fcfd971d43758cff22590e5ea6918c31e9f4a63f13a8c525a23d9b WHIRLPOOL 242026e876a12b9ecd50a76849cb16161f625791bc9d1a54270f38f24e66bc31b6ddf90acf119af2bd4c94e392c875a0c29be08b84a5f25d080a7e1b13d52175
28 DIST dovecot-2.2.22.tar.gz 5318023 SHA256 c7a9db3c4ae9d9b4da920d2c82669700a0d407934501b405f37f89cc0b706ec7 SHA512 ea02ae491e90c0b9de7c7320901c8f7235193303fb194805564582d30e630002f21f7195e5c5b99ff3ea1fadf95ddd43c2f7bb4d24067e0e5f40a66e9eb90012 WHIRLPOOL c03ac91b79e7bb2f42027a3da653d4a4fac857d52e50f8439ec25e80ff4ba716e64c8b7015b6bf70e099aa9afdfe775748920ab4a5865051cbf48da588e2f9a2
29 DIST dovecot-2.2.23.tar.gz 5291365 SHA256 5d834be43fe8f6f61d9b0fb139bf1db2a4da313aeebd7bf09e4bf6bcb1c9e441 SHA512 704d86dcef8b217a54db1d1ae3c1e0d6303827fedd7150aec83e805512cd1c5befc88da44660e7a40765ad6800c14d399f8c7621e84125a7732d68fee7f18d82 WHIRLPOOL eda6fb007ac07f70a6120d74deae80248f87fffe33ffae49f636b6506c4e8097ad6e4818e5f88446362d8fcd89ea3b8dcc58a2c67eb12d0a556bca3021e51153
30 DIST dovecot-2.2.24.tar.gz 5345872 SHA256 71c86891ea8deb5703d3dbbc3ea31ce2cbf7638f1aa395d9e8794d3ff7aebeb7 SHA512 90d98996e75353ae631c1e2da2520cc340928f427276c757316714892d7b281745284bf4cb30459eecdb9c96b7d9450eb6801e002e6acafc8669deb2b5e65a81 WHIRLPOOL ba071f8759df50082a40231dd8e883d001ff280f962ddbb4bc894447ac1215b79403d702feb3327e9f9a8d68c1227e0649c823f86916531f30c2c5c084cc5029
31 +DIST dovecot-2.2.25.tar.gz 5576235 SHA256 d8d9f32c846397f7c22749a84c5cf6f59c55ff7ded3dc9f07749a255182f9667 SHA512 b38d815a727723dbeccf844be4bf05509fc4808ac1a25ba482da7ca25f30c5c57107b6064791326b39aa80bd45b61043266b451ee33ece3521bdbffca57fdecf WHIRLPOOL 0017a53628ee7138bcbf10270239d8bfc4abf09d69b7c98006e266319d40d9d5223a922a694c275ebc4188314f05caae9e5f0a475d35d516aa5e5a2dd5a6838c
32
33 diff --git a/net-mail/dovecot/dovecot-2.2.25.ebuild b/net-mail/dovecot/dovecot-2.2.25.ebuild
34 new file mode 100644
35 index 0000000..758f22b
36 --- /dev/null
37 +++ b/net-mail/dovecot/dovecot-2.2.25.ebuild
38 @@ -0,0 +1,308 @@
39 +# Copyright 1999-2016 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Id$
42 +
43 +EAPI=6
44 +inherit ssl-cert systemd user versionator
45 +
46 +MY_P="${P/_/.}"
47 +major_minor="$(get_version_component_range 1-2)"
48 +sieve_version="0.4.15"
49 +if [[ ${PV} == *_rc* ]] ; then
50 + rc_dir="rc/"
51 +else
52 + rc_dir=""
53 +fi
54 +SRC_URI="http://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
55 + sieve? (
56 + http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
57 + )
58 + managesieve? (
59 + http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
60 + ) "
61 +DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
62 +HOMEPAGE="http://www.dovecot.org/"
63 +
64 +SLOT="0"
65 +LICENSE="LGPL-2.1 MIT"
66 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~x86"
67 +
68 +IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
69 +IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox"
70 +IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
71 +IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
72 +
73 +IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
74 +
75 +DEPEND="bzip2? ( app-arch/bzip2 )
76 + caps? ( sys-libs/libcap )
77 + kerberos? ( virtual/krb5 )
78 + ldap? ( net-nds/openldap )
79 + lucene? ( >=dev-cpp/clucene-2.3 )
80 + lzma? ( app-arch/xz-utils )
81 + lz4? ( app-arch/lz4 )
82 + mysql? ( virtual/mysql )
83 + pam? ( virtual/pam )
84 + postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
85 + selinux? ( sec-policy/selinux-dovecot )
86 + solr? ( net-misc/curl dev-libs/expat )
87 + sqlite? ( dev-db/sqlite:* )
88 + ssl? (
89 + !libressl? ( dev-libs/openssl:0 )
90 + libressl? ( dev-libs/libressl )
91 + )
92 + tcpd? ( sys-apps/tcp-wrappers )
93 + textcat? ( app-text/libexttextcat )
94 + vpopmail? ( net-mail/vpopmail )
95 + zlib? ( sys-libs/zlib )
96 + virtual/libiconv
97 + dev-libs/icu:="
98 +
99 +RDEPEND="${DEPEND}
100 + net-mail/mailbase"
101 +
102 +S=${WORKDIR}/${MY_P}
103 +
104 +pkg_setup() {
105 + if use managesieve && ! use sieve; then
106 + ewarn "managesieve USE flag selected but sieve USE flag unselected"
107 + ewarn "sieve USE flag will be turned on"
108 + fi
109 + # default internal user
110 + enewgroup dovecot 97
111 + enewuser dovecot 97 -1 /dev/null dovecot
112 + # default login user
113 + enewuser dovenull -1 -1 /dev/null
114 + # add "mail" group for suid'ing. Better security isolation.
115 + if use suid; then
116 + enewgroup mail
117 + fi
118 +}
119 +
120 +src_prepare() {
121 + eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
122 + eapply_user
123 +}
124 +
125 +src_configure() {
126 + local conf=""
127 +
128 + if use postgres || use mysql || use sqlite; then
129 + conf="${conf} --with-sql"
130 + fi
131 +
132 + local storages=""
133 + for storage in ${IUSE_DOVECOT_STORAGE//+/}; do
134 + use ${storage} && storages="${storage} ${storages}"
135 + done
136 + [ "${storages}" ] || storages="maildir"
137 +
138 + # turn valgrind tests off. Bug #340791
139 + VALGRIND=no econf \
140 + --localstatedir="${EPREFIX}/var" \
141 + --runstatedir="${EPREFIX}/run" \
142 + --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
143 + --without-stemmer \
144 + --with-storages="${storages}" \
145 + --disable-rpath \
146 + --with-icu \
147 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
148 + $( use_with bzip2 bzlib ) \
149 + $( use_with caps libcap ) \
150 + $( use_with kerberos gssapi ) \
151 + $( use_with ldap ) \
152 + $( use_with lucene ) \
153 + $( use_with lz4 ) \
154 + $( use_with lzma ) \
155 + $( use_with mysql ) \
156 + $( use_with pam ) \
157 + $( use_with postgres pgsql ) \
158 + $( use_with sqlite ) \
159 + $( use_with solr ) \
160 + $( use_with ssl ) \
161 + $( use_with tcpd libwrap ) \
162 + $( use_with textcat ) \
163 + $( use_with vpopmail ) \
164 + $( use_with zlib ) \
165 + $( use_enable static-libs static ) \
166 + ${conf}
167 +
168 + if use sieve || use managesieve ; then
169 + # The sieve plugin needs this file to be build to determine the plugin
170 + # directory and the list of libraries to link to.
171 + emake dovecot-config
172 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
173 + econf \
174 + $( use_enable static-libs static ) \
175 + --localstatedir="${EPREFIX}/var" \
176 + --enable-shared \
177 + --with-dovecot="../${MY_P}" \
178 + $( use_with managesieve )
179 + fi
180 +}
181 +
182 +src_compile() {
183 + default
184 + if use sieve || use managesieve ; then
185 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
186 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
187 + fi
188 +}
189 +
190 +src_test() {
191 + default
192 + if use sieve || use managesieve ; then
193 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
194 + default
195 + fi
196 +}
197 +
198 +src_install () {
199 + default
200 +
201 + # insecure:
202 + # use suid && fperms u+s /usr/libexec/dovecot/deliver
203 + # better:
204 + if use suid;then
205 + einfo "Changing perms to allow deliver to be suided"
206 + fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
207 + fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
208 + fi
209 +
210 + newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
211 +
212 + rm -rf "${ED}"/usr/share/doc/dovecot
213 +
214 + dodoc AUTHORS NEWS README TODO
215 + dodoc doc/*.{txt,cnf,xml,sh}
216 + docinto example-config
217 + dodoc doc/example-config/*.{conf,ext}
218 + docinto example-config/conf.d
219 + dodoc doc/example-config/conf.d/*.{conf,ext}
220 + docinto wiki
221 + dodoc doc/wiki/*
222 + doman doc/man/*.{1,7}
223 +
224 + # Create the dovecot.conf file from the dovecot-example.conf file that
225 + # the dovecot folks nicely left for us....
226 + local conf="${ED}/etc/dovecot/dovecot.conf"
227 + local confd="${ED}/etc/dovecot/conf.d"
228 +
229 + insinto /etc/dovecot
230 + doins doc/example-config/*.{conf,ext}
231 + insinto /etc/dovecot/conf.d
232 + doins doc/example-config/conf.d/*.{conf,ext}
233 + fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
234 + rm -f "${confd}/../README"
235 +
236 + # .maildir is the Gentoo default
237 + local mail_location="maildir:~/.maildir"
238 + if ! use maildir; then
239 + if use mbox; then
240 + mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
241 + keepdir /var/dovecot
242 + sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \
243 + "${confd}/10-mail.conf" || die "sed failed"
244 + elif use mdbox ; then
245 + mail_location="mdbox:~/.mdbox"
246 + elif use sdbox ; then
247 + mail_location="sdbox:~/.sdbox"
248 + fi
249 + fi
250 + sed -i -e \
251 + "s|#mail_location =|mail_location = ${mail_location}|" \
252 + "${confd}/10-mail.conf" \
253 + || die "failed to update mail location settings in 10-mail.conf"
254 +
255 + # We're using pam files (imap and pop3) provided by mailbase
256 + if use pam; then
257 + sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
258 + "${confd}/auth-system.conf.ext" \
259 + || die "failed to update PAM settings in auth-system.conf.ext"
260 + # mailbase does not provide a sieve pam file
261 + use managesieve && dosym imap /etc/pam.d/sieve
262 + sed -i -e \
263 + 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
264 + "${confd}/10-auth.conf" \
265 + || die "failed to update PAM settings in 10-auth.conf"
266 + fi
267 +
268 + # Disable ipv6 if necessary
269 + if ! use ipv6; then
270 + sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
271 + || die "failed to update listen settings in dovecot.conf"
272 + fi
273 +
274 + # Update ssl cert locations
275 + if use ssl; then
276 + sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
277 + || die "ssl conf failed"
278 + sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
279 + -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
280 + "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
281 + fi
282 +
283 + # Install SQL configuration
284 + if use mysql || use postgres; then
285 + sed -i -e \
286 + 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
287 + "${confd}/10-auth.conf" || die "failed to update SQL settings in \
288 + 10-auth.conf"
289 + fi
290 +
291 + # Install LDAP configuration
292 + if use ldap; then
293 + sed -i -e \
294 + 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
295 + "${confd}/10-auth.conf" \
296 + || die "failed to update ldap settings in 10-auth.conf"
297 + fi
298 +
299 + if use vpopmail; then
300 + sed -i -e \
301 + 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
302 + "${confd}/10-auth.conf" \
303 + || die "failed to update vpopmail settings in 10-auth.conf"
304 + fi
305 +
306 + if use sieve || use managesieve ; then
307 + cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
308 + emake DESTDIR="${ED}" install
309 + sed -i -e \
310 + 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
311 + || die "failed to update sieve settings in 15-lda.conf"
312 + rm -rf "${ED}"/usr/share/doc/dovecot
313 + docinto example-config/conf.d
314 + dodoc doc/example-config/conf.d/*.conf
315 + insinto /etc/dovecot/conf.d
316 + doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
317 + use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
318 + docinto sieve/rfc
319 + dodoc doc/rfc/*.txt
320 + docinto sieve/devel
321 + dodoc doc/devel/DESIGN
322 + docinto plugins
323 + dodoc doc/plugins/*.txt
324 + docinto extensions
325 + dodoc doc/extensions/*.txt
326 + docinto locations
327 + dodoc doc/locations/*.txt
328 + doman doc/man/*.{1,7}
329 + fi
330 +
331 + use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
332 +}
333 +
334 +pkg_postinst() {
335 + if use ssl; then
336 + # Let's not make a new certificate if we already have one
337 + if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
338 + -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
339 + einfo "Creating SSL certificate"
340 + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
341 + install_cert /etc/ssl/dovecot/server
342 + fi
343 + fi
344 +
345 + elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
346 +}