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