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: Thu, 08 Aug 2019 05:53:27
Message-Id: 1565243591.63226975641987c8e48036b19ae2c05e0ad9896a.eras@gentoo
1 commit: 63226975641987c8e48036b19ae2c05e0ad9896a
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 8 05:53:11 2019 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 8 05:53:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63226975
7
8 net-mail/dovecot: remove old
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
12
13 net-mail/dovecot/Manifest | 5 -
14 net-mail/dovecot/dovecot-2.3.5.1.ebuild | 294 --------------------------------
15 net-mail/dovecot/dovecot-2.3.5.2.ebuild | 294 --------------------------------
16 net-mail/dovecot/dovecot-2.3.7.ebuild | 292 -------------------------------
17 4 files changed, 885 deletions(-)
18
19 diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
20 index fdf7e81dd84..078f5158c00 100644
21 --- a/net-mail/dovecot/Manifest
22 +++ b/net-mail/dovecot/Manifest
23 @@ -1,11 +1,6 @@
24 DIST dovecot-2.2-pigeonhole-0.4.24.1.tar.gz 1810959 BLAKE2B f24b28dc7422ea4f379e372adf33ebbf7cbb146d55b01dbf40580767a14adf695b0a2726f591c0c34436bd93a8b48ee8a8c4307fffc6b082d9c028ce93e29a0a SHA512 99af8a1f4588d821c7000133c5c173ab05640d3411b826a0978db2d60c9a59d5b330ca2d38aa25aa1163f6d1b669dc97b8303e2bceda554f67d0029d5d0b34fd
25 DIST dovecot-2.2.36.3.tar.gz 6270735 BLAKE2B 90bd6f7cd3769040215f574bb368c1ad835041fff54273e2477be2d2e057c1700472b08a24ed3a7cad469bd39449d94986bc6801373bb97a63975ddbb54cefa5 SHA512 47611dbde7ee854ad323dcdb726757c7172376761fa774f28fce3f9d74ed590319d812f0555abed5f8178c326c3cb7661ac0b708ca5982914e255cec60f72e35
26 -DIST dovecot-2.3-pigeonhole-0.5.5.tar.gz 1847487 BLAKE2B 9574388566778a4011ce6546021675ed9e07ba0d874dc4163e4cea10096f3bb8a434f198c3bb446b628ee18402afe94bd90b7123b3cf4d47e4095ddad12d9bfc SHA512 21519fc9b1152a947b64ce4251e1a4bdbe003b48233b1856a32696f9c1e29f730268c56eb38f9431bbfac345e6cd42e8c78c87d0702f39ebf20c6d326dcdbb94
27 DIST dovecot-2.3-pigeonhole-0.5.6.tar.gz 1854287 BLAKE2B a26edf2a298d8c3de0d9977d56583bd2e0933495c5f554871a38d7b9e31701ebf3587d221c5ec398721a9c34816918c41b069de39c13f879334f9776fede1a17 SHA512 998a046d2eb5ff7bba615fd1a3efdfb1e7e1dabf191257f7fa2882074acc1735a0a4c11c5f31bab1e964b0118f1a8e9e51b3d5529b8fff6d1312c9a8257d9c20
28 DIST dovecot-2.3-pigeonhole-0.5.7.1.tar.gz 1857291 BLAKE2B 09763c87099ac50fbe86870855b100379a9b2a72d6077438bbf1f76ff3aed162ad781be27e6587a9742819137f6636f142a220f3b46d3c46115b10cbf4cb2efc SHA512 121eac4ad8bc1ddc55c554d00338bb553590b6aedffcb11e34f6cba102d59bd34580cb7218bd5fe820038c004d12db73f7a27ca135c3d4a12c4449bae3216355
29 -DIST dovecot-2.3-pigeonhole-0.5.7.tar.gz 1856779 BLAKE2B ce9fe5570f058ceed6ef5ea5f732b079e7924bcdc8910cb13e8686898b654705ea006286cbb19105975f83d6c96a0256106b6f0ec10f561cd6040311be2087d8 SHA512 f58098ae13b41a6378080340240928083514a541f2fe3c8f516853455ab27635e0c47587a101aca5eb4e97ec8afe6a5dd5360c46e956b009ae971316e491f1b8
30 -DIST dovecot-2.3.5.1.tar.gz 6953150 BLAKE2B 04484325e7b87f78c0aa6e3c769bc921e9dc62562cd8705b99166b7291b794f434b088dcf6512bc21c96d8937475cafa4d49c6ac611cb07f74a0d20e15e185c7 SHA512 e87754461fb0b065acd0ff10dc955000a2fe5baffed69efaf328ce9268f90140e9de444bc68e0bd48b565c7622885a79b1f90ff3dd2335c0c2362d05d9e73e8a
31 -DIST dovecot-2.3.5.2.tar.gz 6953228 BLAKE2B d3634ca0621349ed82c552b416bd633497ce9e4bdd5df30c2e35da1ab70a5934e2dda2b88ac6bbebeebc23918d9dcfb7a0976b1b51fba5eefd14327b2b2ea734 SHA512 041ec1c33c6accb5c89d96d7ab2f7dd59795f496c17faea1906e7977983e4a387aa855a238376515c09532731634d9d42e6d6be22659062855241847ea0213d5
32 DIST dovecot-2.3.6.tar.gz 6980135 BLAKE2B 59ce625aafb96092cbd687aa0d5ccc3d7697228606978efa89bbf50e608915e381abb79348197aaf3b3fa046618bcf88acdc77420f9f028035653b8cb9843009 SHA512 ec28af2efcbd4ab534298c3342709251074dcdb0f0f4bcad0d24b996b273387e2ce557d7ab54abafb69be3ed7dd61f25c82b9710d78156932e2eff7f941c9eb2
33 DIST dovecot-2.3.7.1.tar.gz 7076500 BLAKE2B fba84e324de44a4f463769ee8b99ddc532f3ac3fad3c55a1035a367c7b186850cd49c3c45ecea439469e84abf2ae26dcfc8f454c3d2dab43be0fd89721c8053f SHA512 9addfe2be9ae745ac9164e1658e6638df96bd611d45f172e2cd1cb2c6596e4ce534674e9eea3c1d17f497555061031916e0fb9a9fbc6de0eb6034e2fd0bed3b9
34 -DIST dovecot-2.3.7.tar.gz 7074117 BLAKE2B 30aa02cc1dbd83f2ecc65f7b27543d3a1614c857e3d432454f13e4108cb4a15fc37c8c07835a2eaeb6b03077066fba2ed947e30f033926f52213a7446dd096eb SHA512 a8828b6cdf0ada0d317a4606d88370f1360415dadcf0f3a6f157d76396bcaf7379d85114d9747011b429ee94bee8eff7de8d0b6cf25e2618af15fdfba8ae4508
35
36 diff --git a/net-mail/dovecot/dovecot-2.3.5.1.ebuild b/net-mail/dovecot/dovecot-2.3.5.1.ebuild
37 deleted file mode 100644
38 index f708782a71c..00000000000
39 --- a/net-mail/dovecot/dovecot-2.3.5.1.ebuild
40 +++ /dev/null
41 @@ -1,294 +0,0 @@
42 -# Copyright 1999-2019 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=6
46 -
47 -# do not add a ssl USE flag. ssl is mandatory
48 -SSL_DEPS_SKIP=1
49 -inherit autotools eapi7-ver ssl-cert systemd user
50 -
51 -MY_P="${P/_/.}"
52 -#MY_S="${PN}-ce-${PV}"
53 -major_minor="$(ver_cut 1-2)"
54 -sieve_version="0.5.5"
55 -if [[ ${PV} == *_rc* ]] ; then
56 - rc_dir="rc/"
57 -else
58 - rc_dir=""
59 -fi
60 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
61 - sieve? (
62 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
63 - )
64 - managesieve? (
65 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
66 - ) "
67 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
68 -HOMEPAGE="https://www.dovecot.org/"
69 -
70 -SLOT="0"
71 -LICENSE="LGPL-2.1 MIT"
72 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sparc x86"
73 -
74 -IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail"
75 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
76 -IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat"
77 -
78 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
79 -
80 -DEPEND="argon2? ( dev-libs/libsodium )
81 - bzip2? ( app-arch/bzip2 )
82 - caps? ( sys-libs/libcap )
83 - kerberos? ( virtual/krb5 )
84 - ldap? ( net-nds/openldap )
85 - lua? ( dev-lang/lua:* )
86 - lucene? ( >=dev-cpp/clucene-2.3 )
87 - lzma? ( app-arch/xz-utils )
88 - lz4? ( app-arch/lz4 )
89 - mysql? ( dev-db/mysql-connector-c:0= )
90 - pam? ( virtual/pam )
91 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
92 - selinux? ( sec-policy/selinux-dovecot )
93 - solr? ( net-misc/curl dev-libs/expat )
94 - sqlite? ( dev-db/sqlite:* )
95 - !libressl? ( dev-libs/openssl:0 )
96 - libressl? ( dev-libs/libressl )
97 - tcpd? ( sys-apps/tcp-wrappers )
98 - textcat? ( app-text/libexttextcat )
99 - vpopmail? ( net-mail/vpopmail )
100 - zlib? ( sys-libs/zlib )
101 - virtual/libiconv
102 - dev-libs/icu:="
103 -
104 -RDEPEND="${DEPEND}
105 - net-mail/mailbase"
106 -
107 -PATCHES=(
108 - "${FILESDIR}/${PN}-userdb-passwd-fix.patch"
109 -)
110 -
111 -pkg_setup() {
112 - if use managesieve && ! use sieve; then
113 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
114 - ewarn "sieve USE flag will be turned on"
115 - fi
116 - # default internal user
117 - enewgroup dovecot 97
118 - enewuser dovecot 97 -1 /dev/null dovecot
119 - # default login user
120 - enewuser dovenull -1 -1 /dev/null
121 - # add "mail" group for suid'ing. Better security isolation.
122 - if use suid; then
123 - enewgroup mail
124 - fi
125 -}
126 -
127 -src_prepare() {
128 - default
129 - # bug 657108
130 - # elibtoolize
131 - eautoreconf
132 -}
133 -
134 -src_configure() {
135 - local conf=""
136 -
137 - if use postgres || use mysql || use sqlite; then
138 - conf="${conf} --with-sql"
139 - fi
140 -
141 - # turn valgrind tests off. Bug #340791
142 - VALGRIND=no econf \
143 - --with-rundir="${EPREFIX}/run/dovecot" \
144 - --with-statedir="${EPREFIX}/var/lib/dovecot" \
145 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
146 - --without-stemmer \
147 - --disable-rpath \
148 - --without-libbsd \
149 - --with-icu \
150 - --with-ssl \
151 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
152 - $( use_with argon2 sodium ) \
153 - $( use_with bzip2 bzlib ) \
154 - $( use_with caps libcap ) \
155 - $( use_with kerberos gssapi ) \
156 - $( use_with lua ) \
157 - $( use_with ldap ) \
158 - $( use_with lucene ) \
159 - $( use_with lz4 ) \
160 - $( use_with lzma ) \
161 - $( use_with mysql ) \
162 - $( use_with pam ) \
163 - $( use_with postgres pgsql ) \
164 - $( use_with sqlite ) \
165 - $( use_with solr ) \
166 - $( use_with tcpd libwrap ) \
167 - $( use_with textcat ) \
168 - $( use_with vpopmail ) \
169 - $( use_with zlib ) \
170 - $( use_enable static-libs static ) \
171 - ${conf}
172 -
173 - if use sieve || use managesieve ; then
174 - # The sieve plugin needs this file to be build to determine the plugin
175 - # directory and the list of libraries to link to.
176 - emake dovecot-config
177 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
178 - econf \
179 - $( use_enable static-libs static ) \
180 - --localstatedir="${EPREFIX%/}/var" \
181 - --enable-shared \
182 - --with-dovecot="${S}" \
183 - $( use_with managesieve )
184 - fi
185 -}
186 -
187 -src_compile() {
188 - default
189 - if use sieve || use managesieve ; then
190 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
191 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
192 - fi
193 -}
194 -
195 -src_test() {
196 - default
197 - if use sieve || use managesieve ; then
198 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
199 - default
200 - fi
201 -}
202 -
203 -src_install () {
204 - default
205 -
206 - # insecure:
207 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
208 - # better:
209 - if use suid;then
210 - einfo "Changing perms to allow deliver to be suided"
211 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
212 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
213 - fi
214 -
215 - newinitd "${FILESDIR}"/dovecot.init-r6 dovecot
216 -
217 - rm -rf "${ED}"/usr/share/doc/dovecot
218 -
219 - dodoc AUTHORS NEWS README TODO
220 - dodoc doc/*.{txt,cnf,xml,sh}
221 - docinto example-config
222 - dodoc doc/example-config/*.{conf,ext}
223 - docinto example-config/conf.d
224 - dodoc doc/example-config/conf.d/*.{conf,ext}
225 - docinto wiki
226 - dodoc doc/wiki/*
227 - doman doc/man/*.{1,7}
228 -
229 - # Create the dovecot.conf file from the dovecot-example.conf file that
230 - # the dovecot folks nicely left for us....
231 - local conf="${ED}/etc/dovecot/dovecot.conf"
232 - local confd="${ED}/etc/dovecot/conf.d"
233 -
234 - insinto /etc/dovecot
235 - doins doc/example-config/*.{conf,ext}
236 - insinto /etc/dovecot/conf.d
237 - doins doc/example-config/conf.d/*.{conf,ext}
238 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
239 - rm -f "${confd}/../README"
240 -
241 - # .maildir is the Gentoo default
242 - local mail_location="maildir:~/.maildir"
243 - sed -i -e \
244 - "s|#mail_location =|mail_location = ${mail_location}|" \
245 - "${confd}/10-mail.conf" \
246 - || die "failed to update mail location settings in 10-mail.conf"
247 -
248 - # We're using pam files (imap and pop3) provided by mailbase
249 - if use pam; then
250 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
251 - "${confd}/auth-system.conf.ext" \
252 - || die "failed to update PAM settings in auth-system.conf.ext"
253 - # mailbase does not provide a sieve pam file
254 - use managesieve && dosym imap /etc/pam.d/sieve
255 - sed -i -e \
256 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
257 - "${confd}/10-auth.conf" \
258 - || die "failed to update PAM settings in 10-auth.conf"
259 - fi
260 -
261 - # Disable ipv6 if necessary
262 - if ! use ipv6; then
263 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
264 - || die "failed to update listen settings in dovecot.conf"
265 - fi
266 -
267 - # Update ssl cert locations
268 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
269 - || die "ssl conf failed"
270 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
271 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
272 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
273 -
274 - # Install SQL configuration
275 - if use mysql || use postgres; then
276 - sed -i -e \
277 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
278 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
279 - 10-auth.conf"
280 - fi
281 -
282 - # Install LDAP configuration
283 - if use ldap; then
284 - sed -i -e \
285 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
286 - "${confd}/10-auth.conf" \
287 - || die "failed to update ldap settings in 10-auth.conf"
288 - fi
289 -
290 - if use vpopmail; then
291 - sed -i -e \
292 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
293 - "${confd}/10-auth.conf" \
294 - || die "failed to update vpopmail settings in 10-auth.conf"
295 - fi
296 -
297 - if use sieve || use managesieve ; then
298 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
299 - emake DESTDIR="${ED}" install
300 - sed -i -e \
301 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
302 - || die "failed to update sieve settings in 15-lda.conf"
303 - rm -rf "${ED}"/usr/share/doc/dovecot
304 - docinto example-config/conf.d
305 - dodoc doc/example-config/conf.d/*.conf
306 - insinto /etc/dovecot/conf.d
307 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
308 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
309 - docinto sieve/rfc
310 - dodoc doc/rfc/*.txt
311 - docinto sieve/devel
312 - dodoc doc/devel/DESIGN
313 - docinto plugins
314 - dodoc doc/plugins/*.txt
315 - docinto extensions
316 - dodoc doc/extensions/*.txt
317 - docinto locations
318 - dodoc doc/locations/*.txt
319 - doman doc/man/*.{1,7}
320 - fi
321 -
322 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
323 -}
324 -
325 -pkg_postinst() {
326 - # Let's not make a new certificate if we already have one
327 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
328 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
329 - einfo "Creating SSL certificate"
330 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
331 - install_cert /etc/ssl/dovecot/server
332 - fi
333 -
334 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
335 -}
336
337 diff --git a/net-mail/dovecot/dovecot-2.3.5.2.ebuild b/net-mail/dovecot/dovecot-2.3.5.2.ebuild
338 deleted file mode 100644
339 index c1eb85fc4d4..00000000000
340 --- a/net-mail/dovecot/dovecot-2.3.5.2.ebuild
341 +++ /dev/null
342 @@ -1,294 +0,0 @@
343 -# Copyright 1999-2019 Gentoo Authors
344 -# Distributed under the terms of the GNU General Public License v2
345 -
346 -EAPI=6
347 -
348 -# do not add a ssl USE flag. ssl is mandatory
349 -SSL_DEPS_SKIP=1
350 -inherit autotools eapi7-ver ssl-cert systemd user
351 -
352 -MY_P="${P/_/.}"
353 -#MY_S="${PN}-ce-${PV}"
354 -major_minor="$(ver_cut 1-2)"
355 -sieve_version="0.5.5"
356 -if [[ ${PV} == *_rc* ]] ; then
357 - rc_dir="rc/"
358 -else
359 - rc_dir=""
360 -fi
361 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
362 - sieve? (
363 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
364 - )
365 - managesieve? (
366 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
367 - ) "
368 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
369 -HOMEPAGE="https://www.dovecot.org/"
370 -
371 -SLOT="0"
372 -LICENSE="LGPL-2.1 MIT"
373 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sparc x86"
374 -
375 -IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail"
376 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
377 -IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat"
378 -
379 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
380 -
381 -DEPEND="argon2? ( dev-libs/libsodium )
382 - bzip2? ( app-arch/bzip2 )
383 - caps? ( sys-libs/libcap )
384 - kerberos? ( virtual/krb5 )
385 - ldap? ( net-nds/openldap )
386 - lua? ( dev-lang/lua:* )
387 - lucene? ( >=dev-cpp/clucene-2.3 )
388 - lzma? ( app-arch/xz-utils )
389 - lz4? ( app-arch/lz4 )
390 - mysql? ( dev-db/mysql-connector-c:0= )
391 - pam? ( virtual/pam )
392 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
393 - selinux? ( sec-policy/selinux-dovecot )
394 - solr? ( net-misc/curl dev-libs/expat )
395 - sqlite? ( dev-db/sqlite:* )
396 - !libressl? ( dev-libs/openssl:0 )
397 - libressl? ( dev-libs/libressl )
398 - tcpd? ( sys-apps/tcp-wrappers )
399 - textcat? ( app-text/libexttextcat )
400 - vpopmail? ( net-mail/vpopmail )
401 - zlib? ( sys-libs/zlib )
402 - virtual/libiconv
403 - dev-libs/icu:="
404 -
405 -RDEPEND="${DEPEND}
406 - net-mail/mailbase"
407 -
408 -PATCHES=(
409 - "${FILESDIR}/${PN}-userdb-passwd-fix.patch"
410 -)
411 -
412 -pkg_setup() {
413 - if use managesieve && ! use sieve; then
414 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
415 - ewarn "sieve USE flag will be turned on"
416 - fi
417 - # default internal user
418 - enewgroup dovecot 97
419 - enewuser dovecot 97 -1 /dev/null dovecot
420 - # default login user
421 - enewuser dovenull -1 -1 /dev/null
422 - # add "mail" group for suid'ing. Better security isolation.
423 - if use suid; then
424 - enewgroup mail
425 - fi
426 -}
427 -
428 -src_prepare() {
429 - default
430 - # bug 657108
431 - elibtoolize
432 - #eautoreconf
433 -}
434 -
435 -src_configure() {
436 - local conf=""
437 -
438 - if use postgres || use mysql || use sqlite; then
439 - conf="${conf} --with-sql"
440 - fi
441 -
442 - # turn valgrind tests off. Bug #340791
443 - VALGRIND=no econf \
444 - --with-rundir="${EPREFIX}/run/dovecot" \
445 - --with-statedir="${EPREFIX}/var/lib/dovecot" \
446 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
447 - --without-stemmer \
448 - --disable-rpath \
449 - --without-libbsd \
450 - --with-icu \
451 - --with-ssl \
452 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
453 - $( use_with argon2 sodium ) \
454 - $( use_with bzip2 bzlib ) \
455 - $( use_with caps libcap ) \
456 - $( use_with kerberos gssapi ) \
457 - $( use_with lua ) \
458 - $( use_with ldap ) \
459 - $( use_with lucene ) \
460 - $( use_with lz4 ) \
461 - $( use_with lzma ) \
462 - $( use_with mysql ) \
463 - $( use_with pam ) \
464 - $( use_with postgres pgsql ) \
465 - $( use_with sqlite ) \
466 - $( use_with solr ) \
467 - $( use_with tcpd libwrap ) \
468 - $( use_with textcat ) \
469 - $( use_with vpopmail ) \
470 - $( use_with zlib ) \
471 - $( use_enable static-libs static ) \
472 - ${conf}
473 -
474 - if use sieve || use managesieve ; then
475 - # The sieve plugin needs this file to be build to determine the plugin
476 - # directory and the list of libraries to link to.
477 - emake dovecot-config
478 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
479 - econf \
480 - $( use_enable static-libs static ) \
481 - --localstatedir="${EPREFIX%/}/var" \
482 - --enable-shared \
483 - --with-dovecot="${S}" \
484 - $( use_with managesieve )
485 - fi
486 -}
487 -
488 -src_compile() {
489 - default
490 - if use sieve || use managesieve ; then
491 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
492 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
493 - fi
494 -}
495 -
496 -src_test() {
497 - default
498 - if use sieve || use managesieve ; then
499 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
500 - default
501 - fi
502 -}
503 -
504 -src_install () {
505 - default
506 -
507 - # insecure:
508 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
509 - # better:
510 - if use suid;then
511 - einfo "Changing perms to allow deliver to be suided"
512 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
513 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
514 - fi
515 -
516 - newinitd "${FILESDIR}"/dovecot.init-r6 dovecot
517 -
518 - rm -rf "${ED}"/usr/share/doc/dovecot
519 -
520 - dodoc AUTHORS NEWS README TODO
521 - dodoc doc/*.{txt,cnf,xml,sh}
522 - docinto example-config
523 - dodoc doc/example-config/*.{conf,ext}
524 - docinto example-config/conf.d
525 - dodoc doc/example-config/conf.d/*.{conf,ext}
526 - docinto wiki
527 - dodoc doc/wiki/*
528 - doman doc/man/*.{1,7}
529 -
530 - # Create the dovecot.conf file from the dovecot-example.conf file that
531 - # the dovecot folks nicely left for us....
532 - local conf="${ED}/etc/dovecot/dovecot.conf"
533 - local confd="${ED}/etc/dovecot/conf.d"
534 -
535 - insinto /etc/dovecot
536 - doins doc/example-config/*.{conf,ext}
537 - insinto /etc/dovecot/conf.d
538 - doins doc/example-config/conf.d/*.{conf,ext}
539 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
540 - rm -f "${confd}/../README"
541 -
542 - # .maildir is the Gentoo default
543 - local mail_location="maildir:~/.maildir"
544 - sed -i -e \
545 - "s|#mail_location =|mail_location = ${mail_location}|" \
546 - "${confd}/10-mail.conf" \
547 - || die "failed to update mail location settings in 10-mail.conf"
548 -
549 - # We're using pam files (imap and pop3) provided by mailbase
550 - if use pam; then
551 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
552 - "${confd}/auth-system.conf.ext" \
553 - || die "failed to update PAM settings in auth-system.conf.ext"
554 - # mailbase does not provide a sieve pam file
555 - use managesieve && dosym imap /etc/pam.d/sieve
556 - sed -i -e \
557 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
558 - "${confd}/10-auth.conf" \
559 - || die "failed to update PAM settings in 10-auth.conf"
560 - fi
561 -
562 - # Disable ipv6 if necessary
563 - if ! use ipv6; then
564 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
565 - || die "failed to update listen settings in dovecot.conf"
566 - fi
567 -
568 - # Update ssl cert locations
569 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
570 - || die "ssl conf failed"
571 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
572 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
573 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
574 -
575 - # Install SQL configuration
576 - if use mysql || use postgres; then
577 - sed -i -e \
578 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
579 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
580 - 10-auth.conf"
581 - fi
582 -
583 - # Install LDAP configuration
584 - if use ldap; then
585 - sed -i -e \
586 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
587 - "${confd}/10-auth.conf" \
588 - || die "failed to update ldap settings in 10-auth.conf"
589 - fi
590 -
591 - if use vpopmail; then
592 - sed -i -e \
593 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
594 - "${confd}/10-auth.conf" \
595 - || die "failed to update vpopmail settings in 10-auth.conf"
596 - fi
597 -
598 - if use sieve || use managesieve ; then
599 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
600 - emake DESTDIR="${ED}" install
601 - sed -i -e \
602 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
603 - || die "failed to update sieve settings in 15-lda.conf"
604 - rm -rf "${ED}"/usr/share/doc/dovecot
605 - docinto example-config/conf.d
606 - dodoc doc/example-config/conf.d/*.conf
607 - insinto /etc/dovecot/conf.d
608 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
609 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
610 - docinto sieve/rfc
611 - dodoc doc/rfc/*.txt
612 - docinto sieve/devel
613 - dodoc doc/devel/DESIGN
614 - docinto plugins
615 - dodoc doc/plugins/*.txt
616 - docinto extensions
617 - dodoc doc/extensions/*.txt
618 - docinto locations
619 - dodoc doc/locations/*.txt
620 - doman doc/man/*.{1,7}
621 - fi
622 -
623 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
624 -}
625 -
626 -pkg_postinst() {
627 - # Let's not make a new certificate if we already have one
628 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
629 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
630 - einfo "Creating SSL certificate"
631 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
632 - install_cert /etc/ssl/dovecot/server
633 - fi
634 -
635 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
636 -}
637
638 diff --git a/net-mail/dovecot/dovecot-2.3.7.ebuild b/net-mail/dovecot/dovecot-2.3.7.ebuild
639 deleted file mode 100644
640 index 16c5e7137f0..00000000000
641 --- a/net-mail/dovecot/dovecot-2.3.7.ebuild
642 +++ /dev/null
643 @@ -1,292 +0,0 @@
644 -# Copyright 1999-2019 Gentoo Authors
645 -# Distributed under the terms of the GNU General Public License v2
646 -
647 -EAPI=6
648 -
649 -# do not add a ssl USE flag. ssl is mandatory
650 -SSL_DEPS_SKIP=1
651 -inherit autotools eapi7-ver ssl-cert systemd user
652 -
653 -MY_P="${P/_/.}"
654 -#MY_S="${PN}-ce-${PV}"
655 -major_minor="$(ver_cut 1-2)"
656 -sieve_version="0.5.7"
657 -if [[ ${PV} == *_rc* ]] ; then
658 - rc_dir="rc/"
659 -else
660 - rc_dir=""
661 -fi
662 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
663 - sieve? (
664 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
665 - )
666 - managesieve? (
667 - https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
668 - ) "
669 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
670 -HOMEPAGE="https://www.dovecot.org/"
671 -
672 -SLOT="0"
673 -LICENSE="LGPL-2.1 MIT"
674 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
675 -
676 -IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail"
677 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
678 -IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat"
679 -
680 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
681 -
682 -DEPEND="argon2? ( dev-libs/libsodium )
683 - bzip2? ( app-arch/bzip2 )
684 - caps? ( sys-libs/libcap )
685 - kerberos? ( virtual/krb5 )
686 - ldap? ( net-nds/openldap )
687 - lua? ( dev-lang/lua:* )
688 - lucene? ( >=dev-cpp/clucene-2.3 )
689 - lzma? ( app-arch/xz-utils )
690 - lz4? ( app-arch/lz4 )
691 - mysql? ( dev-db/mysql-connector-c:0= )
692 - pam? ( virtual/pam )
693 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
694 - selinux? ( sec-policy/selinux-dovecot )
695 - solr? ( net-misc/curl dev-libs/expat )
696 - sqlite? ( dev-db/sqlite:* )
697 - !libressl? ( dev-libs/openssl:0 )
698 - libressl? ( dev-libs/libressl )
699 - suid? ( acct-group/mail )
700 - tcpd? ( sys-apps/tcp-wrappers )
701 - textcat? ( app-text/libexttextcat )
702 - vpopmail? ( net-mail/vpopmail )
703 - zlib? ( sys-libs/zlib )
704 - virtual/libiconv
705 - dev-libs/icu:="
706 -
707 -RDEPEND="${DEPEND}
708 - net-mail/mailbase"
709 -
710 -PATCHES=(
711 - "${FILESDIR}/${PN}-userdb-passwd-fix.patch"
712 - "${FILESDIR}/${PN}-no-log-error-tcp_nodelay.patch"
713 -)
714 -
715 -pkg_setup() {
716 - if use managesieve && ! use sieve; then
717 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
718 - ewarn "sieve USE flag will be turned on"
719 - fi
720 - # default internal user
721 - enewgroup dovecot 97
722 - enewuser dovecot 97 -1 /dev/null dovecot
723 - # default login user
724 - enewuser dovenull -1 -1 /dev/null
725 -}
726 -
727 -src_prepare() {
728 - default
729 - # bug 657108
730 - elibtoolize
731 - #eautoreconf
732 -}
733 -
734 -src_configure() {
735 - local conf=""
736 -
737 - if use postgres || use mysql || use sqlite; then
738 - conf="${conf} --with-sql"
739 - fi
740 -
741 - # turn valgrind tests off. Bug #340791
742 - VALGRIND=no econf \
743 - --with-rundir="${EPREFIX}/run/dovecot" \
744 - --with-statedir="${EPREFIX}/var/lib/dovecot" \
745 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
746 - --without-stemmer \
747 - --disable-rpath \
748 - --without-libbsd \
749 - --with-icu \
750 - --with-ssl \
751 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
752 - $( use_with argon2 sodium ) \
753 - $( use_with bzip2 bzlib ) \
754 - $( use_with caps libcap ) \
755 - $( use_with kerberos gssapi ) \
756 - $( use_with lua ) \
757 - $( use_with ldap ) \
758 - $( use_with lucene ) \
759 - $( use_with lz4 ) \
760 - $( use_with lzma ) \
761 - $( use_with mysql ) \
762 - $( use_with pam ) \
763 - $( use_with postgres pgsql ) \
764 - $( use_with sqlite ) \
765 - $( use_with solr ) \
766 - $( use_with tcpd libwrap ) \
767 - $( use_with textcat ) \
768 - $( use_with vpopmail ) \
769 - $( use_with zlib ) \
770 - $( use_enable static-libs static ) \
771 - ${conf}
772 -
773 - if use sieve || use managesieve ; then
774 - # The sieve plugin needs this file to be build to determine the plugin
775 - # directory and the list of libraries to link to.
776 - emake dovecot-config
777 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
778 - econf \
779 - $( use_enable static-libs static ) \
780 - --localstatedir="${EPREFIX%/}/var" \
781 - --enable-shared \
782 - --with-dovecot="${S}" \
783 - $( use_with managesieve )
784 - fi
785 -}
786 -
787 -src_compile() {
788 - default
789 - if use sieve || use managesieve ; then
790 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
791 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
792 - fi
793 -}
794 -
795 -src_test() {
796 - default
797 - if use sieve || use managesieve ; then
798 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
799 - default
800 - fi
801 -}
802 -
803 -src_install () {
804 - default
805 -
806 - # insecure:
807 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
808 - # better:
809 - if use suid;then
810 - einfo "Changing perms to allow deliver to be suided"
811 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
812 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
813 - fi
814 -
815 - newinitd "${FILESDIR}"/dovecot.init-r6 dovecot
816 -
817 - rm -rf "${ED}"/usr/share/doc/dovecot
818 -
819 - dodoc AUTHORS NEWS README TODO
820 - dodoc doc/*.{txt,cnf,xml,sh}
821 - docinto example-config
822 - dodoc doc/example-config/*.{conf,ext}
823 - docinto example-config/conf.d
824 - dodoc doc/example-config/conf.d/*.{conf,ext}
825 - docinto wiki
826 - dodoc doc/wiki/*
827 - doman doc/man/*.{1,7}
828 -
829 - # Create the dovecot.conf file from the dovecot-example.conf file that
830 - # the dovecot folks nicely left for us....
831 - local conf="${ED}/etc/dovecot/dovecot.conf"
832 - local confd="${ED}/etc/dovecot/conf.d"
833 -
834 - insinto /etc/dovecot
835 - doins doc/example-config/*.{conf,ext}
836 - insinto /etc/dovecot/conf.d
837 - doins doc/example-config/conf.d/*.{conf,ext}
838 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
839 - rm -f "${confd}/../README"
840 -
841 - # .maildir is the Gentoo default
842 - local mail_location="maildir:~/.maildir"
843 - sed -i -e \
844 - "s|#mail_location =|mail_location = ${mail_location}|" \
845 - "${confd}/10-mail.conf" \
846 - || die "failed to update mail location settings in 10-mail.conf"
847 -
848 - # We're using pam files (imap and pop3) provided by mailbase
849 - if use pam; then
850 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
851 - "${confd}/auth-system.conf.ext" \
852 - || die "failed to update PAM settings in auth-system.conf.ext"
853 - # mailbase does not provide a sieve pam file
854 - use managesieve && dosym imap /etc/pam.d/sieve
855 - sed -i -e \
856 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
857 - "${confd}/10-auth.conf" \
858 - || die "failed to update PAM settings in 10-auth.conf"
859 - fi
860 -
861 - # Disable ipv6 if necessary
862 - if ! use ipv6; then
863 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
864 - || die "failed to update listen settings in dovecot.conf"
865 - fi
866 -
867 - # Update ssl cert locations
868 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
869 - || die "ssl conf failed"
870 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
871 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
872 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
873 -
874 - # Install SQL configuration
875 - if use mysql || use postgres; then
876 - sed -i -e \
877 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
878 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
879 - 10-auth.conf"
880 - fi
881 -
882 - # Install LDAP configuration
883 - if use ldap; then
884 - sed -i -e \
885 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
886 - "${confd}/10-auth.conf" \
887 - || die "failed to update ldap settings in 10-auth.conf"
888 - fi
889 -
890 - if use vpopmail; then
891 - sed -i -e \
892 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
893 - "${confd}/10-auth.conf" \
894 - || die "failed to update vpopmail settings in 10-auth.conf"
895 - fi
896 -
897 - if use sieve || use managesieve ; then
898 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
899 - emake DESTDIR="${ED}" install
900 - sed -i -e \
901 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
902 - || die "failed to update sieve settings in 15-lda.conf"
903 - rm -rf "${ED}"/usr/share/doc/dovecot
904 - docinto example-config/conf.d
905 - dodoc doc/example-config/conf.d/*.conf
906 - insinto /etc/dovecot/conf.d
907 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
908 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
909 - docinto sieve/rfc
910 - dodoc doc/rfc/*.txt
911 - docinto sieve/devel
912 - dodoc doc/devel/DESIGN
913 - docinto plugins
914 - dodoc doc/plugins/*.txt
915 - docinto extensions
916 - dodoc doc/extensions/*.txt
917 - docinto locations
918 - dodoc doc/locations/*.txt
919 - doman doc/man/*.{1,7}
920 - fi
921 -
922 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
923 -}
924 -
925 -pkg_postinst() {
926 - # Let's not make a new certificate if we already have one
927 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
928 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
929 - einfo "Creating SSL certificate"
930 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
931 - install_cert /etc/ssl/dovecot/server
932 - fi
933 -
934 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
935 -}