1 |
commit: ee4e2ac6305da497f177e558ae001a9556268ac2 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 4 07:10:36 2018 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 4 07:10:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee4e2ac6 |
7 |
|
8 |
net-mail/dovecot: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
11 |
|
12 |
net-mail/dovecot/Manifest | 10 - |
13 |
net-mail/dovecot/dovecot-2.2.29.1.ebuild | 307 ------------------------------- |
14 |
net-mail/dovecot/dovecot-2.2.32.ebuild | 290 ----------------------------- |
15 |
net-mail/dovecot/dovecot-2.2.35.ebuild | 290 ----------------------------- |
16 |
net-mail/dovecot/dovecot-2.3.0.1.ebuild | 284 ---------------------------- |
17 |
net-mail/dovecot/dovecot-2.3.1.ebuild | 284 ---------------------------- |
18 |
6 files changed, 1465 deletions(-) |
19 |
|
20 |
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest |
21 |
index b57eeca86ee..bf8481d15dc 100644 |
22 |
--- a/net-mail/dovecot/Manifest |
23 |
+++ b/net-mail/dovecot/Manifest |
24 |
@@ -1,18 +1,8 @@ |
25 |
-DIST dovecot-2.2-pigeonhole-0.4.18.tar.gz 1742357 BLAKE2B 8f9fc54e6effb233f7e8543a560b474dd4cd028d0a7bd1cc02e45c879bc2e7d636c2543e8aed3bd8e0b49b260703590be44fd1032ba3e1f4eb87a8e6f8ecf396 SHA512 6f49a6a6435b0e4dcbe29f852ce17c016df2f367f5460301a2a2c6bd5f5ba6260b23bfe1c5e78b91c6041554ee67d1ce14ad3adf219505f692c61681d9e70cc4 |
26 |
-DIST dovecot-2.2-pigeonhole-0.4.20.tar.gz 1745121 BLAKE2B 4a320d7340f3a7fbb92f911c16abb49561692310c7c9224842065b9830f057e442e6ae27010232d615a06f6fdd889ef8619c555516e2d843802297644b935a27 SHA512 84a28842be206e05cb96c07cf1c1b62c9c378ba4c952caa47cf79a44b9428e076f4182eadd9c4fb8f45d3605b881f91e8e520c41705017ac4039240d4bcace39 |
27 |
DIST dovecot-2.2-pigeonhole-0.4.21.tar.gz 1774887 BLAKE2B ebf2601e7b087d655713f985b72442496e36543ec32881d3bc84d2c6b132f58082aee6c5fae3747f756b72a3c9a2e11f78350bc34c398214de13dfc83cffdef1 SHA512 4751f449ede1b05173c706b414ebf9f7f670ff78589ce6f0b687c32c9abe6dae8b3064ed1b20e893d9ec0147b0139ce479e1d74ebe94747c33f2d8ca177912de |
28 |
-DIST dovecot-2.2-pigeonhole-0.4.23.tar.gz 1787189 BLAKE2B 5ba20f6943dad508a655a5ba48c8d9a61d1bd40ddcbc8c037a4cda629fc7f87abe0abd8858d1d50324d7003f3997df27e9fc81ca83c76f465bc3bcbb3e023fae SHA512 24dae1f7a52fdb37f644e9c0a5c30dcbb95018e8dd43f18af56e7ee813723cad36b74d6c22ddff281e140e4c0bbb61900baf23116a980dcda5244ae8a5b544f8 |
29 |
DIST dovecot-2.2-pigeonhole-0.4.24.tar.gz 1808131 BLAKE2B e8a19b5c3b4876e71556e52ba6a984f6ed0abe93a222f692303fd41cd7a1e6e4e8fd0e5ab0821e9e179b595694752813689a07b428b2590582c3ca7dbb99a08f SHA512 2e21c95ece475ffcb78e5b5d4efa29e61471faf90b80b44a49963fb287de2784ebfb4c2b7ddfc66732fd073e9f02995d5950840336f6babe618b3d7d5166059f |
30 |
DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 BLAKE2B 7e6f11bf74d56887b640ab5ebffd6e2ad7878d47da808f81b2f21ab4de02495f6ca79453ab5867568afee7f2d9a0915601ceccf5c6a9581d38994c4d35f692e7 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2 |
31 |
DIST dovecot-2.2.19.tar.gz 5256627 BLAKE2B 0b7fe57ced1b1f7eb5e29e8d6723d237cc107752286995d8e5f6857f24b45ab40c4a38b03935b228e8530c3b254509124a7b6ce4e0a8a9be0ea87f0c529db935 SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9 |
32 |
-DIST dovecot-2.2.29.1.tar.gz 5972119 BLAKE2B 9b05e9976369757de07471c2e499a863efbd94b51d8aefdeb2144c01596f03f9ea02670ee9cac9590615e4139dc754c11eb4777d791f87a2e6031302155d9f05 SHA512 1e5ea6080ebe7dd4afe6fcfe8e98ed6d2ad2735655a18cc96e439dd044ccc3a1a6a80428bc746b4d6250820895d6a62121562e97e4b46c8b1cf88a19443bc111 |
33 |
-DIST dovecot-2.2.32.tar.gz 6100268 BLAKE2B e7d79f81fe06565d254c46de5cd7f4565883a029f4fa409d9f3c6ff75d599fb3f1ce5f8a32b96b9bebe4654de2be4998d0e178f1784e00d246186727324c6e80 SHA512 a26ce763fdea7d72ff9801d3b7d57a1f0d00278e4a1aa60d1be070fe5a6d2c6a15f266a519119492bee7a3e7a6b7d0732e9879e5c5841adbab8c0952cd1b7c7c |
34 |
DIST dovecot-2.2.34.tar.gz 6181270 BLAKE2B dfdb1e6812574e79595202e830167400569adf61155aa5ddaae443e798c4a05ccec2acd2975e00e9e7ffc63ee1dcf7e4e2a9288b1e6e1e1427d1e89790a8fa13 SHA512 9f08a7116a08a08495aa0e7b4cb6b11a924ea61006970487946e338bc79bba7fd7619c345cbf278a74de285d548af04fc66eaaee508185b8b9d7335cf5612055 |
35 |
-DIST dovecot-2.2.35.tar.gz 6185237 BLAKE2B 7ad08816553683126c4c8d494770730c49c2912a5437ba6dcb21e418d636c0d03280425e8a55b420a4500ebcf459da8be11deffccefdbc60811393e2044a4e4d SHA512 002ceea7f17018bcd438edda5a36a782606f291264ef63cebb8b4f72b094e812bf5553686c9e1e0d8c1354af54c1174f3670d1b1fc498ec4cddb3f731bf00c56 |
36 |
DIST dovecot-2.2.36.tar.gz 6239707 BLAKE2B 702bb24265b5fefec9c484b3cca890fb1536ff94d1f2d6c99ee8c294ee4e38091eef5a727f0d4bd03700263286361f55747a22fa74def350710f9e49a4b10580 SHA512 327c50971e276f6013ca7f7bb59498ee88d76c9f8419bd18ee531cf10142214350fb81c6d64eaef73ee01765dd0fcf4142ab146ed67d9d7d86d5a58d41cf8db5 |
37 |
-DIST dovecot-2.3-pigeonhole-0.5.0.1.tar.gz 1783039 BLAKE2B 8452c11d1c5f26d2ee9a0c54a2c30642bce5117f1ad140db8a8509a2bcc03236361a99c6f622267279eb75c19c68de7d96947557b595c345db34e34a135b492c SHA512 60016145caa444eeba13b49735f87ab2ebe7f178f104ad57283b5aa7e5119920d9f579032b775547e0866e86045a4ab653fd084068187d0cbe2e088cc15fc288 |
38 |
-DIST dovecot-2.3-pigeonhole-0.5.1.tar.gz 1792702 BLAKE2B 219bc6b3182e303b7f3784cca0fb7fcc9d9aae62e60cc490d7f0a94fa4f9b805933d9fd67c4927cd8f9c864c3b73e28bfde1866848960c71dc47d5e36196b748 SHA512 5d65c3c9f3131c4e82287d054bd8b963d7c56c3e0677d7384881cf109ca82080d6222f672d8f973447d98be823a4df5bf43760d4ba87b76447d13abab30130c4 |
39 |
DIST dovecot-2.3-pigeonhole-0.5.2.tar.gz 1814618 BLAKE2B b1187021673429bee1b45a1f657bea995e9881257919ff55bac63106d65963294ee2b3829167c6d50e351c4bc3c7e88a5ccfb757308d2500c5d4146246145074 SHA512 6bc24d9241f94db795a012346d9bc94b5cc7d7ce0175c03213c2b5d179d80dec95e9bdbd50bed628c8f9f7c51639e692ba5e429212a3b4a654c1e4764ac4f11c |
40 |
-DIST dovecot-2.3.0.1.tar.gz 6499984 BLAKE2B 4bfb38ba8bed154e58db03c53c0a6958632841fd66a118571c341be90f9d20a570a22699d4b8d117b72d4599fe074248c96cf4e7fc78ddd65c69662b4275cf97 SHA512 2b30c46c1660f425f6303a15cf638388439fd7a8065c91d28caf41d9a6403a4fccb530df3f69037a634bc3b0b9e498037da6b0b93c176f5e3b5808907d3f759d |
41 |
-DIST dovecot-2.3.1.tar.gz 6703089 BLAKE2B a9a021531241f86083cd5bf31f7b9211df77b2423ad213ca35904e23002121631e81a6419e3b07a838eb699faff615dcb35f3b95a1da537f74068b3c15795b35 SHA512 fe664ab771145f2390fef45839ff2756e36731c61e571dfa6975014f9cea43144e2aca0acf1a83b1dac55ad50042d0fa170b83570aa411228557861ada410b79 |
42 |
DIST dovecot-2.3.2.1.tar.gz 6797491 BLAKE2B 92b88fd0f0cb8ed6c418bf27c2e1fc4efe13f1ccfb4948ce5eed1a4e76a4e96f0d6770d9841026ec5a515310ebaa4b335063e3516de454db8ba06cc4ee5a00ec SHA512 c085a0d04925485423086736a3c7d919ad0ca9efeff005890382da5333edb68c7d23ccb89fbe2ac44f8f016fc993bf2c669e450794c3ab13463676cbb47c7bf7 |
43 |
|
44 |
diff --git a/net-mail/dovecot/dovecot-2.2.29.1.ebuild b/net-mail/dovecot/dovecot-2.2.29.1.ebuild |
45 |
deleted file mode 100644 |
46 |
index 484d17c54bd..00000000000 |
47 |
--- a/net-mail/dovecot/dovecot-2.2.29.1.ebuild |
48 |
+++ /dev/null |
49 |
@@ -1,307 +0,0 @@ |
50 |
-# Copyright 1999-2018 Gentoo Foundation |
51 |
-# Distributed under the terms of the GNU General Public License v2 |
52 |
- |
53 |
-EAPI=6 |
54 |
-inherit ssl-cert systemd user versionator |
55 |
- |
56 |
-MY_P="${P/_/.}" |
57 |
-major_minor="$(get_version_component_range 1-2)" |
58 |
-sieve_version="0.4.18" |
59 |
-if [[ ${PV} == *_rc* ]] ; then |
60 |
- rc_dir="rc/" |
61 |
-else |
62 |
- rc_dir="" |
63 |
-fi |
64 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
65 |
- sieve? ( |
66 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
67 |
- ) |
68 |
- managesieve? ( |
69 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
70 |
- ) " |
71 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
72 |
-HOMEPAGE="https://www.dovecot.org/" |
73 |
- |
74 |
-SLOT="0" |
75 |
-LICENSE="LGPL-2.1 MIT" |
76 |
-KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~s390 ~sparc x86" |
77 |
- |
78 |
-IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail" |
79 |
-IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox" |
80 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
81 |
-IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat" |
82 |
- |
83 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
84 |
- |
85 |
-DEPEND="bzip2? ( app-arch/bzip2 ) |
86 |
- caps? ( sys-libs/libcap ) |
87 |
- kerberos? ( virtual/krb5 ) |
88 |
- ldap? ( net-nds/openldap ) |
89 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
90 |
- lzma? ( app-arch/xz-utils ) |
91 |
- lz4? ( app-arch/lz4 ) |
92 |
- mysql? ( virtual/mysql ) |
93 |
- pam? ( virtual/pam ) |
94 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
95 |
- selinux? ( sec-policy/selinux-dovecot ) |
96 |
- solr? ( net-misc/curl dev-libs/expat ) |
97 |
- sqlite? ( dev-db/sqlite:* ) |
98 |
- ssl? ( |
99 |
- !libressl? ( dev-libs/openssl:0 ) |
100 |
- libressl? ( dev-libs/libressl ) |
101 |
- ) |
102 |
- tcpd? ( sys-apps/tcp-wrappers ) |
103 |
- textcat? ( app-text/libexttextcat ) |
104 |
- vpopmail? ( net-mail/vpopmail ) |
105 |
- zlib? ( sys-libs/zlib ) |
106 |
- virtual/libiconv |
107 |
- dev-libs/icu:=" |
108 |
- |
109 |
-RDEPEND="${DEPEND} |
110 |
- net-mail/mailbase" |
111 |
- |
112 |
-S=${WORKDIR}/${MY_P} |
113 |
- |
114 |
-pkg_setup() { |
115 |
- if use managesieve && ! use sieve; then |
116 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
117 |
- ewarn "sieve USE flag will be turned on" |
118 |
- fi |
119 |
- # default internal user |
120 |
- enewgroup dovecot 97 |
121 |
- enewuser dovecot 97 -1 /dev/null dovecot |
122 |
- # default login user |
123 |
- enewuser dovenull -1 -1 /dev/null |
124 |
- # add "mail" group for suid'ing. Better security isolation. |
125 |
- if use suid; then |
126 |
- enewgroup mail |
127 |
- fi |
128 |
-} |
129 |
- |
130 |
-src_prepare() { |
131 |
- eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch" |
132 |
- eapply_user |
133 |
-} |
134 |
- |
135 |
-src_configure() { |
136 |
- local conf="" |
137 |
- |
138 |
- if use postgres || use mysql || use sqlite; then |
139 |
- conf="${conf} --with-sql" |
140 |
- fi |
141 |
- |
142 |
- local storages="" |
143 |
- for storage in ${IUSE_DOVECOT_STORAGE//+/}; do |
144 |
- use ${storage} && storages="${storage} ${storages}" |
145 |
- done |
146 |
- [ "${storages}" ] || storages="maildir" |
147 |
- |
148 |
- # turn valgrind tests off. Bug #340791 |
149 |
- VALGRIND=no econf \ |
150 |
- --localstatedir="${EPREFIX}/var" \ |
151 |
- --runstatedir="${EPREFIX}/run" \ |
152 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
153 |
- --without-stemmer \ |
154 |
- --with-storages="${storages}" \ |
155 |
- --disable-rpath \ |
156 |
- --with-icu \ |
157 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
158 |
- $( use_with bzip2 bzlib ) \ |
159 |
- $( use_with caps libcap ) \ |
160 |
- $( use_with kerberos gssapi ) \ |
161 |
- $( use_with ldap ) \ |
162 |
- $( use_with lucene ) \ |
163 |
- $( use_with lz4 ) \ |
164 |
- $( use_with lzma ) \ |
165 |
- $( use_with mysql ) \ |
166 |
- $( use_with pam ) \ |
167 |
- $( use_with postgres pgsql ) \ |
168 |
- $( use_with sqlite ) \ |
169 |
- $( use_with solr ) \ |
170 |
- $( use_with ssl ) \ |
171 |
- $( use_with tcpd libwrap ) \ |
172 |
- $( use_with textcat ) \ |
173 |
- $( use_with vpopmail ) \ |
174 |
- $( use_with zlib ) \ |
175 |
- $( use_enable static-libs static ) \ |
176 |
- ${conf} |
177 |
- |
178 |
- if use sieve || use managesieve ; then |
179 |
- # The sieve plugin needs this file to be build to determine the plugin |
180 |
- # directory and the list of libraries to link to. |
181 |
- emake dovecot-config |
182 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
183 |
- econf \ |
184 |
- $( use_enable static-libs static ) \ |
185 |
- --localstatedir="${EPREFIX}/var" \ |
186 |
- --enable-shared \ |
187 |
- --with-dovecot="../${MY_P}" \ |
188 |
- $( use_with managesieve ) |
189 |
- fi |
190 |
-} |
191 |
- |
192 |
-src_compile() { |
193 |
- default |
194 |
- if use sieve || use managesieve ; then |
195 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
196 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
197 |
- fi |
198 |
-} |
199 |
- |
200 |
-src_test() { |
201 |
- default |
202 |
- if use sieve || use managesieve ; then |
203 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
204 |
- default |
205 |
- fi |
206 |
-} |
207 |
- |
208 |
-src_install () { |
209 |
- default |
210 |
- |
211 |
- # insecure: |
212 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
213 |
- # better: |
214 |
- if use suid;then |
215 |
- einfo "Changing perms to allow deliver to be suided" |
216 |
- fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
217 |
- fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
218 |
- fi |
219 |
- |
220 |
- newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
221 |
- |
222 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
223 |
- |
224 |
- dodoc AUTHORS NEWS README TODO |
225 |
- dodoc doc/*.{txt,cnf,xml,sh} |
226 |
- docinto example-config |
227 |
- dodoc doc/example-config/*.{conf,ext} |
228 |
- docinto example-config/conf.d |
229 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
230 |
- docinto wiki |
231 |
- dodoc doc/wiki/* |
232 |
- doman doc/man/*.{1,7} |
233 |
- |
234 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
235 |
- # the dovecot folks nicely left for us.... |
236 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
237 |
- local confd="${ED}/etc/dovecot/conf.d" |
238 |
- |
239 |
- insinto /etc/dovecot |
240 |
- doins doc/example-config/*.{conf,ext} |
241 |
- insinto /etc/dovecot/conf.d |
242 |
- doins doc/example-config/conf.d/*.{conf,ext} |
243 |
- fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
244 |
- rm -f "${confd}/../README" |
245 |
- |
246 |
- # .maildir is the Gentoo default |
247 |
- local mail_location="maildir:~/.maildir" |
248 |
- if ! use maildir; then |
249 |
- if use mbox; then |
250 |
- mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u" |
251 |
- keepdir /var/dovecot |
252 |
- sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \ |
253 |
- "${confd}/10-mail.conf" || die "sed failed" |
254 |
- elif use mdbox ; then |
255 |
- mail_location="mdbox:~/.mdbox" |
256 |
- elif use sdbox ; then |
257 |
- mail_location="sdbox:~/.sdbox" |
258 |
- fi |
259 |
- fi |
260 |
- sed -i -e \ |
261 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
262 |
- "${confd}/10-mail.conf" \ |
263 |
- || die "failed to update mail location settings in 10-mail.conf" |
264 |
- |
265 |
- # We're using pam files (imap and pop3) provided by mailbase |
266 |
- if use pam; then |
267 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
268 |
- "${confd}/auth-system.conf.ext" \ |
269 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
270 |
- # mailbase does not provide a sieve pam file |
271 |
- use managesieve && dosym imap /etc/pam.d/sieve |
272 |
- sed -i -e \ |
273 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
274 |
- "${confd}/10-auth.conf" \ |
275 |
- || die "failed to update PAM settings in 10-auth.conf" |
276 |
- fi |
277 |
- |
278 |
- # Disable ipv6 if necessary |
279 |
- if ! use ipv6; then |
280 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
281 |
- || die "failed to update listen settings in dovecot.conf" |
282 |
- fi |
283 |
- |
284 |
- # Update ssl cert locations |
285 |
- if use ssl; then |
286 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
287 |
- || die "ssl conf failed" |
288 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
289 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
290 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
291 |
- fi |
292 |
- |
293 |
- # Install SQL configuration |
294 |
- if use mysql || use postgres; then |
295 |
- sed -i -e \ |
296 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
297 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
298 |
- 10-auth.conf" |
299 |
- fi |
300 |
- |
301 |
- # Install LDAP configuration |
302 |
- if use ldap; then |
303 |
- sed -i -e \ |
304 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
305 |
- "${confd}/10-auth.conf" \ |
306 |
- || die "failed to update ldap settings in 10-auth.conf" |
307 |
- fi |
308 |
- |
309 |
- if use vpopmail; then |
310 |
- sed -i -e \ |
311 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
312 |
- "${confd}/10-auth.conf" \ |
313 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
314 |
- fi |
315 |
- |
316 |
- if use sieve || use managesieve ; then |
317 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
318 |
- emake DESTDIR="${ED}" install |
319 |
- sed -i -e \ |
320 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
321 |
- || die "failed to update sieve settings in 15-lda.conf" |
322 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
323 |
- docinto example-config/conf.d |
324 |
- dodoc doc/example-config/conf.d/*.conf |
325 |
- insinto /etc/dovecot/conf.d |
326 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
327 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
328 |
- docinto sieve/rfc |
329 |
- dodoc doc/rfc/*.txt |
330 |
- docinto sieve/devel |
331 |
- dodoc doc/devel/DESIGN |
332 |
- docinto plugins |
333 |
- dodoc doc/plugins/*.txt |
334 |
- docinto extensions |
335 |
- dodoc doc/extensions/*.txt |
336 |
- docinto locations |
337 |
- dodoc doc/locations/*.txt |
338 |
- doman doc/man/*.{1,7} |
339 |
- fi |
340 |
- |
341 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
342 |
-} |
343 |
- |
344 |
-pkg_postinst() { |
345 |
- if use ssl; then |
346 |
- # Let's not make a new certificate if we already have one |
347 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
348 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
349 |
- einfo "Creating SSL certificate" |
350 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
351 |
- install_cert /etc/ssl/dovecot/server |
352 |
- fi |
353 |
- fi |
354 |
- |
355 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
356 |
-} |
357 |
|
358 |
diff --git a/net-mail/dovecot/dovecot-2.2.32.ebuild b/net-mail/dovecot/dovecot-2.2.32.ebuild |
359 |
deleted file mode 100644 |
360 |
index fd713a3164f..00000000000 |
361 |
--- a/net-mail/dovecot/dovecot-2.2.32.ebuild |
362 |
+++ /dev/null |
363 |
@@ -1,290 +0,0 @@ |
364 |
-# Copyright 1999-2018 Gentoo Foundation |
365 |
-# Distributed under the terms of the GNU General Public License v2 |
366 |
- |
367 |
-EAPI=6 |
368 |
-inherit ssl-cert systemd user versionator |
369 |
- |
370 |
-MY_P="${P/_/.}" |
371 |
-major_minor="$(get_version_component_range 1-2)" |
372 |
-sieve_version="0.4.20" |
373 |
-if [[ ${PV} == *_rc* ]] ; then |
374 |
- rc_dir="rc/" |
375 |
-else |
376 |
- rc_dir="" |
377 |
-fi |
378 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
379 |
- sieve? ( |
380 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
381 |
- ) |
382 |
- managesieve? ( |
383 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
384 |
- ) " |
385 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
386 |
-HOMEPAGE="https://www.dovecot.org/" |
387 |
- |
388 |
-SLOT="0" |
389 |
-LICENSE="LGPL-2.1 MIT" |
390 |
-KEYWORDS="alpha amd64 ~arm ~hppa ~ia64 ppc ppc64 ~s390 ~sparc x86" |
391 |
- |
392 |
-IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail" |
393 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
394 |
-IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat" |
395 |
- |
396 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
397 |
- |
398 |
-DEPEND="bzip2? ( app-arch/bzip2 ) |
399 |
- caps? ( sys-libs/libcap ) |
400 |
- kerberos? ( virtual/krb5 ) |
401 |
- ldap? ( net-nds/openldap ) |
402 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
403 |
- lzma? ( app-arch/xz-utils ) |
404 |
- lz4? ( app-arch/lz4 ) |
405 |
- mysql? ( virtual/mysql ) |
406 |
- pam? ( virtual/pam ) |
407 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
408 |
- selinux? ( sec-policy/selinux-dovecot ) |
409 |
- solr? ( net-misc/curl dev-libs/expat ) |
410 |
- sqlite? ( dev-db/sqlite:* ) |
411 |
- ssl? ( |
412 |
- !libressl? ( dev-libs/openssl:0 ) |
413 |
- libressl? ( dev-libs/libressl ) |
414 |
- ) |
415 |
- tcpd? ( sys-apps/tcp-wrappers ) |
416 |
- textcat? ( app-text/libexttextcat ) |
417 |
- vpopmail? ( net-mail/vpopmail ) |
418 |
- zlib? ( sys-libs/zlib ) |
419 |
- virtual/libiconv |
420 |
- dev-libs/icu:=" |
421 |
- |
422 |
-RDEPEND="${DEPEND} |
423 |
- net-mail/mailbase" |
424 |
- |
425 |
-# Dovecot does not support building without ssl. Force it for now |
426 |
-REQUIRED_USE="ssl" |
427 |
- |
428 |
-S=${WORKDIR}/${MY_P} |
429 |
- |
430 |
-pkg_setup() { |
431 |
- if use managesieve && ! use sieve; then |
432 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
433 |
- ewarn "sieve USE flag will be turned on" |
434 |
- fi |
435 |
- # default internal user |
436 |
- enewgroup dovecot 97 |
437 |
- enewuser dovecot 97 -1 /dev/null dovecot |
438 |
- # default login user |
439 |
- enewuser dovenull -1 -1 /dev/null |
440 |
- # add "mail" group for suid'ing. Better security isolation. |
441 |
- if use suid; then |
442 |
- enewgroup mail |
443 |
- fi |
444 |
-} |
445 |
- |
446 |
-src_prepare() { |
447 |
- eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch" |
448 |
- eapply_user |
449 |
-} |
450 |
- |
451 |
-src_configure() { |
452 |
- local conf="" |
453 |
- |
454 |
- if use postgres || use mysql || use sqlite; then |
455 |
- conf="${conf} --with-sql" |
456 |
- fi |
457 |
- |
458 |
- # turn valgrind tests off. Bug #340791 |
459 |
- VALGRIND=no econf \ |
460 |
- --localstatedir="${EPREFIX}/var" \ |
461 |
- --runstatedir="${EPREFIX}/run" \ |
462 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
463 |
- --without-stemmer \ |
464 |
- --disable-rpath \ |
465 |
- --with-icu \ |
466 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
467 |
- $( use_with bzip2 bzlib ) \ |
468 |
- $( use_with caps libcap ) \ |
469 |
- $( use_with kerberos gssapi ) \ |
470 |
- $( use_with ldap ) \ |
471 |
- $( use_with lucene ) \ |
472 |
- $( use_with lz4 ) \ |
473 |
- $( use_with lzma ) \ |
474 |
- $( use_with mysql ) \ |
475 |
- $( use_with pam ) \ |
476 |
- $( use_with postgres pgsql ) \ |
477 |
- $( use_with sqlite ) \ |
478 |
- $( use_with solr ) \ |
479 |
- $( use_with ssl ) \ |
480 |
- $( use_with tcpd libwrap ) \ |
481 |
- $( use_with textcat ) \ |
482 |
- $( use_with vpopmail ) \ |
483 |
- $( use_with zlib ) \ |
484 |
- $( use_enable static-libs static ) \ |
485 |
- ${conf} |
486 |
- |
487 |
- if use sieve || use managesieve ; then |
488 |
- # The sieve plugin needs this file to be build to determine the plugin |
489 |
- # directory and the list of libraries to link to. |
490 |
- emake dovecot-config |
491 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
492 |
- econf \ |
493 |
- $( use_enable static-libs static ) \ |
494 |
- --localstatedir="${EPREFIX}/var" \ |
495 |
- --enable-shared \ |
496 |
- --with-dovecot="../${MY_P}" \ |
497 |
- $( use_with managesieve ) |
498 |
- fi |
499 |
-} |
500 |
- |
501 |
-src_compile() { |
502 |
- default |
503 |
- if use sieve || use managesieve ; then |
504 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
505 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
506 |
- fi |
507 |
-} |
508 |
- |
509 |
-src_test() { |
510 |
- default |
511 |
- if use sieve || use managesieve ; then |
512 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
513 |
- default |
514 |
- fi |
515 |
-} |
516 |
- |
517 |
-src_install () { |
518 |
- default |
519 |
- |
520 |
- # insecure: |
521 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
522 |
- # better: |
523 |
- if use suid;then |
524 |
- einfo "Changing perms to allow deliver to be suided" |
525 |
- fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
526 |
- fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
527 |
- fi |
528 |
- |
529 |
- newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
530 |
- |
531 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
532 |
- |
533 |
- dodoc AUTHORS NEWS README TODO |
534 |
- dodoc doc/*.{txt,cnf,xml,sh} |
535 |
- docinto example-config |
536 |
- dodoc doc/example-config/*.{conf,ext} |
537 |
- docinto example-config/conf.d |
538 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
539 |
- docinto wiki |
540 |
- dodoc doc/wiki/* |
541 |
- doman doc/man/*.{1,7} |
542 |
- |
543 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
544 |
- # the dovecot folks nicely left for us.... |
545 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
546 |
- local confd="${ED}/etc/dovecot/conf.d" |
547 |
- |
548 |
- insinto /etc/dovecot |
549 |
- doins doc/example-config/*.{conf,ext} |
550 |
- insinto /etc/dovecot/conf.d |
551 |
- doins doc/example-config/conf.d/*.{conf,ext} |
552 |
- fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
553 |
- rm -f "${confd}/../README" |
554 |
- |
555 |
- # .maildir is the Gentoo default |
556 |
- local mail_location="maildir:~/.maildir" |
557 |
- sed -i -e \ |
558 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
559 |
- "${confd}/10-mail.conf" \ |
560 |
- || die "failed to update mail location settings in 10-mail.conf" |
561 |
- |
562 |
- # We're using pam files (imap and pop3) provided by mailbase |
563 |
- if use pam; then |
564 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
565 |
- "${confd}/auth-system.conf.ext" \ |
566 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
567 |
- # mailbase does not provide a sieve pam file |
568 |
- use managesieve && dosym imap /etc/pam.d/sieve |
569 |
- sed -i -e \ |
570 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
571 |
- "${confd}/10-auth.conf" \ |
572 |
- || die "failed to update PAM settings in 10-auth.conf" |
573 |
- fi |
574 |
- |
575 |
- # Disable ipv6 if necessary |
576 |
- if ! use ipv6; then |
577 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
578 |
- || die "failed to update listen settings in dovecot.conf" |
579 |
- fi |
580 |
- |
581 |
- # Update ssl cert locations |
582 |
- if use ssl; then |
583 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
584 |
- || die "ssl conf failed" |
585 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
586 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
587 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
588 |
- fi |
589 |
- |
590 |
- # Install SQL configuration |
591 |
- if use mysql || use postgres; then |
592 |
- sed -i -e \ |
593 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
594 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
595 |
- 10-auth.conf" |
596 |
- fi |
597 |
- |
598 |
- # Install LDAP configuration |
599 |
- if use ldap; then |
600 |
- sed -i -e \ |
601 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
602 |
- "${confd}/10-auth.conf" \ |
603 |
- || die "failed to update ldap settings in 10-auth.conf" |
604 |
- fi |
605 |
- |
606 |
- if use vpopmail; then |
607 |
- sed -i -e \ |
608 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
609 |
- "${confd}/10-auth.conf" \ |
610 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
611 |
- fi |
612 |
- |
613 |
- if use sieve || use managesieve ; then |
614 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
615 |
- emake DESTDIR="${ED}" install |
616 |
- sed -i -e \ |
617 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
618 |
- || die "failed to update sieve settings in 15-lda.conf" |
619 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
620 |
- docinto example-config/conf.d |
621 |
- dodoc doc/example-config/conf.d/*.conf |
622 |
- insinto /etc/dovecot/conf.d |
623 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
624 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
625 |
- docinto sieve/rfc |
626 |
- dodoc doc/rfc/*.txt |
627 |
- docinto sieve/devel |
628 |
- dodoc doc/devel/DESIGN |
629 |
- docinto plugins |
630 |
- dodoc doc/plugins/*.txt |
631 |
- docinto extensions |
632 |
- dodoc doc/extensions/*.txt |
633 |
- docinto locations |
634 |
- dodoc doc/locations/*.txt |
635 |
- doman doc/man/*.{1,7} |
636 |
- fi |
637 |
- |
638 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
639 |
-} |
640 |
- |
641 |
-pkg_postinst() { |
642 |
- if use ssl; then |
643 |
- # Let's not make a new certificate if we already have one |
644 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
645 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
646 |
- einfo "Creating SSL certificate" |
647 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
648 |
- install_cert /etc/ssl/dovecot/server |
649 |
- fi |
650 |
- fi |
651 |
- |
652 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
653 |
-} |
654 |
|
655 |
diff --git a/net-mail/dovecot/dovecot-2.2.35.ebuild b/net-mail/dovecot/dovecot-2.2.35.ebuild |
656 |
deleted file mode 100644 |
657 |
index 6c3d022d8fb..00000000000 |
658 |
--- a/net-mail/dovecot/dovecot-2.2.35.ebuild |
659 |
+++ /dev/null |
660 |
@@ -1,290 +0,0 @@ |
661 |
-# Copyright 1999-2018 Gentoo Foundation |
662 |
-# Distributed under the terms of the GNU General Public License v2 |
663 |
- |
664 |
-EAPI=6 |
665 |
-inherit ssl-cert systemd user versionator |
666 |
- |
667 |
-MY_P="${P/_/.}" |
668 |
-major_minor="$(get_version_component_range 1-2)" |
669 |
-sieve_version="0.4.23" |
670 |
-if [[ ${PV} == *_rc* ]] ; then |
671 |
- rc_dir="rc/" |
672 |
-else |
673 |
- rc_dir="" |
674 |
-fi |
675 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
676 |
- sieve? ( |
677 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
678 |
- ) |
679 |
- managesieve? ( |
680 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
681 |
- ) " |
682 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
683 |
-HOMEPAGE="https://www.dovecot.org/" |
684 |
- |
685 |
-SLOT="0" |
686 |
-LICENSE="LGPL-2.1 MIT" |
687 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
688 |
- |
689 |
-IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail" |
690 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
691 |
-IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat" |
692 |
- |
693 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
694 |
- |
695 |
-DEPEND="bzip2? ( app-arch/bzip2 ) |
696 |
- caps? ( sys-libs/libcap ) |
697 |
- kerberos? ( virtual/krb5 ) |
698 |
- ldap? ( net-nds/openldap ) |
699 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
700 |
- lzma? ( app-arch/xz-utils ) |
701 |
- lz4? ( app-arch/lz4 ) |
702 |
- mysql? ( virtual/mysql ) |
703 |
- pam? ( virtual/pam ) |
704 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
705 |
- selinux? ( sec-policy/selinux-dovecot ) |
706 |
- solr? ( net-misc/curl dev-libs/expat ) |
707 |
- sqlite? ( dev-db/sqlite:* ) |
708 |
- ssl? ( |
709 |
- !libressl? ( dev-libs/openssl:0 ) |
710 |
- libressl? ( dev-libs/libressl ) |
711 |
- ) |
712 |
- tcpd? ( sys-apps/tcp-wrappers ) |
713 |
- textcat? ( app-text/libexttextcat ) |
714 |
- vpopmail? ( net-mail/vpopmail ) |
715 |
- zlib? ( sys-libs/zlib ) |
716 |
- virtual/libiconv |
717 |
- dev-libs/icu:=" |
718 |
- |
719 |
-RDEPEND="${DEPEND} |
720 |
- net-mail/mailbase" |
721 |
- |
722 |
-# Dovecot does not support building without ssl. Force it for now |
723 |
-REQUIRED_USE="ssl" |
724 |
- |
725 |
-S=${WORKDIR}/${MY_P} |
726 |
- |
727 |
-pkg_setup() { |
728 |
- if use managesieve && ! use sieve; then |
729 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
730 |
- ewarn "sieve USE flag will be turned on" |
731 |
- fi |
732 |
- # default internal user |
733 |
- enewgroup dovecot 97 |
734 |
- enewuser dovecot 97 -1 /dev/null dovecot |
735 |
- # default login user |
736 |
- enewuser dovenull -1 -1 /dev/null |
737 |
- # add "mail" group for suid'ing. Better security isolation. |
738 |
- if use suid; then |
739 |
- enewgroup mail |
740 |
- fi |
741 |
-} |
742 |
- |
743 |
-src_prepare() { |
744 |
- eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch" |
745 |
- eapply_user |
746 |
-} |
747 |
- |
748 |
-src_configure() { |
749 |
- local conf="" |
750 |
- |
751 |
- if use postgres || use mysql || use sqlite; then |
752 |
- conf="${conf} --with-sql" |
753 |
- fi |
754 |
- |
755 |
- # turn valgrind tests off. Bug #340791 |
756 |
- VALGRIND=no econf \ |
757 |
- --with-statedir="${EPREFIX}/var/lib/dovecot" \ |
758 |
- --with-rundir="${EPREFIX}/run/dovecot" \ |
759 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
760 |
- --without-stemmer \ |
761 |
- --disable-rpath \ |
762 |
- --with-icu \ |
763 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
764 |
- $( use_with bzip2 bzlib ) \ |
765 |
- $( use_with caps libcap ) \ |
766 |
- $( use_with kerberos gssapi ) \ |
767 |
- $( use_with ldap ) \ |
768 |
- $( use_with lucene ) \ |
769 |
- $( use_with lz4 ) \ |
770 |
- $( use_with lzma ) \ |
771 |
- $( use_with mysql ) \ |
772 |
- $( use_with pam ) \ |
773 |
- $( use_with postgres pgsql ) \ |
774 |
- $( use_with sqlite ) \ |
775 |
- $( use_with solr ) \ |
776 |
- $( use_with ssl ) \ |
777 |
- $( use_with tcpd libwrap ) \ |
778 |
- $( use_with textcat ) \ |
779 |
- $( use_with vpopmail ) \ |
780 |
- $( use_with zlib ) \ |
781 |
- $( use_enable static-libs static ) \ |
782 |
- ${conf} |
783 |
- |
784 |
- if use sieve || use managesieve ; then |
785 |
- # The sieve plugin needs this file to be build to determine the plugin |
786 |
- # directory and the list of libraries to link to. |
787 |
- emake dovecot-config |
788 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
789 |
- econf \ |
790 |
- $( use_enable static-libs static ) \ |
791 |
- --localstatedir="${EPREFIX}/var" \ |
792 |
- --enable-shared \ |
793 |
- --with-dovecot="../${MY_P}" \ |
794 |
- $( use_with managesieve ) |
795 |
- fi |
796 |
-} |
797 |
- |
798 |
-src_compile() { |
799 |
- default |
800 |
- if use sieve || use managesieve ; then |
801 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
802 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
803 |
- fi |
804 |
-} |
805 |
- |
806 |
-src_test() { |
807 |
- default |
808 |
- if use sieve || use managesieve ; then |
809 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
810 |
- default |
811 |
- fi |
812 |
-} |
813 |
- |
814 |
-src_install () { |
815 |
- default |
816 |
- |
817 |
- # insecure: |
818 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
819 |
- # better: |
820 |
- if use suid;then |
821 |
- einfo "Changing perms to allow deliver to be suided" |
822 |
- fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
823 |
- fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
824 |
- fi |
825 |
- |
826 |
- newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
827 |
- |
828 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
829 |
- |
830 |
- dodoc AUTHORS NEWS README TODO |
831 |
- dodoc doc/*.{txt,cnf,xml,sh} |
832 |
- docinto example-config |
833 |
- dodoc doc/example-config/*.{conf,ext} |
834 |
- docinto example-config/conf.d |
835 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
836 |
- docinto wiki |
837 |
- dodoc doc/wiki/* |
838 |
- doman doc/man/*.{1,7} |
839 |
- |
840 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
841 |
- # the dovecot folks nicely left for us.... |
842 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
843 |
- local confd="${ED}/etc/dovecot/conf.d" |
844 |
- |
845 |
- insinto /etc/dovecot |
846 |
- doins doc/example-config/*.{conf,ext} |
847 |
- insinto /etc/dovecot/conf.d |
848 |
- doins doc/example-config/conf.d/*.{conf,ext} |
849 |
- fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
850 |
- rm -f "${confd}/../README" |
851 |
- |
852 |
- # .maildir is the Gentoo default |
853 |
- local mail_location="maildir:~/.maildir" |
854 |
- sed -i -e \ |
855 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
856 |
- "${confd}/10-mail.conf" \ |
857 |
- || die "failed to update mail location settings in 10-mail.conf" |
858 |
- |
859 |
- # We're using pam files (imap and pop3) provided by mailbase |
860 |
- if use pam; then |
861 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
862 |
- "${confd}/auth-system.conf.ext" \ |
863 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
864 |
- # mailbase does not provide a sieve pam file |
865 |
- use managesieve && dosym imap /etc/pam.d/sieve |
866 |
- sed -i -e \ |
867 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
868 |
- "${confd}/10-auth.conf" \ |
869 |
- || die "failed to update PAM settings in 10-auth.conf" |
870 |
- fi |
871 |
- |
872 |
- # Disable ipv6 if necessary |
873 |
- if ! use ipv6; then |
874 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
875 |
- || die "failed to update listen settings in dovecot.conf" |
876 |
- fi |
877 |
- |
878 |
- # Update ssl cert locations |
879 |
- if use ssl; then |
880 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
881 |
- || die "ssl conf failed" |
882 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
883 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
884 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
885 |
- fi |
886 |
- |
887 |
- # Install SQL configuration |
888 |
- if use mysql || use postgres; then |
889 |
- sed -i -e \ |
890 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
891 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
892 |
- 10-auth.conf" |
893 |
- fi |
894 |
- |
895 |
- # Install LDAP configuration |
896 |
- if use ldap; then |
897 |
- sed -i -e \ |
898 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
899 |
- "${confd}/10-auth.conf" \ |
900 |
- || die "failed to update ldap settings in 10-auth.conf" |
901 |
- fi |
902 |
- |
903 |
- if use vpopmail; then |
904 |
- sed -i -e \ |
905 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
906 |
- "${confd}/10-auth.conf" \ |
907 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
908 |
- fi |
909 |
- |
910 |
- if use sieve || use managesieve ; then |
911 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
912 |
- emake DESTDIR="${ED}" install |
913 |
- sed -i -e \ |
914 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
915 |
- || die "failed to update sieve settings in 15-lda.conf" |
916 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
917 |
- docinto example-config/conf.d |
918 |
- dodoc doc/example-config/conf.d/*.conf |
919 |
- insinto /etc/dovecot/conf.d |
920 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
921 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
922 |
- docinto sieve/rfc |
923 |
- dodoc doc/rfc/*.txt |
924 |
- docinto sieve/devel |
925 |
- dodoc doc/devel/DESIGN |
926 |
- docinto plugins |
927 |
- dodoc doc/plugins/*.txt |
928 |
- docinto extensions |
929 |
- dodoc doc/extensions/*.txt |
930 |
- docinto locations |
931 |
- dodoc doc/locations/*.txt |
932 |
- doman doc/man/*.{1,7} |
933 |
- fi |
934 |
- |
935 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
936 |
-} |
937 |
- |
938 |
-pkg_postinst() { |
939 |
- if use ssl; then |
940 |
- # Let's not make a new certificate if we already have one |
941 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
942 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
943 |
- einfo "Creating SSL certificate" |
944 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
945 |
- install_cert /etc/ssl/dovecot/server |
946 |
- fi |
947 |
- fi |
948 |
- |
949 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
950 |
-} |
951 |
|
952 |
diff --git a/net-mail/dovecot/dovecot-2.3.0.1.ebuild b/net-mail/dovecot/dovecot-2.3.0.1.ebuild |
953 |
deleted file mode 100644 |
954 |
index 32f71b87855..00000000000 |
955 |
--- a/net-mail/dovecot/dovecot-2.3.0.1.ebuild |
956 |
+++ /dev/null |
957 |
@@ -1,284 +0,0 @@ |
958 |
-# Copyright 1999-2018 Gentoo Foundation |
959 |
-# Distributed under the terms of the GNU General Public License v2 |
960 |
- |
961 |
-EAPI=6 |
962 |
-# do not add a ssl USE flag. ssl is mandatory |
963 |
-SSL_DEPS_SKIP=1 |
964 |
-inherit ssl-cert systemd user versionator |
965 |
- |
966 |
-MY_P="${P/_/.}" |
967 |
-#MY_S="${PN}-ce-${PV}" |
968 |
-major_minor="$(get_version_component_range 1-2)" |
969 |
-sieve_version="0.5.0.1" |
970 |
-if [[ ${PV} == *_rc* ]] ; then |
971 |
- rc_dir="rc/" |
972 |
-else |
973 |
- rc_dir="" |
974 |
-fi |
975 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
976 |
- sieve? ( |
977 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
978 |
- ) |
979 |
- managesieve? ( |
980 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
981 |
- ) " |
982 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
983 |
-HOMEPAGE="https://www.dovecot.org/" |
984 |
- |
985 |
-SLOT="0" |
986 |
-LICENSE="LGPL-2.1 MIT" |
987 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
988 |
- |
989 |
-IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail" |
990 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
991 |
-IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat" |
992 |
- |
993 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
994 |
- |
995 |
-DEPEND="argon2? ( dev-libs/libsodium ) |
996 |
- bzip2? ( app-arch/bzip2 ) |
997 |
- caps? ( sys-libs/libcap ) |
998 |
- kerberos? ( virtual/krb5 ) |
999 |
- ldap? ( net-nds/openldap ) |
1000 |
- lua? ( dev-lang/lua:* ) |
1001 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
1002 |
- lzma? ( app-arch/xz-utils ) |
1003 |
- lz4? ( app-arch/lz4 ) |
1004 |
- mysql? ( virtual/mysql ) |
1005 |
- pam? ( virtual/pam ) |
1006 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
1007 |
- selinux? ( sec-policy/selinux-dovecot ) |
1008 |
- solr? ( net-misc/curl dev-libs/expat ) |
1009 |
- sqlite? ( dev-db/sqlite:* ) |
1010 |
- !libressl? ( dev-libs/openssl:0 ) |
1011 |
- libressl? ( dev-libs/libressl ) |
1012 |
- tcpd? ( sys-apps/tcp-wrappers ) |
1013 |
- textcat? ( app-text/libexttextcat ) |
1014 |
- vpopmail? ( net-mail/vpopmail ) |
1015 |
- zlib? ( sys-libs/zlib ) |
1016 |
- virtual/libiconv |
1017 |
- dev-libs/icu:=" |
1018 |
- |
1019 |
-RDEPEND="${DEPEND} |
1020 |
- net-mail/mailbase" |
1021 |
- |
1022 |
-PATCHES=() |
1023 |
- |
1024 |
-pkg_setup() { |
1025 |
- if use managesieve && ! use sieve; then |
1026 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
1027 |
- ewarn "sieve USE flag will be turned on" |
1028 |
- fi |
1029 |
- # default internal user |
1030 |
- enewgroup dovecot 97 |
1031 |
- enewuser dovecot 97 -1 /dev/null dovecot |
1032 |
- # default login user |
1033 |
- enewuser dovenull -1 -1 /dev/null |
1034 |
- # add "mail" group for suid'ing. Better security isolation. |
1035 |
- if use suid; then |
1036 |
- enewgroup mail |
1037 |
- fi |
1038 |
-} |
1039 |
- |
1040 |
-src_configure() { |
1041 |
- local conf="" |
1042 |
- |
1043 |
- if use postgres || use mysql || use sqlite; then |
1044 |
- conf="${conf} --with-sql" |
1045 |
- fi |
1046 |
- |
1047 |
- # turn valgrind tests off. Bug #340791 |
1048 |
- VALGRIND=no econf \ |
1049 |
- --with-rundir="${EPREFIX}/run/dovecot" \ |
1050 |
- --with-statedir="${EPREFIX}/var/lib/dovecot" \ |
1051 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
1052 |
- --without-stemmer \ |
1053 |
- --disable-rpath \ |
1054 |
- --without-libbsd \ |
1055 |
- --with-icu \ |
1056 |
- --with-ssl \ |
1057 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
1058 |
- $( use_with argon2 sodium ) \ |
1059 |
- $( use_with bzip2 bzlib ) \ |
1060 |
- $( use_with caps libcap ) \ |
1061 |
- $( use_with kerberos gssapi ) \ |
1062 |
- $( use_with lua ) \ |
1063 |
- $( use_with ldap ) \ |
1064 |
- $( use_with lucene ) \ |
1065 |
- $( use_with lz4 ) \ |
1066 |
- $( use_with lzma ) \ |
1067 |
- $( use_with mysql ) \ |
1068 |
- $( use_with pam ) \ |
1069 |
- $( use_with postgres pgsql ) \ |
1070 |
- $( use_with sqlite ) \ |
1071 |
- $( use_with solr ) \ |
1072 |
- $( use_with tcpd libwrap ) \ |
1073 |
- $( use_with textcat ) \ |
1074 |
- $( use_with vpopmail ) \ |
1075 |
- $( use_with zlib ) \ |
1076 |
- $( use_enable static-libs static ) \ |
1077 |
- ${conf} |
1078 |
- |
1079 |
- if use sieve || use managesieve ; then |
1080 |
- # The sieve plugin needs this file to be build to determine the plugin |
1081 |
- # directory and the list of libraries to link to. |
1082 |
- emake dovecot-config |
1083 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1084 |
- econf \ |
1085 |
- $( use_enable static-libs static ) \ |
1086 |
- --localstatedir="${EPREFIX%/}/var" \ |
1087 |
- --enable-shared \ |
1088 |
- --with-dovecot="${S}" \ |
1089 |
- $( use_with managesieve ) |
1090 |
- fi |
1091 |
-} |
1092 |
- |
1093 |
-src_compile() { |
1094 |
- default |
1095 |
- if use sieve || use managesieve ; then |
1096 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1097 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
1098 |
- fi |
1099 |
-} |
1100 |
- |
1101 |
-src_test() { |
1102 |
- default |
1103 |
- if use sieve || use managesieve ; then |
1104 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1105 |
- default |
1106 |
- fi |
1107 |
-} |
1108 |
- |
1109 |
-src_install () { |
1110 |
- default |
1111 |
- |
1112 |
- # insecure: |
1113 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
1114 |
- # better: |
1115 |
- if use suid;then |
1116 |
- einfo "Changing perms to allow deliver to be suided" |
1117 |
- fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
1118 |
- fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
1119 |
- fi |
1120 |
- |
1121 |
- newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
1122 |
- |
1123 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
1124 |
- |
1125 |
- dodoc AUTHORS NEWS README TODO |
1126 |
- dodoc doc/*.{txt,cnf,xml,sh} |
1127 |
- docinto example-config |
1128 |
- dodoc doc/example-config/*.{conf,ext} |
1129 |
- docinto example-config/conf.d |
1130 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
1131 |
- docinto wiki |
1132 |
- dodoc doc/wiki/* |
1133 |
- doman doc/man/*.{1,7} |
1134 |
- |
1135 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
1136 |
- # the dovecot folks nicely left for us.... |
1137 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
1138 |
- local confd="${ED}/etc/dovecot/conf.d" |
1139 |
- |
1140 |
- insinto /etc/dovecot |
1141 |
- doins doc/example-config/*.{conf,ext} |
1142 |
- insinto /etc/dovecot/conf.d |
1143 |
- doins doc/example-config/conf.d/*.{conf,ext} |
1144 |
- fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
1145 |
- rm -f "${confd}/../README" |
1146 |
- |
1147 |
- # .maildir is the Gentoo default |
1148 |
- local mail_location="maildir:~/.maildir" |
1149 |
- sed -i -e \ |
1150 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
1151 |
- "${confd}/10-mail.conf" \ |
1152 |
- || die "failed to update mail location settings in 10-mail.conf" |
1153 |
- |
1154 |
- # We're using pam files (imap and pop3) provided by mailbase |
1155 |
- if use pam; then |
1156 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
1157 |
- "${confd}/auth-system.conf.ext" \ |
1158 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
1159 |
- # mailbase does not provide a sieve pam file |
1160 |
- use managesieve && dosym imap /etc/pam.d/sieve |
1161 |
- sed -i -e \ |
1162 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
1163 |
- "${confd}/10-auth.conf" \ |
1164 |
- || die "failed to update PAM settings in 10-auth.conf" |
1165 |
- fi |
1166 |
- |
1167 |
- # Disable ipv6 if necessary |
1168 |
- if ! use ipv6; then |
1169 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
1170 |
- || die "failed to update listen settings in dovecot.conf" |
1171 |
- fi |
1172 |
- |
1173 |
- # Update ssl cert locations |
1174 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
1175 |
- || die "ssl conf failed" |
1176 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
1177 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
1178 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
1179 |
- |
1180 |
- # Install SQL configuration |
1181 |
- if use mysql || use postgres; then |
1182 |
- sed -i -e \ |
1183 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
1184 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
1185 |
- 10-auth.conf" |
1186 |
- fi |
1187 |
- |
1188 |
- # Install LDAP configuration |
1189 |
- if use ldap; then |
1190 |
- sed -i -e \ |
1191 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
1192 |
- "${confd}/10-auth.conf" \ |
1193 |
- || die "failed to update ldap settings in 10-auth.conf" |
1194 |
- fi |
1195 |
- |
1196 |
- if use vpopmail; then |
1197 |
- sed -i -e \ |
1198 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
1199 |
- "${confd}/10-auth.conf" \ |
1200 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
1201 |
- fi |
1202 |
- |
1203 |
- if use sieve || use managesieve ; then |
1204 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1205 |
- emake DESTDIR="${ED}" install |
1206 |
- sed -i -e \ |
1207 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
1208 |
- || die "failed to update sieve settings in 15-lda.conf" |
1209 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
1210 |
- docinto example-config/conf.d |
1211 |
- dodoc doc/example-config/conf.d/*.conf |
1212 |
- insinto /etc/dovecot/conf.d |
1213 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
1214 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
1215 |
- docinto sieve/rfc |
1216 |
- dodoc doc/rfc/*.txt |
1217 |
- docinto sieve/devel |
1218 |
- dodoc doc/devel/DESIGN |
1219 |
- docinto plugins |
1220 |
- dodoc doc/plugins/*.txt |
1221 |
- docinto extensions |
1222 |
- dodoc doc/extensions/*.txt |
1223 |
- docinto locations |
1224 |
- dodoc doc/locations/*.txt |
1225 |
- doman doc/man/*.{1,7} |
1226 |
- fi |
1227 |
- |
1228 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
1229 |
-} |
1230 |
- |
1231 |
-pkg_postinst() { |
1232 |
- # Let's not make a new certificate if we already have one |
1233 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
1234 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
1235 |
- einfo "Creating SSL certificate" |
1236 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
1237 |
- install_cert /etc/ssl/dovecot/server |
1238 |
- fi |
1239 |
- |
1240 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
1241 |
-} |
1242 |
|
1243 |
diff --git a/net-mail/dovecot/dovecot-2.3.1.ebuild b/net-mail/dovecot/dovecot-2.3.1.ebuild |
1244 |
deleted file mode 100644 |
1245 |
index 68fb5d8ba4f..00000000000 |
1246 |
--- a/net-mail/dovecot/dovecot-2.3.1.ebuild |
1247 |
+++ /dev/null |
1248 |
@@ -1,284 +0,0 @@ |
1249 |
-# Copyright 1999-2018 Gentoo Foundation |
1250 |
-# Distributed under the terms of the GNU General Public License v2 |
1251 |
- |
1252 |
-EAPI=6 |
1253 |
-# do not add a ssl USE flag. ssl is mandatory |
1254 |
-SSL_DEPS_SKIP=1 |
1255 |
-inherit ssl-cert systemd user versionator |
1256 |
- |
1257 |
-MY_P="${P/_/.}" |
1258 |
-#MY_S="${PN}-ce-${PV}" |
1259 |
-major_minor="$(get_version_component_range 1-2)" |
1260 |
-sieve_version="0.5.1" |
1261 |
-if [[ ${PV} == *_rc* ]] ; then |
1262 |
- rc_dir="rc/" |
1263 |
-else |
1264 |
- rc_dir="" |
1265 |
-fi |
1266 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
1267 |
- sieve? ( |
1268 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
1269 |
- ) |
1270 |
- managesieve? ( |
1271 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
1272 |
- ) " |
1273 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
1274 |
-HOMEPAGE="https://www.dovecot.org/" |
1275 |
- |
1276 |
-SLOT="0" |
1277 |
-LICENSE="LGPL-2.1 MIT" |
1278 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
1279 |
- |
1280 |
-IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail" |
1281 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
1282 |
-IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat" |
1283 |
- |
1284 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
1285 |
- |
1286 |
-DEPEND="argon2? ( dev-libs/libsodium ) |
1287 |
- bzip2? ( app-arch/bzip2 ) |
1288 |
- caps? ( sys-libs/libcap ) |
1289 |
- kerberos? ( virtual/krb5 ) |
1290 |
- ldap? ( net-nds/openldap ) |
1291 |
- lua? ( dev-lang/lua:* ) |
1292 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
1293 |
- lzma? ( app-arch/xz-utils ) |
1294 |
- lz4? ( app-arch/lz4 ) |
1295 |
- mysql? ( virtual/mysql ) |
1296 |
- pam? ( virtual/pam ) |
1297 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
1298 |
- selinux? ( sec-policy/selinux-dovecot ) |
1299 |
- solr? ( net-misc/curl dev-libs/expat ) |
1300 |
- sqlite? ( dev-db/sqlite:* ) |
1301 |
- !libressl? ( dev-libs/openssl:0 ) |
1302 |
- libressl? ( dev-libs/libressl ) |
1303 |
- tcpd? ( sys-apps/tcp-wrappers ) |
1304 |
- textcat? ( app-text/libexttextcat ) |
1305 |
- vpopmail? ( net-mail/vpopmail ) |
1306 |
- zlib? ( sys-libs/zlib ) |
1307 |
- virtual/libiconv |
1308 |
- dev-libs/icu:=" |
1309 |
- |
1310 |
-RDEPEND="${DEPEND} |
1311 |
- net-mail/mailbase" |
1312 |
- |
1313 |
-PATCHES=() |
1314 |
- |
1315 |
-pkg_setup() { |
1316 |
- if use managesieve && ! use sieve; then |
1317 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
1318 |
- ewarn "sieve USE flag will be turned on" |
1319 |
- fi |
1320 |
- # default internal user |
1321 |
- enewgroup dovecot 97 |
1322 |
- enewuser dovecot 97 -1 /dev/null dovecot |
1323 |
- # default login user |
1324 |
- enewuser dovenull -1 -1 /dev/null |
1325 |
- # add "mail" group for suid'ing. Better security isolation. |
1326 |
- if use suid; then |
1327 |
- enewgroup mail |
1328 |
- fi |
1329 |
-} |
1330 |
- |
1331 |
-src_configure() { |
1332 |
- local conf="" |
1333 |
- |
1334 |
- if use postgres || use mysql || use sqlite; then |
1335 |
- conf="${conf} --with-sql" |
1336 |
- fi |
1337 |
- |
1338 |
- # turn valgrind tests off. Bug #340791 |
1339 |
- VALGRIND=no econf \ |
1340 |
- --with-rundir="${EPREFIX}/run/dovecot" \ |
1341 |
- --with-statedir="${EPREFIX}/var/lib/dovecot" \ |
1342 |
- --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \ |
1343 |
- --without-stemmer \ |
1344 |
- --disable-rpath \ |
1345 |
- --without-libbsd \ |
1346 |
- --with-icu \ |
1347 |
- --with-ssl \ |
1348 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
1349 |
- $( use_with argon2 sodium ) \ |
1350 |
- $( use_with bzip2 bzlib ) \ |
1351 |
- $( use_with caps libcap ) \ |
1352 |
- $( use_with kerberos gssapi ) \ |
1353 |
- $( use_with lua ) \ |
1354 |
- $( use_with ldap ) \ |
1355 |
- $( use_with lucene ) \ |
1356 |
- $( use_with lz4 ) \ |
1357 |
- $( use_with lzma ) \ |
1358 |
- $( use_with mysql ) \ |
1359 |
- $( use_with pam ) \ |
1360 |
- $( use_with postgres pgsql ) \ |
1361 |
- $( use_with sqlite ) \ |
1362 |
- $( use_with solr ) \ |
1363 |
- $( use_with tcpd libwrap ) \ |
1364 |
- $( use_with textcat ) \ |
1365 |
- $( use_with vpopmail ) \ |
1366 |
- $( use_with zlib ) \ |
1367 |
- $( use_enable static-libs static ) \ |
1368 |
- ${conf} |
1369 |
- |
1370 |
- if use sieve || use managesieve ; then |
1371 |
- # The sieve plugin needs this file to be build to determine the plugin |
1372 |
- # directory and the list of libraries to link to. |
1373 |
- emake dovecot-config |
1374 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1375 |
- econf \ |
1376 |
- $( use_enable static-libs static ) \ |
1377 |
- --localstatedir="${EPREFIX%/}/var" \ |
1378 |
- --enable-shared \ |
1379 |
- --with-dovecot="${S}" \ |
1380 |
- $( use_with managesieve ) |
1381 |
- fi |
1382 |
-} |
1383 |
- |
1384 |
-src_compile() { |
1385 |
- default |
1386 |
- if use sieve || use managesieve ; then |
1387 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1388 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
1389 |
- fi |
1390 |
-} |
1391 |
- |
1392 |
-src_test() { |
1393 |
- default |
1394 |
- if use sieve || use managesieve ; then |
1395 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1396 |
- default |
1397 |
- fi |
1398 |
-} |
1399 |
- |
1400 |
-src_install () { |
1401 |
- default |
1402 |
- |
1403 |
- # insecure: |
1404 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
1405 |
- # better: |
1406 |
- if use suid;then |
1407 |
- einfo "Changing perms to allow deliver to be suided" |
1408 |
- fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
1409 |
- fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda" |
1410 |
- fi |
1411 |
- |
1412 |
- newinitd "${FILESDIR}"/dovecot.init-r4 dovecot |
1413 |
- |
1414 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
1415 |
- |
1416 |
- dodoc AUTHORS NEWS README TODO |
1417 |
- dodoc doc/*.{txt,cnf,xml,sh} |
1418 |
- docinto example-config |
1419 |
- dodoc doc/example-config/*.{conf,ext} |
1420 |
- docinto example-config/conf.d |
1421 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
1422 |
- docinto wiki |
1423 |
- dodoc doc/wiki/* |
1424 |
- doman doc/man/*.{1,7} |
1425 |
- |
1426 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
1427 |
- # the dovecot folks nicely left for us.... |
1428 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
1429 |
- local confd="${ED}/etc/dovecot/conf.d" |
1430 |
- |
1431 |
- insinto /etc/dovecot |
1432 |
- doins doc/example-config/*.{conf,ext} |
1433 |
- insinto /etc/dovecot/conf.d |
1434 |
- doins doc/example-config/conf.d/*.{conf,ext} |
1435 |
- fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext |
1436 |
- rm -f "${confd}/../README" |
1437 |
- |
1438 |
- # .maildir is the Gentoo default |
1439 |
- local mail_location="maildir:~/.maildir" |
1440 |
- sed -i -e \ |
1441 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
1442 |
- "${confd}/10-mail.conf" \ |
1443 |
- || die "failed to update mail location settings in 10-mail.conf" |
1444 |
- |
1445 |
- # We're using pam files (imap and pop3) provided by mailbase |
1446 |
- if use pam; then |
1447 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
1448 |
- "${confd}/auth-system.conf.ext" \ |
1449 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
1450 |
- # mailbase does not provide a sieve pam file |
1451 |
- use managesieve && dosym imap /etc/pam.d/sieve |
1452 |
- sed -i -e \ |
1453 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
1454 |
- "${confd}/10-auth.conf" \ |
1455 |
- || die "failed to update PAM settings in 10-auth.conf" |
1456 |
- fi |
1457 |
- |
1458 |
- # Disable ipv6 if necessary |
1459 |
- if ! use ipv6; then |
1460 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
1461 |
- || die "failed to update listen settings in dovecot.conf" |
1462 |
- fi |
1463 |
- |
1464 |
- # Update ssl cert locations |
1465 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
1466 |
- || die "ssl conf failed" |
1467 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
1468 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
1469 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
1470 |
- |
1471 |
- # Install SQL configuration |
1472 |
- if use mysql || use postgres; then |
1473 |
- sed -i -e \ |
1474 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
1475 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
1476 |
- 10-auth.conf" |
1477 |
- fi |
1478 |
- |
1479 |
- # Install LDAP configuration |
1480 |
- if use ldap; then |
1481 |
- sed -i -e \ |
1482 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
1483 |
- "${confd}/10-auth.conf" \ |
1484 |
- || die "failed to update ldap settings in 10-auth.conf" |
1485 |
- fi |
1486 |
- |
1487 |
- if use vpopmail; then |
1488 |
- sed -i -e \ |
1489 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
1490 |
- "${confd}/10-auth.conf" \ |
1491 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
1492 |
- fi |
1493 |
- |
1494 |
- if use sieve || use managesieve ; then |
1495 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
1496 |
- emake DESTDIR="${ED}" install |
1497 |
- sed -i -e \ |
1498 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
1499 |
- || die "failed to update sieve settings in 15-lda.conf" |
1500 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
1501 |
- docinto example-config/conf.d |
1502 |
- dodoc doc/example-config/conf.d/*.conf |
1503 |
- insinto /etc/dovecot/conf.d |
1504 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
1505 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
1506 |
- docinto sieve/rfc |
1507 |
- dodoc doc/rfc/*.txt |
1508 |
- docinto sieve/devel |
1509 |
- dodoc doc/devel/DESIGN |
1510 |
- docinto plugins |
1511 |
- dodoc doc/plugins/*.txt |
1512 |
- docinto extensions |
1513 |
- dodoc doc/extensions/*.txt |
1514 |
- docinto locations |
1515 |
- dodoc doc/locations/*.txt |
1516 |
- doman doc/man/*.{1,7} |
1517 |
- fi |
1518 |
- |
1519 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
1520 |
-} |
1521 |
- |
1522 |
-pkg_postinst() { |
1523 |
- # Let's not make a new certificate if we already have one |
1524 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
1525 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
1526 |
- einfo "Creating SSL certificate" |
1527 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
1528 |
- install_cert /etc/ssl/dovecot/server |
1529 |
- fi |
1530 |
- |
1531 |
- elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
1532 |
-} |