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: Fri, 24 Nov 2017 07:54:55
Message-Id: 1511510085.ecf28f61e5ce18bebd0020b61d1da1fa9ffd898b.eras@gentoo
1 commit: ecf28f61e5ce18bebd0020b61d1da1fa9ffd898b
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 24 07:54:13 2017 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 24 07:54:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf28f61
7
8 net-mail/dovecot: remove old
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 net-mail/dovecot/Manifest | 5 -
13 net-mail/dovecot/dovecot-2.2.30.1.ebuild | 290 -------------------------------
14 net-mail/dovecot/dovecot-2.2.30.2.ebuild | 290 -------------------------------
15 net-mail/dovecot/dovecot-2.2.31.ebuild | 290 -------------------------------
16 net-mail/dovecot/dovecot-2.2.33.1.ebuild | 290 -------------------------------
17 5 files changed, 1165 deletions(-)
18
19 diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
20 index 57a96188db8..568f096c57f 100644
21 --- a/net-mail/dovecot/Manifest
22 +++ b/net-mail/dovecot/Manifest
23 @@ -1,13 +1,8 @@
24 DIST dovecot-2.2-pigeonhole-0.4.18.tar.gz 1742357 SHA256 dd871bb57fad22795460f613f3c9484a8bf229272ac00956d837a34444f1c3a9 SHA512 6f49a6a6435b0e4dcbe29f852ce17c016df2f367f5460301a2a2c6bd5f5ba6260b23bfe1c5e78b91c6041554ee67d1ce14ad3adf219505f692c61681d9e70cc4 WHIRLPOOL 809ca6efbdf8688087bbfa48902d7c5467a5313135ce23d621eb84541854140e48c94e7ce8180f9e64816df8c1faf85a8cb42c29bf749da1eb7ebfb125469080
25 -DIST dovecot-2.2-pigeonhole-0.4.19.tar.gz 1743025 SHA256 629204bfbdcd3480e1ebcdc246da438323c3ea5fea57480ab859e8b201ad8793 SHA512 c1211a3c65b25995770309c427ec5cd888ddb962f2f64884640163b492a11ffa8937aac1eb66d25e48f0e00131da1cc98c1cb307781576780de47b8816333ff1 WHIRLPOOL 67867f93b5b4e0c1d73d9312ec47b135ffacdfd7e74329bdcb94cdbfbe2f5309189b562719db8b79c6a5581796627155f57fccddf2775110209ab536f85d8289
26 DIST dovecot-2.2-pigeonhole-0.4.20.tar.gz 1745121 SHA256 6fe17d0b8f25f2ad580e01ad81ce47a9e965255e383a1f80e455f9ca0f00be5b SHA512 84a28842be206e05cb96c07cf1c1b62c9c378ba4c952caa47cf79a44b9428e076f4182eadd9c4fb8f45d3605b881f91e8e520c41705017ac4039240d4bcace39 WHIRLPOOL ed2ebb1d0d6f09b4ec9055fa5539bd308c3f454192a57691de62b3b0695afc0e61890275b5545338cfb7cb0ac843327962bada62df839fd64e1294f95085a706
27 DIST dovecot-2.2-pigeonhole-0.4.21.tar.gz 1774887 SHA256 4ae09cb788c5334d167f5a89ee70b0616c3231e5904ad258ce408e4953cfdd6a SHA512 4751f449ede1b05173c706b414ebf9f7f670ff78589ce6f0b687c32c9abe6dae8b3064ed1b20e893d9ec0147b0139ce479e1d74ebe94747c33f2d8ca177912de WHIRLPOOL 2f7628e396e83476b538b41cd77cccdda2079d0b6310db418517540943d8ee28f14e0fe6d2b59a9537b1282694c0e08372d9560a653851388497ff6853ab801f
28 DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 SHA256 82892f876d26008a076973dfddf1cffaf5a0451825fd44e06287e94b89078649 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2 WHIRLPOOL be309436b43af82a7cb8eff205e1638b2c59751927fdab187e6fde72330e4abd99878cbfa94ca50440ec8de1f9b569bf334d426891ddc73d5f647ee2040c193f
29 DIST dovecot-2.2.19.tar.gz 5256627 SHA256 759e1e3f9d907cdaabad1f5fbacc793ca191d234c084bec3bba42966952a4e9f SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9 WHIRLPOOL 30dbe70bfeef10dbe414ebf3f091041ad66926a8748cd401ecaf9ed5c7602939e86943d98bfb839f32c0aa1d0081ab71adacf23bb4adba34e828ee296e9a7278
30 DIST dovecot-2.2.29.1.tar.gz 5972119 SHA256 ccfa9ffb7eb91e9e87c21c108324b911250c9ffa838bffb64b1caafadcb0f388 SHA512 1e5ea6080ebe7dd4afe6fcfe8e98ed6d2ad2735655a18cc96e439dd044ccc3a1a6a80428bc746b4d6250820895d6a62121562e97e4b46c8b1cf88a19443bc111 WHIRLPOOL 97a3b45191a32e78a08b4113a6e8b34e0bc538ec8359210d0bdf63990246af89be25cdaf9017c46f3107a7ec82758fa25820d61c25eda94f14ce7351d3aaea7a
31 -DIST dovecot-2.2.30.1.tar.gz 6004223 SHA256 9049db49f7ccd76850a17872896dfb8778676bab38454575f59bb39f16b083a4 SHA512 f95e85093e1f671b1e9d067974880eaaf8ab021df1f6d298977c40146a1db2a2b71b4029842785ffaae1aeedec83b2218ff03112537045e08dfc7c845f9e27c3 WHIRLPOOL c4c180b3f92c5af832e6da95173eacf52e16680221968d03c62cec59d96fde84975c81687a2bd256c4f2ed4720690b278f4f706bc0d16710f6b043a6bb348797
32 -DIST dovecot-2.2.30.2.tar.gz 6008134 SHA256 f3dba79c1ceeaa9dd0633f648d3a607704bf3d0591e7d48168084c8add87189e SHA512 740118e3081864234168593bd83f2f5e7b9f5c7cefff3a3a7795369cf791f300c0881fbfacae2c76c0bb42e366ad26e7613c487708d113b19887ebe869d711ea WHIRLPOOL 34eaa59d3cbd837ae92aa9e7e3640cfd181ff2ce01ab80aa27143cb70987e4e5e1369ace7f5d7f2cf7f564a3e26e8c31368d0e60a1716abfed250dc812af0dcb
33 -DIST dovecot-2.2.31.tar.gz 5993283 SHA256 034be40907748128d65088a4f59789b2f99ae7b33a88974eae0b6a68ece376a1 SHA512 071797e260a75de9117b03c0fa9d903de82b1f1c039c2aece2d7313587e6673c49174bfce17b80fe3f3725fcbc42ed3a1bd1f1c22efef5bc016752277eff3266 WHIRLPOOL cc54758f65cc1f6295cc5533dd784b888d53d9b884016de08ddd16d893f3dc43df2cff87e474dd9f0f4b9df1c90f62330f7c70f051497f34729829849b39e519
34 DIST dovecot-2.2.32.tar.gz 6100268 SHA256 160b2151e2af359877f69cb2dcdfe1a3f4138ad3766e3b8562b96616e2f6bc2e SHA512 a26ce763fdea7d72ff9801d3b7d57a1f0d00278e4a1aa60d1be070fe5a6d2c6a15f266a519119492bee7a3e7a6b7d0732e9879e5c5841adbab8c0952cd1b7c7c WHIRLPOOL 11ec82d0648a3fcbeb803f23672c2a734b2bc41828d71990ff72d5f6bfa56e3b294034de615b5b34da257477727832025988446f0baa92a0a56f61aa1d695297
35 -DIST dovecot-2.2.33.1.tar.gz 6131180 SHA256 e4d9a182408100dce70e05dad1f8a703252a497aeb25706642286d84a118890b SHA512 46760a1d52f8d64c36bd4f589f7f240a13d66500c93e47ce479551647e8e4ef7322fc0c325c418c3e0495910292abae105ca5680cd4b0fcd78746723f1549b71 WHIRLPOOL 941cd157aadbbf6c46c2dca56708e14dea1b2a3103ff84c41e625f5a3b0a75ab15a4b8c2d4e45915fb92a4bd2d589e640425f2354524bc8bdda9604cdc39af3f
36 DIST dovecot-2.2.33.2.tar.gz 6131086 SHA256 fe1e3b78609a56ee22fc209077e4b75348fa1bbd54c46f52bde2472a4c4cee84 SHA512 028910a4d02b1630f1ada4d1c45fcc3ea2057969db7078a78d46e2a578b4dceaf8be0ac8de4a613b4890019e721871f2d366ec651db658da4cc72977d3e09931 WHIRLPOOL a861ef3ef9f7cdb8926255c5d51f9d908fa84d671acbab676a8a4f1dbab9173c7005e8079519139a3b359b20f937cd3843a38686c03dab150855ca38c9ee3733
37
38 diff --git a/net-mail/dovecot/dovecot-2.2.30.1.ebuild b/net-mail/dovecot/dovecot-2.2.30.1.ebuild
39 deleted file mode 100644
40 index 9a811261c57..00000000000
41 --- a/net-mail/dovecot/dovecot-2.2.30.1.ebuild
42 +++ /dev/null
43 @@ -1,290 +0,0 @@
44 -# Copyright 1999-2017 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=6
48 -inherit ssl-cert systemd user versionator
49 -
50 -MY_P="${P/_/.}"
51 -major_minor="$(get_version_component_range 1-2)"
52 -sieve_version="0.4.18"
53 -if [[ ${PV} == *_rc* ]] ; then
54 - rc_dir="rc/"
55 -else
56 - rc_dir=""
57 -fi
58 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
59 - sieve? (
60 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
61 - )
62 - managesieve? (
63 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
64 - ) "
65 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
66 -HOMEPAGE="http://www.dovecot.org/"
67 -
68 -SLOT="0"
69 -LICENSE="LGPL-2.1 MIT"
70 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~x86"
71 -
72 -IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
73 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
74 -IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
75 -
76 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
77 -
78 -DEPEND="bzip2? ( app-arch/bzip2 )
79 - caps? ( sys-libs/libcap )
80 - kerberos? ( virtual/krb5 )
81 - ldap? ( net-nds/openldap )
82 - lucene? ( >=dev-cpp/clucene-2.3 )
83 - lzma? ( app-arch/xz-utils )
84 - lz4? ( app-arch/lz4 )
85 - mysql? ( virtual/mysql )
86 - pam? ( virtual/pam )
87 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
88 - selinux? ( sec-policy/selinux-dovecot )
89 - solr? ( net-misc/curl dev-libs/expat )
90 - sqlite? ( dev-db/sqlite:* )
91 - ssl? (
92 - !libressl? ( dev-libs/openssl:0 )
93 - libressl? ( dev-libs/libressl )
94 - )
95 - tcpd? ( sys-apps/tcp-wrappers )
96 - textcat? ( app-text/libexttextcat )
97 - vpopmail? ( net-mail/vpopmail )
98 - zlib? ( sys-libs/zlib )
99 - virtual/libiconv
100 - dev-libs/icu:="
101 -
102 -RDEPEND="${DEPEND}
103 - net-mail/mailbase"
104 -
105 -# Dovecot does not support building without ssl. Force it for now
106 -REQUIRED_USE="ssl"
107 -
108 -S=${WORKDIR}/${MY_P}
109 -
110 -pkg_setup() {
111 - if use managesieve && ! use sieve; then
112 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
113 - ewarn "sieve USE flag will be turned on"
114 - fi
115 - # default internal user
116 - enewgroup dovecot 97
117 - enewuser dovecot 97 -1 /dev/null dovecot
118 - # default login user
119 - enewuser dovenull -1 -1 /dev/null
120 - # add "mail" group for suid'ing. Better security isolation.
121 - if use suid; then
122 - enewgroup mail
123 - fi
124 -}
125 -
126 -src_prepare() {
127 - eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
128 - eapply_user
129 -}
130 -
131 -src_configure() {
132 - local conf=""
133 -
134 - if use postgres || use mysql || use sqlite; then
135 - conf="${conf} --with-sql"
136 - fi
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 - --disable-rpath \
145 - --with-icu \
146 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
147 - $( use_with bzip2 bzlib ) \
148 - $( use_with caps libcap ) \
149 - $( use_with kerberos gssapi ) \
150 - $( use_with ldap ) \
151 - $( use_with lucene ) \
152 - $( use_with lz4 ) \
153 - $( use_with lzma ) \
154 - $( use_with mysql ) \
155 - $( use_with pam ) \
156 - $( use_with postgres pgsql ) \
157 - $( use_with sqlite ) \
158 - $( use_with solr ) \
159 - $( use_with ssl ) \
160 - $( use_with tcpd libwrap ) \
161 - $( use_with textcat ) \
162 - $( use_with vpopmail ) \
163 - $( use_with zlib ) \
164 - $( use_enable static-libs static ) \
165 - ${conf}
166 -
167 - if use sieve || use managesieve ; then
168 - # The sieve plugin needs this file to be build to determine the plugin
169 - # directory and the list of libraries to link to.
170 - emake dovecot-config
171 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
172 - econf \
173 - $( use_enable static-libs static ) \
174 - --localstatedir="${EPREFIX}/var" \
175 - --enable-shared \
176 - --with-dovecot="../${MY_P}" \
177 - $( use_with managesieve )
178 - fi
179 -}
180 -
181 -src_compile() {
182 - default
183 - if use sieve || use managesieve ; then
184 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
185 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
186 - fi
187 -}
188 -
189 -src_test() {
190 - default
191 - if use sieve || use managesieve ; then
192 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
193 - default
194 - fi
195 -}
196 -
197 -src_install () {
198 - default
199 -
200 - # insecure:
201 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
202 - # better:
203 - if use suid;then
204 - einfo "Changing perms to allow deliver to be suided"
205 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
206 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
207 - fi
208 -
209 - newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
210 -
211 - rm -rf "${ED}"/usr/share/doc/dovecot
212 -
213 - dodoc AUTHORS NEWS README TODO
214 - dodoc doc/*.{txt,cnf,xml,sh}
215 - docinto example-config
216 - dodoc doc/example-config/*.{conf,ext}
217 - docinto example-config/conf.d
218 - dodoc doc/example-config/conf.d/*.{conf,ext}
219 - docinto wiki
220 - dodoc doc/wiki/*
221 - doman doc/man/*.{1,7}
222 -
223 - # Create the dovecot.conf file from the dovecot-example.conf file that
224 - # the dovecot folks nicely left for us....
225 - local conf="${ED}/etc/dovecot/dovecot.conf"
226 - local confd="${ED}/etc/dovecot/conf.d"
227 -
228 - insinto /etc/dovecot
229 - doins doc/example-config/*.{conf,ext}
230 - insinto /etc/dovecot/conf.d
231 - doins doc/example-config/conf.d/*.{conf,ext}
232 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
233 - rm -f "${confd}/../README"
234 -
235 - # .maildir is the Gentoo default
236 - local mail_location="maildir:~/.maildir"
237 - sed -i -e \
238 - "s|#mail_location =|mail_location = ${mail_location}|" \
239 - "${confd}/10-mail.conf" \
240 - || die "failed to update mail location settings in 10-mail.conf"
241 -
242 - # We're using pam files (imap and pop3) provided by mailbase
243 - if use pam; then
244 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
245 - "${confd}/auth-system.conf.ext" \
246 - || die "failed to update PAM settings in auth-system.conf.ext"
247 - # mailbase does not provide a sieve pam file
248 - use managesieve && dosym imap /etc/pam.d/sieve
249 - sed -i -e \
250 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
251 - "${confd}/10-auth.conf" \
252 - || die "failed to update PAM settings in 10-auth.conf"
253 - fi
254 -
255 - # Disable ipv6 if necessary
256 - if ! use ipv6; then
257 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
258 - || die "failed to update listen settings in dovecot.conf"
259 - fi
260 -
261 - # Update ssl cert locations
262 - if use ssl; then
263 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
264 - || die "ssl conf failed"
265 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
266 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
267 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
268 - fi
269 -
270 - # Install SQL configuration
271 - if use mysql || use postgres; then
272 - sed -i -e \
273 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
274 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
275 - 10-auth.conf"
276 - fi
277 -
278 - # Install LDAP configuration
279 - if use ldap; then
280 - sed -i -e \
281 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
282 - "${confd}/10-auth.conf" \
283 - || die "failed to update ldap settings in 10-auth.conf"
284 - fi
285 -
286 - if use vpopmail; then
287 - sed -i -e \
288 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
289 - "${confd}/10-auth.conf" \
290 - || die "failed to update vpopmail settings in 10-auth.conf"
291 - fi
292 -
293 - if use sieve || use managesieve ; then
294 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
295 - emake DESTDIR="${ED}" install
296 - sed -i -e \
297 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
298 - || die "failed to update sieve settings in 15-lda.conf"
299 - rm -rf "${ED}"/usr/share/doc/dovecot
300 - docinto example-config/conf.d
301 - dodoc doc/example-config/conf.d/*.conf
302 - insinto /etc/dovecot/conf.d
303 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
304 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
305 - docinto sieve/rfc
306 - dodoc doc/rfc/*.txt
307 - docinto sieve/devel
308 - dodoc doc/devel/DESIGN
309 - docinto plugins
310 - dodoc doc/plugins/*.txt
311 - docinto extensions
312 - dodoc doc/extensions/*.txt
313 - docinto locations
314 - dodoc doc/locations/*.txt
315 - doman doc/man/*.{1,7}
316 - fi
317 -
318 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
319 -}
320 -
321 -pkg_postinst() {
322 - if use ssl; then
323 - # Let's not make a new certificate if we already have one
324 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
325 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
326 - einfo "Creating SSL certificate"
327 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
328 - install_cert /etc/ssl/dovecot/server
329 - fi
330 - fi
331 -
332 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
333 -}
334
335 diff --git a/net-mail/dovecot/dovecot-2.2.30.2.ebuild b/net-mail/dovecot/dovecot-2.2.30.2.ebuild
336 deleted file mode 100644
337 index 9a811261c57..00000000000
338 --- a/net-mail/dovecot/dovecot-2.2.30.2.ebuild
339 +++ /dev/null
340 @@ -1,290 +0,0 @@
341 -# Copyright 1999-2017 Gentoo Foundation
342 -# Distributed under the terms of the GNU General Public License v2
343 -
344 -EAPI=6
345 -inherit ssl-cert systemd user versionator
346 -
347 -MY_P="${P/_/.}"
348 -major_minor="$(get_version_component_range 1-2)"
349 -sieve_version="0.4.18"
350 -if [[ ${PV} == *_rc* ]] ; then
351 - rc_dir="rc/"
352 -else
353 - rc_dir=""
354 -fi
355 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
356 - sieve? (
357 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
358 - )
359 - managesieve? (
360 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
361 - ) "
362 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
363 -HOMEPAGE="http://www.dovecot.org/"
364 -
365 -SLOT="0"
366 -LICENSE="LGPL-2.1 MIT"
367 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~x86"
368 -
369 -IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
370 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
371 -IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
372 -
373 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
374 -
375 -DEPEND="bzip2? ( app-arch/bzip2 )
376 - caps? ( sys-libs/libcap )
377 - kerberos? ( virtual/krb5 )
378 - ldap? ( net-nds/openldap )
379 - lucene? ( >=dev-cpp/clucene-2.3 )
380 - lzma? ( app-arch/xz-utils )
381 - lz4? ( app-arch/lz4 )
382 - mysql? ( virtual/mysql )
383 - pam? ( virtual/pam )
384 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
385 - selinux? ( sec-policy/selinux-dovecot )
386 - solr? ( net-misc/curl dev-libs/expat )
387 - sqlite? ( dev-db/sqlite:* )
388 - ssl? (
389 - !libressl? ( dev-libs/openssl:0 )
390 - libressl? ( dev-libs/libressl )
391 - )
392 - tcpd? ( sys-apps/tcp-wrappers )
393 - textcat? ( app-text/libexttextcat )
394 - vpopmail? ( net-mail/vpopmail )
395 - zlib? ( sys-libs/zlib )
396 - virtual/libiconv
397 - dev-libs/icu:="
398 -
399 -RDEPEND="${DEPEND}
400 - net-mail/mailbase"
401 -
402 -# Dovecot does not support building without ssl. Force it for now
403 -REQUIRED_USE="ssl"
404 -
405 -S=${WORKDIR}/${MY_P}
406 -
407 -pkg_setup() {
408 - if use managesieve && ! use sieve; then
409 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
410 - ewarn "sieve USE flag will be turned on"
411 - fi
412 - # default internal user
413 - enewgroup dovecot 97
414 - enewuser dovecot 97 -1 /dev/null dovecot
415 - # default login user
416 - enewuser dovenull -1 -1 /dev/null
417 - # add "mail" group for suid'ing. Better security isolation.
418 - if use suid; then
419 - enewgroup mail
420 - fi
421 -}
422 -
423 -src_prepare() {
424 - eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
425 - eapply_user
426 -}
427 -
428 -src_configure() {
429 - local conf=""
430 -
431 - if use postgres || use mysql || use sqlite; then
432 - conf="${conf} --with-sql"
433 - fi
434 -
435 - # turn valgrind tests off. Bug #340791
436 - VALGRIND=no econf \
437 - --localstatedir="${EPREFIX}/var" \
438 - --runstatedir="${EPREFIX}/run" \
439 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
440 - --without-stemmer \
441 - --disable-rpath \
442 - --with-icu \
443 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
444 - $( use_with bzip2 bzlib ) \
445 - $( use_with caps libcap ) \
446 - $( use_with kerberos gssapi ) \
447 - $( use_with ldap ) \
448 - $( use_with lucene ) \
449 - $( use_with lz4 ) \
450 - $( use_with lzma ) \
451 - $( use_with mysql ) \
452 - $( use_with pam ) \
453 - $( use_with postgres pgsql ) \
454 - $( use_with sqlite ) \
455 - $( use_with solr ) \
456 - $( use_with ssl ) \
457 - $( use_with tcpd libwrap ) \
458 - $( use_with textcat ) \
459 - $( use_with vpopmail ) \
460 - $( use_with zlib ) \
461 - $( use_enable static-libs static ) \
462 - ${conf}
463 -
464 - if use sieve || use managesieve ; then
465 - # The sieve plugin needs this file to be build to determine the plugin
466 - # directory and the list of libraries to link to.
467 - emake dovecot-config
468 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
469 - econf \
470 - $( use_enable static-libs static ) \
471 - --localstatedir="${EPREFIX}/var" \
472 - --enable-shared \
473 - --with-dovecot="../${MY_P}" \
474 - $( use_with managesieve )
475 - fi
476 -}
477 -
478 -src_compile() {
479 - default
480 - if use sieve || use managesieve ; then
481 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
482 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
483 - fi
484 -}
485 -
486 -src_test() {
487 - default
488 - if use sieve || use managesieve ; then
489 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
490 - default
491 - fi
492 -}
493 -
494 -src_install () {
495 - default
496 -
497 - # insecure:
498 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
499 - # better:
500 - if use suid;then
501 - einfo "Changing perms to allow deliver to be suided"
502 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
503 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
504 - fi
505 -
506 - newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
507 -
508 - rm -rf "${ED}"/usr/share/doc/dovecot
509 -
510 - dodoc AUTHORS NEWS README TODO
511 - dodoc doc/*.{txt,cnf,xml,sh}
512 - docinto example-config
513 - dodoc doc/example-config/*.{conf,ext}
514 - docinto example-config/conf.d
515 - dodoc doc/example-config/conf.d/*.{conf,ext}
516 - docinto wiki
517 - dodoc doc/wiki/*
518 - doman doc/man/*.{1,7}
519 -
520 - # Create the dovecot.conf file from the dovecot-example.conf file that
521 - # the dovecot folks nicely left for us....
522 - local conf="${ED}/etc/dovecot/dovecot.conf"
523 - local confd="${ED}/etc/dovecot/conf.d"
524 -
525 - insinto /etc/dovecot
526 - doins doc/example-config/*.{conf,ext}
527 - insinto /etc/dovecot/conf.d
528 - doins doc/example-config/conf.d/*.{conf,ext}
529 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
530 - rm -f "${confd}/../README"
531 -
532 - # .maildir is the Gentoo default
533 - local mail_location="maildir:~/.maildir"
534 - sed -i -e \
535 - "s|#mail_location =|mail_location = ${mail_location}|" \
536 - "${confd}/10-mail.conf" \
537 - || die "failed to update mail location settings in 10-mail.conf"
538 -
539 - # We're using pam files (imap and pop3) provided by mailbase
540 - if use pam; then
541 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
542 - "${confd}/auth-system.conf.ext" \
543 - || die "failed to update PAM settings in auth-system.conf.ext"
544 - # mailbase does not provide a sieve pam file
545 - use managesieve && dosym imap /etc/pam.d/sieve
546 - sed -i -e \
547 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
548 - "${confd}/10-auth.conf" \
549 - || die "failed to update PAM settings in 10-auth.conf"
550 - fi
551 -
552 - # Disable ipv6 if necessary
553 - if ! use ipv6; then
554 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
555 - || die "failed to update listen settings in dovecot.conf"
556 - fi
557 -
558 - # Update ssl cert locations
559 - if use ssl; then
560 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
561 - || die "ssl conf failed"
562 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
563 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
564 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
565 - fi
566 -
567 - # Install SQL configuration
568 - if use mysql || use postgres; then
569 - sed -i -e \
570 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
571 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
572 - 10-auth.conf"
573 - fi
574 -
575 - # Install LDAP configuration
576 - if use ldap; then
577 - sed -i -e \
578 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
579 - "${confd}/10-auth.conf" \
580 - || die "failed to update ldap settings in 10-auth.conf"
581 - fi
582 -
583 - if use vpopmail; then
584 - sed -i -e \
585 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
586 - "${confd}/10-auth.conf" \
587 - || die "failed to update vpopmail settings in 10-auth.conf"
588 - fi
589 -
590 - if use sieve || use managesieve ; then
591 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
592 - emake DESTDIR="${ED}" install
593 - sed -i -e \
594 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
595 - || die "failed to update sieve settings in 15-lda.conf"
596 - rm -rf "${ED}"/usr/share/doc/dovecot
597 - docinto example-config/conf.d
598 - dodoc doc/example-config/conf.d/*.conf
599 - insinto /etc/dovecot/conf.d
600 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
601 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
602 - docinto sieve/rfc
603 - dodoc doc/rfc/*.txt
604 - docinto sieve/devel
605 - dodoc doc/devel/DESIGN
606 - docinto plugins
607 - dodoc doc/plugins/*.txt
608 - docinto extensions
609 - dodoc doc/extensions/*.txt
610 - docinto locations
611 - dodoc doc/locations/*.txt
612 - doman doc/man/*.{1,7}
613 - fi
614 -
615 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
616 -}
617 -
618 -pkg_postinst() {
619 - if use ssl; then
620 - # Let's not make a new certificate if we already have one
621 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
622 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
623 - einfo "Creating SSL certificate"
624 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
625 - install_cert /etc/ssl/dovecot/server
626 - fi
627 - fi
628 -
629 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
630 -}
631
632 diff --git a/net-mail/dovecot/dovecot-2.2.31.ebuild b/net-mail/dovecot/dovecot-2.2.31.ebuild
633 deleted file mode 100644
634 index b0f8239fae9..00000000000
635 --- a/net-mail/dovecot/dovecot-2.2.31.ebuild
636 +++ /dev/null
637 @@ -1,290 +0,0 @@
638 -# Copyright 1999-2017 Gentoo Foundation
639 -# Distributed under the terms of the GNU General Public License v2
640 -
641 -EAPI=6
642 -inherit ssl-cert systemd user versionator
643 -
644 -MY_P="${P/_/.}"
645 -major_minor="$(get_version_component_range 1-2)"
646 -sieve_version="0.4.19"
647 -if [[ ${PV} == *_rc* ]] ; then
648 - rc_dir="rc/"
649 -else
650 - rc_dir=""
651 -fi
652 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
653 - sieve? (
654 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
655 - )
656 - managesieve? (
657 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
658 - ) "
659 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
660 -HOMEPAGE="http://www.dovecot.org/"
661 -
662 -SLOT="0"
663 -LICENSE="LGPL-2.1 MIT"
664 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86"
665 -
666 -IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
667 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
668 -IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
669 -
670 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
671 -
672 -DEPEND="bzip2? ( app-arch/bzip2 )
673 - caps? ( sys-libs/libcap )
674 - kerberos? ( virtual/krb5 )
675 - ldap? ( net-nds/openldap )
676 - lucene? ( >=dev-cpp/clucene-2.3 )
677 - lzma? ( app-arch/xz-utils )
678 - lz4? ( app-arch/lz4 )
679 - mysql? ( virtual/mysql )
680 - pam? ( virtual/pam )
681 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
682 - selinux? ( sec-policy/selinux-dovecot )
683 - solr? ( net-misc/curl dev-libs/expat )
684 - sqlite? ( dev-db/sqlite:* )
685 - ssl? (
686 - !libressl? ( dev-libs/openssl:0 )
687 - libressl? ( dev-libs/libressl )
688 - )
689 - tcpd? ( sys-apps/tcp-wrappers )
690 - textcat? ( app-text/libexttextcat )
691 - vpopmail? ( net-mail/vpopmail )
692 - zlib? ( sys-libs/zlib )
693 - virtual/libiconv
694 - dev-libs/icu:="
695 -
696 -RDEPEND="${DEPEND}
697 - net-mail/mailbase"
698 -
699 -# Dovecot does not support building without ssl. Force it for now
700 -REQUIRED_USE="ssl"
701 -
702 -S=${WORKDIR}/${MY_P}
703 -
704 -pkg_setup() {
705 - if use managesieve && ! use sieve; then
706 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
707 - ewarn "sieve USE flag will be turned on"
708 - fi
709 - # default internal user
710 - enewgroup dovecot 97
711 - enewuser dovecot 97 -1 /dev/null dovecot
712 - # default login user
713 - enewuser dovenull -1 -1 /dev/null
714 - # add "mail" group for suid'ing. Better security isolation.
715 - if use suid; then
716 - enewgroup mail
717 - fi
718 -}
719 -
720 -src_prepare() {
721 - eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
722 - eapply_user
723 -}
724 -
725 -src_configure() {
726 - local conf=""
727 -
728 - if use postgres || use mysql || use sqlite; then
729 - conf="${conf} --with-sql"
730 - fi
731 -
732 - # turn valgrind tests off. Bug #340791
733 - VALGRIND=no econf \
734 - --localstatedir="${EPREFIX}/var" \
735 - --runstatedir="${EPREFIX}/run" \
736 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
737 - --without-stemmer \
738 - --disable-rpath \
739 - --with-icu \
740 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
741 - $( use_with bzip2 bzlib ) \
742 - $( use_with caps libcap ) \
743 - $( use_with kerberos gssapi ) \
744 - $( use_with ldap ) \
745 - $( use_with lucene ) \
746 - $( use_with lz4 ) \
747 - $( use_with lzma ) \
748 - $( use_with mysql ) \
749 - $( use_with pam ) \
750 - $( use_with postgres pgsql ) \
751 - $( use_with sqlite ) \
752 - $( use_with solr ) \
753 - $( use_with ssl ) \
754 - $( use_with tcpd libwrap ) \
755 - $( use_with textcat ) \
756 - $( use_with vpopmail ) \
757 - $( use_with zlib ) \
758 - $( use_enable static-libs static ) \
759 - ${conf}
760 -
761 - if use sieve || use managesieve ; then
762 - # The sieve plugin needs this file to be build to determine the plugin
763 - # directory and the list of libraries to link to.
764 - emake dovecot-config
765 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
766 - econf \
767 - $( use_enable static-libs static ) \
768 - --localstatedir="${EPREFIX}/var" \
769 - --enable-shared \
770 - --with-dovecot="../${MY_P}" \
771 - $( use_with managesieve )
772 - fi
773 -}
774 -
775 -src_compile() {
776 - default
777 - if use sieve || use managesieve ; then
778 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
779 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
780 - fi
781 -}
782 -
783 -src_test() {
784 - default
785 - if use sieve || use managesieve ; then
786 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
787 - default
788 - fi
789 -}
790 -
791 -src_install () {
792 - default
793 -
794 - # insecure:
795 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
796 - # better:
797 - if use suid;then
798 - einfo "Changing perms to allow deliver to be suided"
799 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
800 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
801 - fi
802 -
803 - newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
804 -
805 - rm -rf "${ED}"/usr/share/doc/dovecot
806 -
807 - dodoc AUTHORS NEWS README TODO
808 - dodoc doc/*.{txt,cnf,xml,sh}
809 - docinto example-config
810 - dodoc doc/example-config/*.{conf,ext}
811 - docinto example-config/conf.d
812 - dodoc doc/example-config/conf.d/*.{conf,ext}
813 - docinto wiki
814 - dodoc doc/wiki/*
815 - doman doc/man/*.{1,7}
816 -
817 - # Create the dovecot.conf file from the dovecot-example.conf file that
818 - # the dovecot folks nicely left for us....
819 - local conf="${ED}/etc/dovecot/dovecot.conf"
820 - local confd="${ED}/etc/dovecot/conf.d"
821 -
822 - insinto /etc/dovecot
823 - doins doc/example-config/*.{conf,ext}
824 - insinto /etc/dovecot/conf.d
825 - doins doc/example-config/conf.d/*.{conf,ext}
826 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
827 - rm -f "${confd}/../README"
828 -
829 - # .maildir is the Gentoo default
830 - local mail_location="maildir:~/.maildir"
831 - sed -i -e \
832 - "s|#mail_location =|mail_location = ${mail_location}|" \
833 - "${confd}/10-mail.conf" \
834 - || die "failed to update mail location settings in 10-mail.conf"
835 -
836 - # We're using pam files (imap and pop3) provided by mailbase
837 - if use pam; then
838 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
839 - "${confd}/auth-system.conf.ext" \
840 - || die "failed to update PAM settings in auth-system.conf.ext"
841 - # mailbase does not provide a sieve pam file
842 - use managesieve && dosym imap /etc/pam.d/sieve
843 - sed -i -e \
844 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
845 - "${confd}/10-auth.conf" \
846 - || die "failed to update PAM settings in 10-auth.conf"
847 - fi
848 -
849 - # Disable ipv6 if necessary
850 - if ! use ipv6; then
851 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
852 - || die "failed to update listen settings in dovecot.conf"
853 - fi
854 -
855 - # Update ssl cert locations
856 - if use ssl; then
857 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
858 - || die "ssl conf failed"
859 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
860 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
861 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
862 - fi
863 -
864 - # Install SQL configuration
865 - if use mysql || use postgres; then
866 - sed -i -e \
867 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
868 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
869 - 10-auth.conf"
870 - fi
871 -
872 - # Install LDAP configuration
873 - if use ldap; then
874 - sed -i -e \
875 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
876 - "${confd}/10-auth.conf" \
877 - || die "failed to update ldap settings in 10-auth.conf"
878 - fi
879 -
880 - if use vpopmail; then
881 - sed -i -e \
882 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
883 - "${confd}/10-auth.conf" \
884 - || die "failed to update vpopmail settings in 10-auth.conf"
885 - fi
886 -
887 - if use sieve || use managesieve ; then
888 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
889 - emake DESTDIR="${ED}" install
890 - sed -i -e \
891 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
892 - || die "failed to update sieve settings in 15-lda.conf"
893 - rm -rf "${ED}"/usr/share/doc/dovecot
894 - docinto example-config/conf.d
895 - dodoc doc/example-config/conf.d/*.conf
896 - insinto /etc/dovecot/conf.d
897 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
898 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
899 - docinto sieve/rfc
900 - dodoc doc/rfc/*.txt
901 - docinto sieve/devel
902 - dodoc doc/devel/DESIGN
903 - docinto plugins
904 - dodoc doc/plugins/*.txt
905 - docinto extensions
906 - dodoc doc/extensions/*.txt
907 - docinto locations
908 - dodoc doc/locations/*.txt
909 - doman doc/man/*.{1,7}
910 - fi
911 -
912 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
913 -}
914 -
915 -pkg_postinst() {
916 - if use ssl; then
917 - # Let's not make a new certificate if we already have one
918 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
919 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
920 - einfo "Creating SSL certificate"
921 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
922 - install_cert /etc/ssl/dovecot/server
923 - fi
924 - fi
925 -
926 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
927 -}
928
929 diff --git a/net-mail/dovecot/dovecot-2.2.33.1.ebuild b/net-mail/dovecot/dovecot-2.2.33.1.ebuild
930 deleted file mode 100644
931 index 350498e8c2f..00000000000
932 --- a/net-mail/dovecot/dovecot-2.2.33.1.ebuild
933 +++ /dev/null
934 @@ -1,290 +0,0 @@
935 -# Copyright 1999-2017 Gentoo Foundation
936 -# Distributed under the terms of the GNU General Public License v2
937 -
938 -EAPI=6
939 -inherit ssl-cert systemd user versionator
940 -
941 -MY_P="${P/_/.}"
942 -major_minor="$(get_version_component_range 1-2)"
943 -sieve_version="0.4.21"
944 -if [[ ${PV} == *_rc* ]] ; then
945 - rc_dir="rc/"
946 -else
947 - rc_dir=""
948 -fi
949 -SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
950 - sieve? (
951 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
952 - )
953 - managesieve? (
954 - https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
955 - ) "
956 -DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
957 -HOMEPAGE="http://www.dovecot.org/"
958 -
959 -SLOT="0"
960 -LICENSE="LGPL-2.1 MIT"
961 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86"
962 -
963 -IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
964 -IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
965 -IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
966 -
967 -IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
968 -
969 -DEPEND="bzip2? ( app-arch/bzip2 )
970 - caps? ( sys-libs/libcap )
971 - kerberos? ( virtual/krb5 )
972 - ldap? ( net-nds/openldap )
973 - lucene? ( >=dev-cpp/clucene-2.3 )
974 - lzma? ( app-arch/xz-utils )
975 - lz4? ( app-arch/lz4 )
976 - mysql? ( virtual/mysql )
977 - pam? ( virtual/pam )
978 - postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
979 - selinux? ( sec-policy/selinux-dovecot )
980 - solr? ( net-misc/curl dev-libs/expat )
981 - sqlite? ( dev-db/sqlite:* )
982 - ssl? (
983 - !libressl? ( dev-libs/openssl:0 )
984 - libressl? ( dev-libs/libressl )
985 - )
986 - tcpd? ( sys-apps/tcp-wrappers )
987 - textcat? ( app-text/libexttextcat )
988 - vpopmail? ( net-mail/vpopmail )
989 - zlib? ( sys-libs/zlib )
990 - virtual/libiconv
991 - dev-libs/icu:="
992 -
993 -RDEPEND="${DEPEND}
994 - net-mail/mailbase"
995 -
996 -# Dovecot does not support building without ssl. Force it for now
997 -REQUIRED_USE="ssl"
998 -
999 -S=${WORKDIR}/${MY_P}
1000 -
1001 -pkg_setup() {
1002 - if use managesieve && ! use sieve; then
1003 - ewarn "managesieve USE flag selected but sieve USE flag unselected"
1004 - ewarn "sieve USE flag will be turned on"
1005 - fi
1006 - # default internal user
1007 - enewgroup dovecot 97
1008 - enewuser dovecot 97 -1 /dev/null dovecot
1009 - # default login user
1010 - enewuser dovenull -1 -1 /dev/null
1011 - # add "mail" group for suid'ing. Better security isolation.
1012 - if use suid; then
1013 - enewgroup mail
1014 - fi
1015 -}
1016 -
1017 -src_prepare() {
1018 - eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
1019 - eapply_user
1020 -}
1021 -
1022 -src_configure() {
1023 - local conf=""
1024 -
1025 - if use postgres || use mysql || use sqlite; then
1026 - conf="${conf} --with-sql"
1027 - fi
1028 -
1029 - # turn valgrind tests off. Bug #340791
1030 - VALGRIND=no econf \
1031 - --localstatedir="${EPREFIX}/var" \
1032 - --runstatedir="${EPREFIX}/run" \
1033 - --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
1034 - --without-stemmer \
1035 - --disable-rpath \
1036 - --with-icu \
1037 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
1038 - $( use_with bzip2 bzlib ) \
1039 - $( use_with caps libcap ) \
1040 - $( use_with kerberos gssapi ) \
1041 - $( use_with ldap ) \
1042 - $( use_with lucene ) \
1043 - $( use_with lz4 ) \
1044 - $( use_with lzma ) \
1045 - $( use_with mysql ) \
1046 - $( use_with pam ) \
1047 - $( use_with postgres pgsql ) \
1048 - $( use_with sqlite ) \
1049 - $( use_with solr ) \
1050 - $( use_with ssl ) \
1051 - $( use_with tcpd libwrap ) \
1052 - $( use_with textcat ) \
1053 - $( use_with vpopmail ) \
1054 - $( use_with zlib ) \
1055 - $( use_enable static-libs static ) \
1056 - ${conf}
1057 -
1058 - if use sieve || use managesieve ; then
1059 - # The sieve plugin needs this file to be build to determine the plugin
1060 - # directory and the list of libraries to link to.
1061 - emake dovecot-config
1062 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
1063 - econf \
1064 - $( use_enable static-libs static ) \
1065 - --localstatedir="${EPREFIX}/var" \
1066 - --enable-shared \
1067 - --with-dovecot="../${MY_P}" \
1068 - $( use_with managesieve )
1069 - fi
1070 -}
1071 -
1072 -src_compile() {
1073 - default
1074 - if use sieve || use managesieve ; then
1075 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
1076 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
1077 - fi
1078 -}
1079 -
1080 -src_test() {
1081 - default
1082 - if use sieve || use managesieve ; then
1083 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
1084 - default
1085 - fi
1086 -}
1087 -
1088 -src_install () {
1089 - default
1090 -
1091 - # insecure:
1092 - # use suid && fperms u+s /usr/libexec/dovecot/deliver
1093 - # better:
1094 - if use suid;then
1095 - einfo "Changing perms to allow deliver to be suided"
1096 - fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
1097 - fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
1098 - fi
1099 -
1100 - newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
1101 -
1102 - rm -rf "${ED}"/usr/share/doc/dovecot
1103 -
1104 - dodoc AUTHORS NEWS README TODO
1105 - dodoc doc/*.{txt,cnf,xml,sh}
1106 - docinto example-config
1107 - dodoc doc/example-config/*.{conf,ext}
1108 - docinto example-config/conf.d
1109 - dodoc doc/example-config/conf.d/*.{conf,ext}
1110 - docinto wiki
1111 - dodoc doc/wiki/*
1112 - doman doc/man/*.{1,7}
1113 -
1114 - # Create the dovecot.conf file from the dovecot-example.conf file that
1115 - # the dovecot folks nicely left for us....
1116 - local conf="${ED}/etc/dovecot/dovecot.conf"
1117 - local confd="${ED}/etc/dovecot/conf.d"
1118 -
1119 - insinto /etc/dovecot
1120 - doins doc/example-config/*.{conf,ext}
1121 - insinto /etc/dovecot/conf.d
1122 - doins doc/example-config/conf.d/*.{conf,ext}
1123 - fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
1124 - rm -f "${confd}/../README"
1125 -
1126 - # .maildir is the Gentoo default
1127 - local mail_location="maildir:~/.maildir"
1128 - sed -i -e \
1129 - "s|#mail_location =|mail_location = ${mail_location}|" \
1130 - "${confd}/10-mail.conf" \
1131 - || die "failed to update mail location settings in 10-mail.conf"
1132 -
1133 - # We're using pam files (imap and pop3) provided by mailbase
1134 - if use pam; then
1135 - sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
1136 - "${confd}/auth-system.conf.ext" \
1137 - || die "failed to update PAM settings in auth-system.conf.ext"
1138 - # mailbase does not provide a sieve pam file
1139 - use managesieve && dosym imap /etc/pam.d/sieve
1140 - sed -i -e \
1141 - 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
1142 - "${confd}/10-auth.conf" \
1143 - || die "failed to update PAM settings in 10-auth.conf"
1144 - fi
1145 -
1146 - # Disable ipv6 if necessary
1147 - if ! use ipv6; then
1148 - sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
1149 - || die "failed to update listen settings in dovecot.conf"
1150 - fi
1151 -
1152 - # Update ssl cert locations
1153 - if use ssl; then
1154 - sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
1155 - || die "ssl conf failed"
1156 - sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
1157 - -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
1158 - "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
1159 - fi
1160 -
1161 - # Install SQL configuration
1162 - if use mysql || use postgres; then
1163 - sed -i -e \
1164 - 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
1165 - "${confd}/10-auth.conf" || die "failed to update SQL settings in \
1166 - 10-auth.conf"
1167 - fi
1168 -
1169 - # Install LDAP configuration
1170 - if use ldap; then
1171 - sed -i -e \
1172 - 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
1173 - "${confd}/10-auth.conf" \
1174 - || die "failed to update ldap settings in 10-auth.conf"
1175 - fi
1176 -
1177 - if use vpopmail; then
1178 - sed -i -e \
1179 - 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
1180 - "${confd}/10-auth.conf" \
1181 - || die "failed to update vpopmail settings in 10-auth.conf"
1182 - fi
1183 -
1184 - if use sieve || use managesieve ; then
1185 - cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
1186 - emake DESTDIR="${ED}" install
1187 - sed -i -e \
1188 - 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
1189 - || die "failed to update sieve settings in 15-lda.conf"
1190 - rm -rf "${ED}"/usr/share/doc/dovecot
1191 - docinto example-config/conf.d
1192 - dodoc doc/example-config/conf.d/*.conf
1193 - insinto /etc/dovecot/conf.d
1194 - doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
1195 - use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
1196 - docinto sieve/rfc
1197 - dodoc doc/rfc/*.txt
1198 - docinto sieve/devel
1199 - dodoc doc/devel/DESIGN
1200 - docinto plugins
1201 - dodoc doc/plugins/*.txt
1202 - docinto extensions
1203 - dodoc doc/extensions/*.txt
1204 - docinto locations
1205 - dodoc doc/locations/*.txt
1206 - doman doc/man/*.{1,7}
1207 - fi
1208 -
1209 - use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
1210 -}
1211 -
1212 -pkg_postinst() {
1213 - if use ssl; then
1214 - # Let's not make a new certificate if we already have one
1215 - if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
1216 - -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
1217 - einfo "Creating SSL certificate"
1218 - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
1219 - install_cert /etc/ssl/dovecot/server
1220 - fi
1221 - fi
1222 -
1223 - elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
1224 -}