1 |
commit: 1ba3595677c18c85de07f29828ee4af7b0a51f5a |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 19 06:12:31 2019 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 19 06:12:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba35956 |
7 |
|
8 |
net-mail/dovecot: remove vulnerable |
9 |
|
10 |
Package-Manager: Portage-2.3.63, Repoman-2.3.12 |
11 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
12 |
|
13 |
net-mail/dovecot/Manifest | 2 - |
14 |
net-mail/dovecot/dovecot-2.2.19.ebuild | 305 -------------------------- |
15 |
net-mail/dovecot/files/dovecot-10-ssl.patch | 15 -- |
16 |
net-mail/dovecot/files/dovecot-glibc226.patch | 84 ------- |
17 |
net-mail/dovecot/files/dovecot-glibc228.patch | 44 ---- |
18 |
net-mail/dovecot/files/dovecot.init-r4 | 57 ----- |
19 |
net-mail/dovecot/files/dovecot.init-r5 | 57 ----- |
20 |
net-mail/dovecot/metadata.xml | 5 - |
21 |
8 files changed, 569 deletions(-) |
22 |
|
23 |
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest |
24 |
index 59eff380a2d..e4203c9149d 100644 |
25 |
--- a/net-mail/dovecot/Manifest |
26 |
+++ b/net-mail/dovecot/Manifest |
27 |
@@ -1,4 +1,2 @@ |
28 |
-DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 BLAKE2B 7e6f11bf74d56887b640ab5ebffd6e2ad7878d47da808f81b2f21ab4de02495f6ca79453ab5867568afee7f2d9a0915601ceccf5c6a9581d38994c4d35f692e7 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2 |
29 |
-DIST dovecot-2.2.19.tar.gz 5256627 BLAKE2B 0b7fe57ced1b1f7eb5e29e8d6723d237cc107752286995d8e5f6857f24b45ab40c4a38b03935b228e8530c3b254509124a7b6ce4e0a8a9be0ea87f0c529db935 SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9 |
30 |
DIST dovecot-2.3-pigeonhole-0.5.5.tar.gz 1847487 BLAKE2B 9574388566778a4011ce6546021675ed9e07ba0d874dc4163e4cea10096f3bb8a434f198c3bb446b628ee18402afe94bd90b7123b3cf4d47e4095ddad12d9bfc SHA512 21519fc9b1152a947b64ce4251e1a4bdbe003b48233b1856a32696f9c1e29f730268c56eb38f9431bbfac345e6cd42e8c78c87d0702f39ebf20c6d326dcdbb94 |
31 |
DIST dovecot-2.3.5.1.tar.gz 6953150 BLAKE2B 04484325e7b87f78c0aa6e3c769bc921e9dc62562cd8705b99166b7291b794f434b088dcf6512bc21c96d8937475cafa4d49c6ac611cb07f74a0d20e15e185c7 SHA512 e87754461fb0b065acd0ff10dc955000a2fe5baffed69efaf328ce9268f90140e9de444bc68e0bd48b565c7622885a79b1f90ff3dd2335c0c2362d05d9e73e8a |
32 |
|
33 |
diff --git a/net-mail/dovecot/dovecot-2.2.19.ebuild b/net-mail/dovecot/dovecot-2.2.19.ebuild |
34 |
deleted file mode 100644 |
35 |
index 0ce65014c0c..00000000000 |
36 |
--- a/net-mail/dovecot/dovecot-2.2.19.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,305 +0,0 @@ |
39 |
-# Copyright 1999-2018 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=5 |
43 |
-inherit eutils multilib ssl-cert systemd user versionator |
44 |
- |
45 |
-MY_P="${P/_/.}" |
46 |
-major_minor="$(get_version_component_range 1-2)" |
47 |
-sieve_version="0.4.9" |
48 |
-if [[ ${PV} == *_rc* ]] ; then |
49 |
- rc_dir="rc/" |
50 |
-else |
51 |
- rc_dir="" |
52 |
-fi |
53 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
54 |
- sieve? ( |
55 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
56 |
- ) |
57 |
- managesieve? ( |
58 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
59 |
- ) " |
60 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
61 |
-HOMEPAGE="https://www.dovecot.org/" |
62 |
- |
63 |
-SLOT="0" |
64 |
-LICENSE="LGPL-2.1 MIT" |
65 |
-KEYWORDS="~sh" |
66 |
- |
67 |
-IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail" |
68 |
-IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox" |
69 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
70 |
-IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd" |
71 |
- |
72 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
73 |
- |
74 |
-DEPEND="bzip2? ( app-arch/bzip2 ) |
75 |
- caps? ( sys-libs/libcap ) |
76 |
- kerberos? ( virtual/krb5 ) |
77 |
- ldap? ( net-nds/openldap ) |
78 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
79 |
- lzma? ( app-arch/xz-utils ) |
80 |
- lz4? ( app-arch/lz4 ) |
81 |
- mysql? ( virtual/mysql ) |
82 |
- pam? ( virtual/pam ) |
83 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
84 |
- selinux? ( sec-policy/selinux-dovecot ) |
85 |
- solr? ( net-misc/curl dev-libs/expat ) |
86 |
- sqlite? ( dev-db/sqlite:* ) |
87 |
- ssl? ( |
88 |
- !libressl? ( dev-libs/openssl:0 ) |
89 |
- libressl? ( dev-libs/libressl ) |
90 |
- ) |
91 |
- tcpd? ( sys-apps/tcp-wrappers ) |
92 |
- vpopmail? ( net-mail/vpopmail ) |
93 |
- zlib? ( sys-libs/zlib ) |
94 |
- virtual/libiconv |
95 |
- dev-libs/icu:=" |
96 |
- |
97 |
-RDEPEND="${DEPEND} |
98 |
- net-mail/mailbase" |
99 |
- |
100 |
-S=${WORKDIR}/${MY_P} |
101 |
- |
102 |
-pkg_setup() { |
103 |
- if use managesieve && ! use sieve; then |
104 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
105 |
- ewarn "sieve USE flag will be turned on" |
106 |
- fi |
107 |
- # default internal user |
108 |
- enewgroup dovecot 97 |
109 |
- enewuser dovecot 97 -1 /dev/null dovecot |
110 |
- # default login user |
111 |
- enewuser dovenull -1 -1 /dev/null |
112 |
- # add "mail" group for suid'ing. Better security isolation. |
113 |
- if use suid; then |
114 |
- enewgroup mail |
115 |
- fi |
116 |
-} |
117 |
- |
118 |
-src_prepare() { |
119 |
- epatch "${FILESDIR}/${PN}-10-ssl.patch" |
120 |
- epatch_user |
121 |
-} |
122 |
- |
123 |
-src_configure() { |
124 |
- local conf="" |
125 |
- |
126 |
- if use postgres || use mysql || use sqlite; then |
127 |
- conf="${conf} --with-sql" |
128 |
- fi |
129 |
- |
130 |
- local storages="" |
131 |
- for storage in ${IUSE_DOVECOT_STORAGE//+/}; do |
132 |
- use ${storage} && storages="${storage} ${storages}" |
133 |
- done |
134 |
- [ "${storages}" ] || storages="maildir" |
135 |
- |
136 |
- # turn valgrind tests off. Bug #340791 |
137 |
- VALGRIND=no econf \ |
138 |
- --localstatedir="${EPREFIX}/var" \ |
139 |
- --runstatedir="${EPREFIX}/run" \ |
140 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
141 |
- --without-stemmer \ |
142 |
- --with-storages="${storages}" \ |
143 |
- --disable-rpath \ |
144 |
- --with-icu \ |
145 |
- $( systemd_with_unitdir ) \ |
146 |
- $( use_with bzip2 bzlib ) \ |
147 |
- $( use_with caps libcap ) \ |
148 |
- $( use_with kerberos gssapi ) \ |
149 |
- $( use_with ldap ) \ |
150 |
- $( use_with lucene ) \ |
151 |
- $( use_with lz4 ) \ |
152 |
- $( use_with lzma ) \ |
153 |
- $( use_with mysql ) \ |
154 |
- $( use_with pam ) \ |
155 |
- $( use_with postgres pgsql ) \ |
156 |
- $( use_with sqlite ) \ |
157 |
- $( use_with solr ) \ |
158 |
- $( use_with ssl ) \ |
159 |
- $( use_with tcpd libwrap ) \ |
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 |
- if ! use maildir; then |
236 |
- if use mbox; then |
237 |
- mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
238 |
- keepdir /var/dovecot |
239 |
- sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \ |
240 |
- "${confd}/10-mail.conf" || die "sed failed" |
241 |
- elif use mdbox ; then |
242 |
- mail_location="mdbox:~/.mdbox" |
243 |
- elif use sdbox ; then |
244 |
- mail_location="sdbox:~/.sdbox" |
245 |
- fi |
246 |
- fi |
247 |
- sed -i -e \ |
248 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
249 |
- "${confd}/10-mail.conf" \ |
250 |
- || die "failed to update mail location settings in 10-mail.conf" |
251 |
- |
252 |
- # We're using pam files (imap and pop3) provided by mailbase |
253 |
- if use pam; then |
254 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
255 |
- "${confd}/auth-system.conf.ext" \ |
256 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
257 |
- # mailbase does not provide a sieve pam file |
258 |
- use managesieve && dosym imap /etc/pam.d/sieve |
259 |
- sed -i -e \ |
260 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
261 |
- "${confd}/10-auth.conf" \ |
262 |
- || die "failed to update PAM settings in 10-auth.conf" |
263 |
- fi |
264 |
- |
265 |
- # Disable ipv6 if necessary |
266 |
- if ! use ipv6; then |
267 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
268 |
- || die "failed to update listen settings in dovecot.conf" |
269 |
- fi |
270 |
- |
271 |
- # Update ssl cert locations |
272 |
- if use ssl; then |
273 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
274 |
- || die "ssl conf failed" |
275 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
276 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
277 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
278 |
- fi |
279 |
- |
280 |
- # Install SQL configuration |
281 |
- if use mysql || use postgres; then |
282 |
- sed -i -e \ |
283 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
284 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
285 |
- 10-auth.conf" |
286 |
- fi |
287 |
- |
288 |
- # Install LDAP configuration |
289 |
- if use ldap; then |
290 |
- sed -i -e \ |
291 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
292 |
- "${confd}/10-auth.conf" \ |
293 |
- || die "failed to update ldap settings in 10-auth.conf" |
294 |
- fi |
295 |
- |
296 |
- if use vpopmail; then |
297 |
- sed -i -e \ |
298 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
299 |
- "${confd}/10-auth.conf" \ |
300 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
301 |
- fi |
302 |
- |
303 |
- if use sieve || use managesieve ; then |
304 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
305 |
- emake DESTDIR="${ED}" install |
306 |
- sed -i -e \ |
307 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
308 |
- || die "failed to update sieve settings in 15-lda.conf" |
309 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
310 |
- docinto example-config/conf.d |
311 |
- dodoc doc/example-config/conf.d/*.conf |
312 |
- insinto /etc/dovecot/conf.d |
313 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
314 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
315 |
- docinto sieve/rfc |
316 |
- dodoc doc/rfc/*.txt |
317 |
- docinto sieve/devel |
318 |
- dodoc doc/devel/DESIGN |
319 |
- docinto plugins |
320 |
- dodoc doc/plugins/*.txt |
321 |
- docinto extensions |
322 |
- dodoc doc/extensions/*.txt |
323 |
- docinto locations |
324 |
- dodoc doc/locations/*.txt |
325 |
- doman doc/man/*.{1,7} |
326 |
- fi |
327 |
- |
328 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
329 |
-} |
330 |
- |
331 |
-pkg_postinst() { |
332 |
- if use ssl; then |
333 |
- # Let's not make a new certificate if we already have one |
334 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
335 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
336 |
- einfo "Creating SSL certificate" |
337 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
338 |
- install_cert /etc/ssl/dovecot/server |
339 |
- fi |
340 |
- fi |
341 |
- |
342 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
343 |
-} |
344 |
|
345 |
diff --git a/net-mail/dovecot/files/dovecot-10-ssl.patch b/net-mail/dovecot/files/dovecot-10-ssl.patch |
346 |
deleted file mode 100644 |
347 |
index 8173bacc0bc..00000000000 |
348 |
--- a/net-mail/dovecot/files/dovecot-10-ssl.patch |
349 |
+++ /dev/null |
350 |
@@ -1,15 +0,0 @@ |
351 |
---- doc/example-config/conf.d/10-ssl.conf 2014-12-08 07:58:21.000000000 +0000 |
352 |
-+++ doc/example-config/conf.d/10-ssl.conf 2014-12-08 08:02:19.000000000 +0000 |
353 |
-@@ -49,6 +49,12 @@ |
354 |
- #ssl_protocols = !SSLv2 |
355 |
- |
356 |
- # SSL ciphers to use |
357 |
-+# ############### |
358 |
-+# Added by Gentoo |
359 |
-+# You are encouraged to change the cipher list to |
360 |
-+#ssl_cipher_list = DEFAULT:!EXPORT:!LOW:!MEDIUM:!MD5 |
361 |
-+# if you are not required to support legacy mail clients. |
362 |
-+# ############### |
363 |
- #ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL |
364 |
- |
365 |
- # Prefer the server's order of ciphers over client's. |
366 |
|
367 |
diff --git a/net-mail/dovecot/files/dovecot-glibc226.patch b/net-mail/dovecot/files/dovecot-glibc226.patch |
368 |
deleted file mode 100644 |
369 |
index adf1dd99aac..00000000000 |
370 |
--- a/net-mail/dovecot/files/dovecot-glibc226.patch |
371 |
+++ /dev/null |
372 |
@@ -1,84 +0,0 @@ |
373 |
-From 9a58361b08e1858e3bc7ea93934b7613261da476 Mon Sep 17 00:00:00 2001 |
374 |
-From: Timo Sirainen <timo.sirainen@×××××××.fi> |
375 |
-Date: Mon, 9 Jul 2018 11:33:23 +0300 |
376 |
-Subject: [PATCH] m4: Enable rquota only if rpc/rpc.h exists |
377 |
- |
378 |
-It's been removed in glibc 2.26 |
379 |
---- |
380 |
- m4/quota.m4 | 6 ++++-- |
381 |
- 1 file changed, 4 insertions(+), 2 deletions(-) |
382 |
- |
383 |
-diff --git a/m4/quota.m4 b/m4/quota.m4 |
384 |
-index 5840e3af89..0695b1e021 100644 |
385 |
---- a/m4/quota.m4 |
386 |
-+++ b/m4/quota.m4 |
387 |
-@@ -7,8 +7,10 @@ AC_DEFUN([DOVECOT_RPCGEN], [ |
388 |
- |
389 |
- have_rquota=no |
390 |
- if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then |
391 |
-- AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) |
392 |
-- have_rquota=yes |
393 |
-+ AC_CHECK_HEADER([rpc/rpc.h], [ |
394 |
-+ AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) |
395 |
-+ have_rquota=yes |
396 |
-+ ]) |
397 |
- fi |
398 |
- AM_CONDITIONAL(HAVE_RQUOTA, test "$have_rquota" = "yes") |
399 |
- ]) |
400 |
-From 5803ae4bbd420def0072e1660ea7061c0e5dbcb9 Mon Sep 17 00:00:00 2001 |
401 |
-From: Timo Sirainen <timo.sirainen@×××××××.fi> |
402 |
-Date: Mon, 9 Jul 2018 11:39:59 +0300 |
403 |
-Subject: [PATCH] m4, quota: Support rquota using libtirpc |
404 |
- |
405 |
---- |
406 |
- m4/quota.m4 | 13 ++++++++++--- |
407 |
- src/plugins/quota/Makefile.am | 3 ++- |
408 |
- 2 files changed, 12 insertions(+), 4 deletions(-) |
409 |
- |
410 |
-diff --git a/m4/quota.m4 b/m4/quota.m4 |
411 |
-index 0695b1e021..d75af447e1 100644 |
412 |
---- a/m4/quota.m4 |
413 |
-+++ b/m4/quota.m4 |
414 |
-@@ -7,18 +7,25 @@ AC_DEFUN([DOVECOT_RPCGEN], [ |
415 |
- |
416 |
- have_rquota=no |
417 |
- if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then |
418 |
-- AC_CHECK_HEADER([rpc/rpc.h], [ |
419 |
-- AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) |
420 |
-+ PKG_CHECK_MODULES(LIBTIRPC, libtirpc, [ |
421 |
- have_rquota=yes |
422 |
-+ QUOTA_LIBS="$QUOTA_LIBS \$(LIBTIRPC_LIBS)" |
423 |
-+ ], [ |
424 |
-+ AC_CHECK_HEADER([rpc/rpc.h], [ |
425 |
-+ have_rquota=yes |
426 |
-+ ]) |
427 |
- ]) |
428 |
- fi |
429 |
-+ if test "$have_rquota" = yes; then |
430 |
-+ AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) |
431 |
-+ fi |
432 |
- AM_CONDITIONAL(HAVE_RQUOTA, test "$have_rquota" = "yes") |
433 |
- ]) |
434 |
- |
435 |
- AC_DEFUN([DOVECOT_QUOTA], [ |
436 |
- AC_SEARCH_LIBS(quota_open, quota, [ |
437 |
- AC_DEFINE(HAVE_QUOTA_OPEN,, [Define if you have quota_open()]) |
438 |
-- QUOTA_LIBS="-lquota" |
439 |
-+ QUOTA_LIBS="$QUOTA_LIBS -lquota" |
440 |
- ]) |
441 |
- AC_SUBST(QUOTA_LIBS) |
442 |
- ]) |
443 |
-diff --git a/src/plugins/quota/Makefile.am b/src/plugins/quota/Makefile.am |
444 |
-index f220d4f075..ffebc67404 100644 |
445 |
---- a/src/plugins/quota/Makefile.am |
446 |
-+++ b/src/plugins/quota/Makefile.am |
447 |
-@@ -19,7 +19,8 @@ AM_CPPFLAGS = \ |
448 |
- -I$(top_srcdir)/src/lib-storage/index/imapc \ |
449 |
- -I$(top_srcdir)/src/lib-storage/index/maildir \ |
450 |
- -I$(top_srcdir)/src/lib-program-client \ |
451 |
-- -I$(top_srcdir)/src/doveadm |
452 |
-+ -I$(top_srcdir)/src/doveadm \ |
453 |
-+ $(LIBTIRPC_CFLAGS) |
454 |
- |
455 |
- NOPLUGIN_LDFLAGS = |
456 |
- lib10_doveadm_quota_plugin_la_LDFLAGS = -module -avoid-version |
457 |
|
458 |
diff --git a/net-mail/dovecot/files/dovecot-glibc228.patch b/net-mail/dovecot/files/dovecot-glibc228.patch |
459 |
deleted file mode 100644 |
460 |
index 9549c12f6e8..00000000000 |
461 |
--- a/net-mail/dovecot/files/dovecot-glibc228.patch |
462 |
+++ /dev/null |
463 |
@@ -1,44 +0,0 @@ |
464 |
-From 63a74b9e8e0604486a15a879e7f1a27257322400 Mon Sep 17 00:00:00 2001 |
465 |
-From: Aki Tuomi <aki.tuomi@×××××××.fi> |
466 |
-Date: Wed, 8 Aug 2018 12:33:20 +0300 |
467 |
-Subject: [PATCH] auth: mycrypt - include crypt.h |
468 |
-MIME-Version: 1.0 |
469 |
-Content-Type: text/plain; charset=UTF-8 |
470 |
-Content-Transfer-Encoding: 8bit |
471 |
- |
472 |
-Fixes crypt usage on glibc-2.28 |
473 |
- |
474 |
-Reported by Reuben Farrelly |
475 |
-Patch provided by Thore Bödecker |
476 |
---- |
477 |
- configure.ac | 2 +- |
478 |
- src/auth/mycrypt.c | 3 +++ |
479 |
- 2 files changed, 4 insertions(+), 1 deletion(-) |
480 |
- |
481 |
-diff --git a/configure.ac b/configure.ac |
482 |
-index dd545ebfdc..c5d8fae666 100644 |
483 |
---- a/configure.ac |
484 |
-+++ b/configure.ac |
485 |
-@@ -315,7 +315,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h \ |
486 |
- quota.h sys/fs/quota_common.h \ |
487 |
- mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \ |
488 |
- xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \ |
489 |
-- sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h) |
490 |
-+ sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h) |
491 |
- |
492 |
- CC_CLANG |
493 |
- AC_CC_PIE |
494 |
-diff --git a/src/auth/mycrypt.c b/src/auth/mycrypt.c |
495 |
-index c49fcf842e..0bd00bc238 100644 |
496 |
---- a/src/auth/mycrypt.c |
497 |
-+++ b/src/auth/mycrypt.c |
498 |
-@@ -14,6 +14,9 @@ |
499 |
- # define _XPG6 /* Some Solaris versions require this, some break with this */ |
500 |
- #endif |
501 |
- #include <unistd.h> |
502 |
-+#ifdef HAVE_CRYPT_H |
503 |
-+# include <crypt.h> |
504 |
-+#endif |
505 |
- |
506 |
- #include "mycrypt.h" |
507 |
- |
508 |
|
509 |
diff --git a/net-mail/dovecot/files/dovecot.init-r4 b/net-mail/dovecot/files/dovecot.init-r4 |
510 |
deleted file mode 100644 |
511 |
index 665aa0dc733..00000000000 |
512 |
--- a/net-mail/dovecot/files/dovecot.init-r4 |
513 |
+++ /dev/null |
514 |
@@ -1,57 +0,0 @@ |
515 |
-#!/sbin/openrc-run |
516 |
-# Copyright 1999-2012 Gentoo Foundation |
517 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
518 |
- |
519 |
-extra_started_commands="reload" |
520 |
- |
521 |
-depend() { |
522 |
- need localmount |
523 |
- before postfix |
524 |
- after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd |
525 |
- use logger net |
526 |
-} |
527 |
- |
528 |
-checkconfig() { |
529 |
- DOVECOT_INSTANCE=${SVCNAME##*.} |
530 |
- if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then |
531 |
- DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf |
532 |
- else |
533 |
- DOVECOT_CONF=/etc/dovecot/dovecot.conf |
534 |
- fi |
535 |
- if [ ! -e ${DOVECOT_CONF} ]; then |
536 |
- eerror "You will need an ${DOVECOT_CONF} first" |
537 |
- return 1 |
538 |
- fi |
539 |
- if [ -x /usr/sbin/dovecot ]; then |
540 |
- DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | grep '^base_dir = ' | sed 's/^base_dir = //') |
541 |
- else |
542 |
- eerror "dovecot not executable" |
543 |
- return 1 |
544 |
- fi |
545 |
- DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot} |
546 |
- DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid |
547 |
-} |
548 |
- |
549 |
-start() { |
550 |
- checkconfig || return 1 |
551 |
- ebegin "Starting ${SVCNAME}" |
552 |
- start-stop-daemon --start --exec /usr/sbin/dovecot \ |
553 |
- --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" |
554 |
- eend $? |
555 |
-} |
556 |
- |
557 |
-stop() { |
558 |
- checkconfig || return 1 |
559 |
- ebegin "Stopping ${SVCNAME}" |
560 |
- start-stop-daemon --stop --exec /usr/sbin/dovecot \ |
561 |
- --pidfile "${DOVECOT_PIDFILE}" |
562 |
- eend $? |
563 |
-} |
564 |
- |
565 |
-reload() { |
566 |
- checkconfig || return 1 |
567 |
- ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes" |
568 |
- start-stop-daemon --signal HUP --exec /usr/sbin/dovecot \ |
569 |
- --pidfile "${DOVECOT_PIDFILE}" |
570 |
- eend $? |
571 |
-} |
572 |
|
573 |
diff --git a/net-mail/dovecot/files/dovecot.init-r5 b/net-mail/dovecot/files/dovecot.init-r5 |
574 |
deleted file mode 100644 |
575 |
index 8a98603d4b4..00000000000 |
576 |
--- a/net-mail/dovecot/files/dovecot.init-r5 |
577 |
+++ /dev/null |
578 |
@@ -1,57 +0,0 @@ |
579 |
-#!/sbin/openrc-run |
580 |
-# Copyright 1999-2018 Gentoo Authors |
581 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
582 |
- |
583 |
-extra_started_commands="reload" |
584 |
- |
585 |
-depend() { |
586 |
- need localmount |
587 |
- before postfix |
588 |
- after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd |
589 |
- use logger net |
590 |
-} |
591 |
- |
592 |
-checkconfig() { |
593 |
- DOVECOT_INSTANCE=${SVCNAME##*.} |
594 |
- if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then |
595 |
- DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf |
596 |
- else |
597 |
- DOVECOT_CONF=/etc/dovecot/dovecot.conf |
598 |
- fi |
599 |
- if [ ! -e ${DOVECOT_CONF} ]; then |
600 |
- eerror "You will need an ${DOVECOT_CONF} first" |
601 |
- return 1 |
602 |
- fi |
603 |
- if [ -x /usr/sbin/dovecot ]; then |
604 |
- DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} config -h base_dir) |
605 |
- else |
606 |
- eerror "dovecot not executable" |
607 |
- return 1 |
608 |
- fi |
609 |
- DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/run/dovecot} |
610 |
- DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid |
611 |
-} |
612 |
- |
613 |
-start() { |
614 |
- checkconfig || return 1 |
615 |
- ebegin "Starting ${SVCNAME}" |
616 |
- start-stop-daemon --start --exec /usr/sbin/dovecot \ |
617 |
- --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" |
618 |
- eend $? |
619 |
-} |
620 |
- |
621 |
-stop() { |
622 |
- checkconfig || return 1 |
623 |
- ebegin "Stopping ${SVCNAME}" |
624 |
- start-stop-daemon --stop --exec /usr/sbin/dovecot \ |
625 |
- --pidfile "${DOVECOT_PIDFILE}" |
626 |
- eend $? |
627 |
-} |
628 |
- |
629 |
-reload() { |
630 |
- checkconfig || return 1 |
631 |
- ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes" |
632 |
- start-stop-daemon --signal HUP --exec /usr/sbin/dovecot \ |
633 |
- --pidfile "${DOVECOT_PIDFILE}" |
634 |
- eend $? |
635 |
-} |
636 |
|
637 |
diff --git a/net-mail/dovecot/metadata.xml b/net-mail/dovecot/metadata.xml |
638 |
index 496575228ba..d8223dea238 100644 |
639 |
--- a/net-mail/dovecot/metadata.xml |
640 |
+++ b/net-mail/dovecot/metadata.xml |
641 |
@@ -7,14 +7,9 @@ |
642 |
</maintainer> |
643 |
<use> |
644 |
<flag name="argon2">Add support for ARGON2 password schemes</flag> |
645 |
- <flag name="cydir">Add cydir storage support</flag> |
646 |
<flag name="managesieve">Add managesieve protocol support</flag> |
647 |
- <flag name="mdbox">Add mdbox storage support</flag> |
648 |
- <flag name="sdbox">Add sdbox storage support</flag> |
649 |
<flag name="sieve">Add sieve support</flag> |
650 |
<flag name="vpopmail">Add vpopmail support</flag> |
651 |
- <flag name="imapc">Add imap client storage support</flag> |
652 |
- <flag name="pop3c">Add pop3 client storage support</flag> |
653 |
<flag name="lucene">Add lucene full text search (FTS) support using <pkg>dev-cpp/clucene</pkg></flag> |
654 |
<flag name="lzma">Add support for lzma (de)compression</flag> |
655 |
<flag name="lz4">Add support for lz4 (de)compression</flag> |