1 |
commit: 9612a4462aaa24aedae6d4c00a0fb118060afac5 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 15 07:33:36 2019 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 15 07:33:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9612a446 |
7 |
|
8 |
net-mail/dovecot: remove vulnerable version |
9 |
|
10 |
Package-Manager: Portage-2.3.81, Repoman-2.3.20 |
11 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
12 |
|
13 |
net-mail/dovecot/Manifest | 1 - |
14 |
net-mail/dovecot/dovecot-2.3.9.ebuild | 286 ---------------------------------- |
15 |
2 files changed, 287 deletions(-) |
16 |
|
17 |
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest |
18 |
index 861f7b11e22..6b2282b0651 100644 |
19 |
--- a/net-mail/dovecot/Manifest |
20 |
+++ b/net-mail/dovecot/Manifest |
21 |
@@ -6,4 +6,3 @@ DIST dovecot-2.3-pigeonhole-0.5.9.tar.gz 1897060 BLAKE2B 73b9abd0a7ea9468f7880fd |
22 |
DIST dovecot-2.3.7.2.tar.gz 7076231 BLAKE2B 2cb93aa594db722489063b490469dfe284b1f997b64c9a699b506ccbd04e8e7c2d503ddc12a2598958dfca88560c19487801a728f386b8fea5f637a75b83812e SHA512 172f7f0edb884259e4c050607510aee67a35c3a20b7dd147e7c8a25a04921c18f7d6b5c85af2c69ae8c4d53791550970e471b033dbfae94253e331053b6a317d |
23 |
DIST dovecot-2.3.8.tar.gz 7136958 BLAKE2B 2769169519f0fd9293178e8d200467bc5be0f362bc6bfb3dcc6cc74ed146ecf66dab7730013704b70f0cc75a87ee5e52994137cd63c7c12c56bddcea37cedd07 SHA512 f62439e2ea77ffb544a7752c07085582c5653c64671cb42dd7a7e5aa69eb87059c677aa1fa071efa1ddd2287ab621e9a264ec115be2aeb2f43ab4c685411eae3 |
24 |
DIST dovecot-2.3.9.2.tar.gz 7182306 BLAKE2B 942718ebdb7c447096895fc4309dea930ff87166f06be3365c6463e2aed95bb2620a5e45a8ce260df647593d9d2cef1d2a3ba3aa0afb397dac81653f9a4fd519 SHA512 36e8270bfa33e2bd6aa89017e65c7d1650c494c79ff297759a4b01c026aebcfdf5b1b542d4357e1f9dc2bb8169ef67064f0699b17ca36d658deb70b4c800b253 |
25 |
-DIST dovecot-2.3.9.tar.gz 7181327 BLAKE2B 1fc3fc8e123fb5f495bcb635b14318c3ad2efbb196055955e6cafcb4fbf80899096424cb9c989badeee9bb49b770fd48ef07fbc59dab3f91a9caa17bbdd7ebe2 SHA512 6f7cfebb0d89709d971a6cd623375805dc018c6d8c4cdaa5f274a5a5b0830c2b135c9cf6c90d0983c70ca76e3def855c501ea32aeb7a67b104cb6676bb9d37db |
26 |
|
27 |
diff --git a/net-mail/dovecot/dovecot-2.3.9.ebuild b/net-mail/dovecot/dovecot-2.3.9.ebuild |
28 |
deleted file mode 100644 |
29 |
index 6a614a62c19..00000000000 |
30 |
--- a/net-mail/dovecot/dovecot-2.3.9.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,286 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-# do not add a ssl USE flag. ssl is mandatory |
39 |
-SSL_DEPS_SKIP=1 |
40 |
-inherit autotools ssl-cert systemd |
41 |
- |
42 |
-MY_P="${P/_/.}" |
43 |
-#MY_S="${PN}-ce-${PV}" |
44 |
-major_minor="$(ver_cut 1-2)" |
45 |
-sieve_version="0.5.9" |
46 |
-if [[ ${PV} == *_rc* ]] ; then |
47 |
- rc_dir="rc/" |
48 |
-else |
49 |
- rc_dir="" |
50 |
-fi |
51 |
-SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz |
52 |
- sieve? ( |
53 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
54 |
- ) |
55 |
- managesieve? ( |
56 |
- https://pigeonhole.dovecot.org/releases/${major_minor}/${rc_dir}${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz |
57 |
- ) " |
58 |
-DESCRIPTION="An IMAP and POP3 server written with security primarily in mind" |
59 |
-HOMEPAGE="https://www.dovecot.org/" |
60 |
- |
61 |
-SLOT="0" |
62 |
-LICENSE="LGPL-2.1 MIT" |
63 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
64 |
- |
65 |
-IUSE_DOVECOT_AUTH="kerberos ldap lua mysql pam postgres sqlite vpopmail" |
66 |
-IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib" |
67 |
-IUSE_DOVECOT_OTHER="argon2 caps doc ipv6 libressl lucene managesieve selinux sieve solr static-libs suid tcpd textcat" |
68 |
- |
69 |
-IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}" |
70 |
- |
71 |
-DEPEND="argon2? ( dev-libs/libsodium ) |
72 |
- bzip2? ( app-arch/bzip2 ) |
73 |
- caps? ( sys-libs/libcap ) |
74 |
- kerberos? ( virtual/krb5 ) |
75 |
- ldap? ( net-nds/openldap ) |
76 |
- lua? ( dev-lang/lua:* ) |
77 |
- lucene? ( >=dev-cpp/clucene-2.3 ) |
78 |
- lzma? ( app-arch/xz-utils ) |
79 |
- lz4? ( app-arch/lz4 ) |
80 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
81 |
- pam? ( sys-libs/pam ) |
82 |
- postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] ) |
83 |
- selinux? ( sec-policy/selinux-dovecot ) |
84 |
- solr? ( net-misc/curl dev-libs/expat ) |
85 |
- sqlite? ( dev-db/sqlite:* ) |
86 |
- !libressl? ( dev-libs/openssl:0= ) |
87 |
- libressl? ( dev-libs/libressl:0= ) |
88 |
- suid? ( acct-group/mail ) |
89 |
- tcpd? ( sys-apps/tcp-wrappers ) |
90 |
- textcat? ( app-text/libexttextcat ) |
91 |
- vpopmail? ( net-mail/vpopmail ) |
92 |
- zlib? ( sys-libs/zlib ) |
93 |
- virtual/libiconv |
94 |
- dev-libs/icu:=" |
95 |
- |
96 |
-RDEPEND="${DEPEND} |
97 |
- acct-group/dovecot |
98 |
- acct-group/dovenull |
99 |
- acct-user/dovecot |
100 |
- acct-user/dovenull |
101 |
- net-mail/mailbase" |
102 |
- |
103 |
-pkg_setup() { |
104 |
- if use managesieve && ! use sieve; then |
105 |
- ewarn "managesieve USE flag selected but sieve USE flag unselected" |
106 |
- ewarn "sieve USE flag will be turned on" |
107 |
- fi |
108 |
-} |
109 |
- |
110 |
-src_prepare() { |
111 |
- default |
112 |
- # bug 657108 |
113 |
- elibtoolize |
114 |
- #eautoreconf |
115 |
-} |
116 |
- |
117 |
-src_configure() { |
118 |
- local conf="" |
119 |
- |
120 |
- if use postgres || use mysql || use sqlite; then |
121 |
- conf="${conf} --with-sql" |
122 |
- fi |
123 |
- |
124 |
- # turn valgrind tests off. Bug #340791 |
125 |
- VALGRIND=no econf \ |
126 |
- --with-rundir="${EPREFIX%/}/run/dovecot" \ |
127 |
- --with-statedir="${EPREFIX%/}/var/lib/dovecot" \ |
128 |
- --with-moduledir="${EPREFIX%/}/usr/$(get_libdir)/dovecot" \ |
129 |
- --without-stemmer \ |
130 |
- --disable-rpath \ |
131 |
- --without-libbsd \ |
132 |
- --with-icu \ |
133 |
- --with-ssl \ |
134 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
135 |
- $( use_with argon2 sodium ) \ |
136 |
- $( use_with bzip2 bzlib ) \ |
137 |
- $( use_with caps libcap ) \ |
138 |
- $( use_with kerberos gssapi ) \ |
139 |
- $( use_with lua ) \ |
140 |
- $( use_with ldap ) \ |
141 |
- $( use_with lucene ) \ |
142 |
- $( use_with lz4 ) \ |
143 |
- $( use_with lzma ) \ |
144 |
- $( use_with mysql ) \ |
145 |
- $( use_with pam ) \ |
146 |
- $( use_with postgres pgsql ) \ |
147 |
- $( use_with sqlite ) \ |
148 |
- $( use_with solr ) \ |
149 |
- $( use_with tcpd libwrap ) \ |
150 |
- $( use_with textcat ) \ |
151 |
- $( use_with vpopmail ) \ |
152 |
- $( use_with zlib ) \ |
153 |
- $( use_enable static-libs static ) \ |
154 |
- ${conf} |
155 |
- |
156 |
- if use sieve || use managesieve ; then |
157 |
- # The sieve plugin needs this file to be build to determine the plugin |
158 |
- # directory and the list of libraries to link to. |
159 |
- emake dovecot-config |
160 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
161 |
- econf \ |
162 |
- $( use_enable static-libs static ) \ |
163 |
- --localstatedir="${EPREFIX%/}/var" \ |
164 |
- --enable-shared \ |
165 |
- --with-dovecot="${S}" \ |
166 |
- $( use_with managesieve ) |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-src_compile() { |
171 |
- default |
172 |
- if use sieve || use managesieve ; then |
173 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
174 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
175 |
- fi |
176 |
-} |
177 |
- |
178 |
-src_test() { |
179 |
- default |
180 |
- if use sieve || use managesieve ; then |
181 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
182 |
- default |
183 |
- fi |
184 |
-} |
185 |
- |
186 |
-src_install () { |
187 |
- default |
188 |
- |
189 |
- # insecure: |
190 |
- # use suid && fperms u+s /usr/libexec/dovecot/deliver |
191 |
- # better: |
192 |
- if use suid;then |
193 |
- einfo "Changing perms to allow deliver to be suided" |
194 |
- fowners root:mail "/usr/libexec/dovecot/dovecot-lda" |
195 |
- fperms 4750 "/usr/libexec/dovecot/dovecot-lda" |
196 |
- fi |
197 |
- |
198 |
- newinitd "${FILESDIR}"/dovecot.init-r6 dovecot |
199 |
- |
200 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
201 |
- |
202 |
- dodoc AUTHORS NEWS README TODO |
203 |
- dodoc doc/*.{txt,cnf,xml,sh} |
204 |
- docinto example-config |
205 |
- dodoc doc/example-config/*.{conf,ext} |
206 |
- docinto example-config/conf.d |
207 |
- dodoc doc/example-config/conf.d/*.{conf,ext} |
208 |
- docinto wiki |
209 |
- dodoc doc/wiki/* |
210 |
- doman doc/man/*.{1,7} |
211 |
- |
212 |
- # Create the dovecot.conf file from the dovecot-example.conf file that |
213 |
- # the dovecot folks nicely left for us.... |
214 |
- local conf="${ED}/etc/dovecot/dovecot.conf" |
215 |
- local confd="${ED}/etc/dovecot/conf.d" |
216 |
- |
217 |
- insinto /etc/dovecot |
218 |
- doins doc/example-config/*.{conf,ext} |
219 |
- insinto /etc/dovecot/conf.d |
220 |
- doins doc/example-config/conf.d/*.{conf,ext} |
221 |
- fperms 0600 /etc/dovecot/dovecot-{ldap,sql}.conf.ext |
222 |
- rm -f "${confd}/../README" |
223 |
- |
224 |
- # .maildir is the Gentoo default |
225 |
- local mail_location="maildir:~/.maildir" |
226 |
- sed -i -e \ |
227 |
- "s|#mail_location =|mail_location = ${mail_location}|" \ |
228 |
- "${confd}/10-mail.conf" \ |
229 |
- || die "failed to update mail location settings in 10-mail.conf" |
230 |
- |
231 |
- # We're using pam files (imap and pop3) provided by mailbase |
232 |
- if use pam; then |
233 |
- sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
234 |
- "${confd}/auth-system.conf.ext" \ |
235 |
- || die "failed to update PAM settings in auth-system.conf.ext" |
236 |
- # mailbase does not provide a sieve pam file |
237 |
- use managesieve && dosym imap /etc/pam.d/sieve |
238 |
- sed -i -e \ |
239 |
- 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \ |
240 |
- "${confd}/10-auth.conf" \ |
241 |
- || die "failed to update PAM settings in 10-auth.conf" |
242 |
- fi |
243 |
- |
244 |
- # Disable ipv6 if necessary |
245 |
- if ! use ipv6; then |
246 |
- sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \ |
247 |
- || die "failed to update listen settings in dovecot.conf" |
248 |
- fi |
249 |
- |
250 |
- # Update ssl cert locations |
251 |
- sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \ |
252 |
- || die "ssl conf failed" |
253 |
- sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \ |
254 |
- -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \ |
255 |
- "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf" |
256 |
- |
257 |
- # Install SQL configuration |
258 |
- if use mysql || use postgres; then |
259 |
- sed -i -e \ |
260 |
- 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \ |
261 |
- "${confd}/10-auth.conf" || die "failed to update SQL settings in \ |
262 |
- 10-auth.conf" |
263 |
- fi |
264 |
- |
265 |
- # Install LDAP configuration |
266 |
- if use ldap; then |
267 |
- sed -i -e \ |
268 |
- 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \ |
269 |
- "${confd}/10-auth.conf" \ |
270 |
- || die "failed to update ldap settings in 10-auth.conf" |
271 |
- fi |
272 |
- |
273 |
- if use vpopmail; then |
274 |
- sed -i -e \ |
275 |
- 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \ |
276 |
- "${confd}/10-auth.conf" \ |
277 |
- || die "failed to update vpopmail settings in 10-auth.conf" |
278 |
- fi |
279 |
- |
280 |
- if use sieve || use managesieve ; then |
281 |
- cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed" |
282 |
- emake DESTDIR="${ED}" install |
283 |
- sed -i -e \ |
284 |
- 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \ |
285 |
- || die "failed to update sieve settings in 15-lda.conf" |
286 |
- rm -rf "${ED}"/usr/share/doc/dovecot |
287 |
- docinto example-config/conf.d |
288 |
- dodoc doc/example-config/conf.d/*.conf |
289 |
- insinto /etc/dovecot/conf.d |
290 |
- doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf |
291 |
- use managesieve && doins doc/example-config/conf.d/20-managesieve.conf |
292 |
- docinto sieve/rfc |
293 |
- dodoc doc/rfc/*.txt |
294 |
- docinto sieve/devel |
295 |
- dodoc doc/devel/DESIGN |
296 |
- docinto plugins |
297 |
- dodoc doc/plugins/*.txt |
298 |
- docinto extensions |
299 |
- dodoc doc/extensions/*.txt |
300 |
- docinto locations |
301 |
- dodoc doc/locations/*.txt |
302 |
- doman doc/man/*.{1,7} |
303 |
- fi |
304 |
- |
305 |
- use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete |
306 |
-} |
307 |
- |
308 |
-pkg_postinst() { |
309 |
- # Let's not make a new certificate if we already have one |
310 |
- if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \ |
311 |
- -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then |
312 |
- einfo "Creating SSL certificate" |
313 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}" |
314 |
- install_cert /etc/ssl/dovecot/server |
315 |
- fi |
316 |
- |
317 |
- elog "Please read https://wiki2.dovecot.org/Upgrading/ for upgrade notes." |
318 |
-} |