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