Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/mutt/
Date: Wed, 31 Oct 2018 09:01:16
Message-Id: 1540976225.168b6360ba1239eac10847d1adce53af9ed17057.grobian@gentoo
1 commit: 168b6360ba1239eac10847d1adce53af9ed17057
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 31 08:57:05 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 31 08:57:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=168b6360
7
8 mail-client/mutt: cleanup vulnerable versions, bug #661436
9
10 Bug: https://bugs.gentoo.org/661436
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12 Package-Manager: Portage-2.3.49, Repoman-2.3.11
13
14 mail-client/mutt/Manifest | 6 -
15 mail-client/mutt/metadata.xml | 1 -
16 mail-client/mutt/mutt-1.7.2.ebuild | 274 ---------------------------------
17 mail-client/mutt/mutt-1.9.4-r1.ebuild | 282 ----------------------------------
18 mail-client/mutt/mutt-1.9.5.ebuild | 282 ----------------------------------
19 5 files changed, 845 deletions(-)
20
21 diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest
22 index bbe31a8f1e7..23346c10d91 100644
23 --- a/mail-client/mutt/Manifest
24 +++ b/mail-client/mutt/Manifest
25 @@ -1,9 +1,3 @@
26 DIST mutt-1.10.1.tar.gz 4255890 BLAKE2B 2a0e7629c42ba11ec5c3686d9c17e283ed9cb1f9874decec9453cf01ae0780c7993ac0104db7987571f27c04e408c1eff47d3b73918eb9754c253b6249ad48f4 SHA512 13509ff159c65e23614696967b4bd8baf7b8e16c0e85cfd89e2df8201de2dc97e6c4a426f5919f05051dee2b14f847c7203e0b236931d3cdf81dbbb221551726
27 -DIST mutt-1.7.2.tar.gz 4025880 BLAKE2B ab0430ffb10d03e3e904d54540db6c0aecb4590daa8a1d1add710a9e485b2e7e80f707e6649ff0674d53d3578eb75e4ed5c39f1036b3fa43c00bb5c4f2d15cc5 SHA512 5f13cbdf802bca80668b2f54bc66201d01bfe34c7f377b1bad88f8fa0e0c695264ff0bf6b64ae9bb6f5a3e22b6f096d2dd99fa36724937609f6f46e6a74da74e
28 -DIST mutt-1.9.4.tar.gz 4197655 BLAKE2B b34224622f590f2cb528644c636e6f5ddc39215f8e0b348c2444cfb8563636ceff52e5a0981e8279bb2d6e48814493ffdbb1122ba6d3e78a9904e8cc2e407398 SHA512 b8266af8b487f5be238d03f717ddd69b3dc2eeb4e3ada2c2651c9ad7e0558b92f2c256361a4f688cf80c500c490d47c0e3ef5972bdf1208693da7868a58aca6b
29 -DIST mutt-1.9.5.tar.gz 4207937 BLAKE2B 0ea5473995e48bbe957506a1e66eb4be234ab9b79c94aee53dbe261baf4b396096648448662ecc17a926ab16369505beda3dd93d2df35397d445d542f53be663 SHA512 08ceeb7b212f74e4e2b18fedfe15c5ac46a22449f4e75038485748a742727ad6a2d00c1cfee99e1e195e720d83a6320ae38a3f4f94cd92667f22270f3cf6637b
30 DIST mutt-gentoo-1.10.1-patches-r0.tar.xz 108396 BLAKE2B 86edca04154f96efce27543326f8610dffba0085c7d69e82a7ac5f48ae9cd6662bcf6afa0e55b3d83ec054ee2eb86dff70b0c15a5170f41cc57887e17a661406 SHA512 1e0675803abc2bc116ef6e726f5009c43b0fb7bbf9bd3141a7cbbded51033695ddcc5228612f228cd19dae4181719e756a85e3fa2c8c9a9a4a9aefb4170bd5f5
31 DIST mutt-gentoo-1.10.1-patches-r1.tar.xz 108416 BLAKE2B 22383f7d2f4ad405d6e691104d925b9547897f5bd730b5c573e8ac2d6902b0efa70432db077539122baff8d542964caa6204e6f09c235fe3454c30cf2a72af85 SHA512 ae23ddf13508ab565f6023544add7e2f8cf3d6b2e1cc64aa66f8b38fdabb2c1e3ca17c9b65ffab795428568c1d8eaf088f5dc823d377a9de4773c29bce228a33
32 -DIST mutt-gentoo-1.7.2-patches-r1.tar.xz 143816 BLAKE2B ecc845983dc00e388c25ced0ca0c253d9fdfa813e9df6a4f166f4ccbb05cc26b5522fa84ccdfd1f92d5cce7291ac3d70ddefaeac3e13dafc892f924236a62f11 SHA512 21703bc808ae510e26ede38e1dda5d7c74cad15823154584a83209e9dbf68bf6350961e66729cf2ede78bde003f3b92567d42f9f8f89ed53643dcfa536625b7e
33 -DIST mutt-gentoo-1.9.4-patches-r1.tar.xz 114212 BLAKE2B bb14bb8ce8c2088dd32d6528f60e666d213aa557ce3f830f8ccf6e9199ea2083ea8b6605bee7aba6e96a40d127c076a581de656eabc257a00aa584fba6263fbd SHA512 c011c24767ad8b4a096a91c8531f923057e98e4439f0d0e00e70d761b434fec8c8bb1394e765b3f1be16212df76f99abdaa4f3347299c88f4c73e9b6d13525e3
34 -DIST mutt-gentoo-1.9.5-patches-r0.tar.xz 113924 BLAKE2B d04ef58a310b913eef783814d608dc495d449baf8efcc43ab3203ef9fc136d26afcfa9261e8ba74d20a9abaa8f672a93aadd7e197478fecb970745a8cc610f65 SHA512 3740c66cffa356501538b16be51575391146c8bb2d0a04fa1f391e781fae52d8fc97d096a543fff3237da83c83b7c219319c7902a91af1d89d3515d5debc3a5f
35
36 diff --git a/mail-client/mutt/metadata.xml b/mail-client/mutt/metadata.xml
37 index f4506027293..d3151fec669 100644
38 --- a/mail-client/mutt/metadata.xml
39 +++ b/mail-client/mutt/metadata.xml
40 @@ -19,7 +19,6 @@
41 header caching</flag>
42 <flag name="notmuch">Enable support for <pkg>net-mail/notmuch</pkg></flag>
43 <flag name="pop">Enable support for POP3 mailboxes</flag>
44 - <flag name="sidebar">Enable the sidebar feature</flag>
45 <flag name="smtp">Enable support for direct SMTP delivery</flag>
46 <flag name="tokyocabinet">Enable <pkg>dev-db/tokyocabinet</pkg>
47 database backend for header caching</flag>
48
49 diff --git a/mail-client/mutt/mutt-1.7.2.ebuild b/mail-client/mutt/mutt-1.7.2.ebuild
50 deleted file mode 100644
51 index fd2e6074ae2..00000000000
52 --- a/mail-client/mutt/mutt-1.7.2.ebuild
53 +++ /dev/null
54 @@ -1,274 +0,0 @@
55 -# Copyright 1999-2018 Gentoo Foundation
56 -# Distributed under the terms of the GNU General Public License v2
57 -
58 -EAPI="6"
59 -
60 -inherit eutils flag-o-matic autotools
61 -
62 -PATCHREV="r1"
63 -PATCHSET="gentoo-${PVR}/${PATCHREV}"
64 -
65 -DESCRIPTION="A small but very powerful text-based mail client"
66 -HOMEPAGE="http://www.mutt.org/"
67 -MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz"
68 -SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz
69 - https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz
70 - https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}"
71 -IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos libressl mbox nls nntp notmuch pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet vanilla"
72 -SLOT="0"
73 -LICENSE="GPL-2"
74 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
75 -CDEPEND="
76 - app-misc/mime-types
77 - nls? ( virtual/libintl )
78 - tokyocabinet? ( dev-db/tokyocabinet )
79 - !tokyocabinet? (
80 - qdbm? ( dev-db/qdbm )
81 - !qdbm? (
82 - gdbm? ( sys-libs/gdbm )
83 - !gdbm? ( berkdb? ( >=sys-libs/db-4:= ) )
84 - )
85 - )
86 - imap? (
87 - gnutls? ( >=net-libs/gnutls-1.0.17:= )
88 - !gnutls? (
89 - ssl? (
90 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
91 - libressl? ( dev-libs/libressl:= )
92 - )
93 - )
94 - sasl? ( >=dev-libs/cyrus-sasl-2 )
95 - )
96 - kerberos? ( virtual/krb5 )
97 - pop? (
98 - gnutls? ( >=net-libs/gnutls-1.0.17:= )
99 - !gnutls? (
100 - ssl? (
101 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
102 - libressl? ( dev-libs/libressl:= )
103 - )
104 - )
105 - sasl? ( >=dev-libs/cyrus-sasl-2 )
106 - )
107 - smtp? (
108 - gnutls? ( >=net-libs/gnutls-1.0.17:= )
109 - !gnutls? (
110 - ssl? (
111 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
112 - libressl? ( dev-libs/libressl:= )
113 - )
114 - )
115 - sasl? ( >=dev-libs/cyrus-sasl-2 )
116 - )
117 - idn? ( net-dns/libidn )
118 - gpg? ( >=app-crypt/gpgme-0.9.0:= )
119 - smime? (
120 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
121 - libressl? ( dev-libs/libressl:= )
122 - )
123 - notmuch? ( net-mail/notmuch:= )
124 - slang? ( sys-libs/slang )
125 - !slang? ( >=sys-libs/ncurses-5.2:0= )
126 -"
127 -DEPEND="${CDEPEND}
128 - net-mail/mailbase
129 - doc? (
130 - dev-libs/libxml2
131 - dev-libs/libxslt
132 - app-text/docbook-xsl-stylesheets
133 - || ( www-client/lynx www-client/w3m www-client/elinks )
134 - )"
135 -RDEPEND="${CDEPEND}
136 - selinux? ( sec-policy/selinux-mutt )
137 -"
138 -
139 -src_prepare() {
140 - local PATCHDIR="${WORKDIR}"/gentoo-mutt-${PV}-patches
141 -
142 - if use !vanilla ; then
143 - # apply patches
144 - export EPATCH_FORCE="yes"
145 - export EPATCH_SUFFIX="patch"
146 - local patches=(
147 - patches-mutt
148 - bugs-gentoo
149 - features-common
150 - features-extra
151 - gentoo
152 - )
153 - local patchset
154 - for patchset in "${patches[@]}" ; do
155 - einfo "Applying ${PATCHSET} patchset ${patchset}"
156 - EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \
157 - || die "patchset ${patchset} failed"
158 - done
159 - # add some explanation as to why not to go upstream
160 - sed -i \
161 - -e '/ReachingUs = N_(/aThis release of Mutt is heavily enriched with patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor re-emerge with USE=vanilla and try to reproduce your problem.\\n\\' \
162 - main.c || die "Failed to add bug instructions"
163 - fi
164 -
165 - local upatches=
166 - # allow user patches
167 - eapply_user && upatches=" with user patches"
168 -
169 - # patch version string for bug reports
170 - local patchset=
171 - use vanilla || patchset=", ${PATCHSET}"
172 - sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \
173 - muttlib.c || die "failed patching in Gentoo version"
174 -
175 - # many patches touch the buildsystem, we always need this
176 - AT_M4DIR="m4" eautoreconf
177 -
178 - # the configure script contains some "cleverness" whether or not to setgid
179 - # the dotlock program, resulting in bugs like #278332
180 - sed -i -e 's/@DOTLOCK_GROUP@//' \
181 - Makefile.in || die "sed failed"
182 -}
183 -
184 -src_configure() {
185 - local myconf=(
186 - "$(use_enable crypt pgp)"
187 - "$(use_enable debug)"
188 - "$(use_enable doc)"
189 - "$(use_enable gpg gpgme)"
190 - "$(use_enable imap)"
191 - "$(use_enable nls)"
192 - "$(use_enable nntp)"
193 - "$(use_enable pop)"
194 - "$(use_enable sidebar)"
195 - "$(use_enable smime)"
196 - "$(use_enable smtp)"
197 - "$(use_enable notmuch)"
198 - "$(use_with idn)"
199 - "$(use_with kerberos gss)"
200 - "--with-$(use slang && echo slang || echo curses)=${EPREFIX}/usr"
201 - "--enable-compressed"
202 - "--enable-external-dotlock"
203 - "--enable-nfs-fix"
204 - "--sysconfdir=${EPREFIX}/etc/${PN}"
205 - "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}"
206 - "--with-regex"
207 - "--with-exec-shell=${EPREFIX}/bin/sh"
208 - )
209 -
210 - if [[ ${CHOST} == *-solaris* ]] ; then
211 - # arrows in index view do not show when using wchar_t
212 - myconf+=( "--without-wc-funcs" )
213 - fi
214 -
215 - # mutt prioritizes gdbm over bdb, so we will too.
216 - # hcache feature requires at least one database is in USE.
217 - local hcaches=(
218 - "tokyocabinet"
219 - "qdbm"
220 - "gdbm"
221 - "berkdb:bdb"
222 - )
223 - local ucache hcache lcache
224 - for hcache in "${hcaches[@]}" ; do
225 - if use ${hcache%%:*} ; then
226 - ucache=${hcache}
227 - break
228 - fi
229 - done
230 - if [[ -n ${ucache} ]] ; then
231 - myconf+=( "--enable-hcache" )
232 - else
233 - myconf+=( "--disable-hcache" )
234 - fi
235 - for hcache in "${hcaches[@]}" ; do
236 - [[ ${hcache} == ${ucache} ]] \
237 - && myconf+=( "--with-${hcache#*:}" ) \
238 - || myconf+=( "--without-${hcache#*:}" )
239 - done
240 -
241 - # there's no need for gnutls, ssl or sasl without socket support
242 - if use pop || use imap || use smtp ; then
243 - if use gnutls; then
244 - myconf+=( "--with-gnutls" )
245 - elif use ssl; then
246 - myconf+=( "--with-ssl" )
247 - fi
248 - # not sure if this should be mutually exclusive with the other two
249 - myconf+=( "$(use_with sasl)" )
250 - else
251 - myconf+=(
252 - "--without-gnutls"
253 - "--without-ssl"
254 - "--without-sasl"
255 - )
256 - fi
257 -
258 - if use mbox; then
259 - myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" )
260 - else
261 - myconf+=( "--with-homespool=Maildir" )
262 - fi
263 -
264 - econf "${myconf[@]}" || die "configure failed"
265 -}
266 -
267 -src_install() {
268 - emake DESTDIR="${D}" install || die "install failed"
269 - if use mbox; then
270 - insinto /etc/mutt
271 - newins "${FILESDIR}"/Muttrc.mbox Muttrc
272 - else
273 - insinto /etc/mutt
274 - doins "${FILESDIR}"/Muttrc
275 - fi
276 -
277 - # A newer file is provided by app-misc/mime-types. So we link it.
278 - rm "${ED}"/etc/${PN}/mime.types
279 - dosym /etc/mime.types /etc/${PN}/mime.types
280 -
281 - # A man-page is always handy, so fake one
282 - if use !doc; then
283 - emake -C doc DESTDIR="${D}" muttrc.man || die
284 - # make the fake slightly better, bug #413405
285 - sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
286 - -e 's#in @docdir@,#at http://www.mutt.org/,#' \
287 - -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \
288 - -e "s#@bindir@#${EPREFIX}/usr/bin#" \
289 - doc/mutt.man > mutt.1
290 - cp doc/muttbug.man flea.1
291 - cp doc/muttrc.man muttrc.5
292 - doman mutt.1 flea.1 muttrc.5
293 - else
294 - # nuke manpages that should be provided by an MTA, bug #177605
295 - rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
296 - || ewarn "failed to remove files, please file a bug"
297 - fi
298 -
299 - if use !prefix ; then
300 - fowners root:mail /usr/bin/mutt_dotlock
301 - fperms g+s /usr/bin/mutt_dotlock
302 - fi
303 -
304 - dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
305 -}
306 -
307 -pkg_postinst() {
308 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
309 - echo
310 - elog "If you are new to mutt you may want to take a look at"
311 - elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
312 - elog " https://wiki.gentoo.org/wiki/Mutt"
313 - echo
314 - else
315 - local ver
316 - local preconddate=
317 - for ver in ${REPLACING_VERSIONS} ; do
318 - [[ ${ver} == "1.5"* || ${ver} == "1.6"* ]] && preconddate=true
319 - done
320 - if [[ -n ${preconddate} ]] ; then
321 - echo
322 - elog "The SmartTime functionality has been replaced with"
323 - elog "CondDate feature. To mimic SmartTime, use this CondDate formatter:"
324 - elog "%<[12m?%<[7d?%<[12H?%[%H:%M ]&%[%a-%d]>&%[%d-%b]>&%[%b-%y]>"
325 - echo
326 - fi
327 - fi
328 -}
329
330 diff --git a/mail-client/mutt/mutt-1.9.4-r1.ebuild b/mail-client/mutt/mutt-1.9.4-r1.ebuild
331 deleted file mode 100644
332 index 54254b5b37a..00000000000
333 --- a/mail-client/mutt/mutt-1.9.4-r1.ebuild
334 +++ /dev/null
335 @@ -1,282 +0,0 @@
336 -# Copyright 1999-2018 Gentoo Foundation
337 -# Distributed under the terms of the GNU General Public License v2
338 -
339 -EAPI="6"
340 -
341 -inherit eutils flag-o-matic autotools
342 -
343 -PATCHREV="r1"
344 -PATCHSET="gentoo-${PVR}/${PATCHREV}"
345 -
346 -DESCRIPTION="A small but very powerful text-based mail client"
347 -HOMEPAGE="http://www.mutt.org/"
348 -MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz"
349 -SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz
350 - https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz
351 - https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}"
352 -IUSE="berkdb crypt debug doc gdbm gnutls gpg gpgme +hcache idn +imap kerberos libressl +lmdb mbox nls nntp notmuch pgp_classic pop qdbm +sasl selinux slang smime smime_classic +smtp +ssl tokyocabinet vanilla prefix"
353 -# hcache: allow multiple, bug #607360
354 -REQUIRED_USE="
355 - hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) )
356 - imap? ( ssl )
357 - pop? ( ssl )
358 - nntp? ( ssl )
359 - smime? ( ssl !gnutls )
360 - smime_classic? ( ssl !gnutls )
361 - smtp? ( ssl )
362 - sasl? ( || ( imap pop smtp nntp ) )
363 - kerberos? ( || ( imap pop smtp nntp ) )"
364 -SLOT="0"
365 -LICENSE="GPL-2"
366 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
367 -# yes, we overdepend on the backend impls here, hopefully one day we can
368 -# have REQUIRED_USE do what it is made for again. bug #607360
369 -CDEPEND="
370 - app-misc/mime-types
371 -
372 - berkdb? ( >=sys-libs/db-4:= )
373 - gdbm? ( sys-libs/gdbm )
374 - lmdb? ( dev-db/lmdb:= )
375 - qdbm? ( dev-db/qdbm )
376 - tokyocabinet? ( dev-db/tokyocabinet )
377 -
378 - ssl? (
379 - gnutls? ( >=net-libs/gnutls-1.0.17:= )
380 - !gnutls? (
381 - libressl? ( dev-libs/libressl:= )
382 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
383 - )
384 - )
385 -
386 - nls? ( virtual/libintl )
387 - sasl? ( >=dev-libs/cyrus-sasl-2 )
388 - kerberos? ( virtual/krb5 )
389 - idn? ( net-dns/libidn )
390 - gpg? ( >=app-crypt/gpgme-0.9.0:= )
391 - gpgme? ( >=app-crypt/gpgme-0.9.0:= )
392 - notmuch? ( net-mail/notmuch:= )
393 - slang? ( sys-libs/slang )
394 - !slang? ( >=sys-libs/ncurses-5.2:0= )
395 -"
396 -DEPEND="${CDEPEND}
397 - net-mail/mailbase
398 - doc? (
399 - dev-libs/libxml2
400 - dev-libs/libxslt
401 - app-text/docbook-xsl-stylesheets
402 - || ( www-client/lynx www-client/w3m www-client/elinks )
403 - )"
404 -RDEPEND="${CDEPEND}
405 - selinux? ( sec-policy/selinux-mutt )
406 - smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) )
407 - smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) )
408 - crypt? ( app-crypt/gnupg )
409 - pgp_classic? ( app-crypt/gnupg )
410 -"
411 -
412 -src_prepare() {
413 - local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches
414 -
415 - if use !vanilla ; then
416 - # apply patches
417 - export EPATCH_FORCE="yes"
418 - export EPATCH_SUFFIX="patch"
419 - # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.9
420 - local patches=(
421 - patches-mutt
422 - bugs-gentoo
423 - features-common
424 - features-extra
425 - gentoo
426 - )
427 - local patchset
428 - for patchset in "${patches[@]}" ; do
429 - [[ -d "${PATCHDIR}/${patchset}" ]] || continue
430 - einfo "Patches for ${PATCHSET} patchset ${patchset}"
431 - EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \
432 - || die "patchset ${patchset} failed"
433 - done
434 - # add some explanation as to why not to go upstream
435 - sed -i \
436 - -e '/ReachingUs = N_(/aThis release of Mutt is heavily enriched with patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor re-emerge with USE=vanilla and try to reproduce your problem.\\n\\' \
437 - main.c || die "Failed to add bug instructions"
438 - fi
439 -
440 - local upatches=
441 - # allow user patches
442 - eapply_user && upatches=" with user patches"
443 -
444 - # patch version string for bug reports
445 - local patchset=
446 - use vanilla || patchset=", ${PATCHSET}"
447 - sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \
448 - muttlib.c || die "failed patching in Gentoo version"
449 -
450 - # many patches touch the buildsystem, we always need this
451 - AT_M4DIR="m4" eautoreconf
452 -
453 - # the configure script contains some "cleverness" whether or not to setgid
454 - # the dotlock program, resulting in bugs like #278332
455 - sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed"
456 -}
457 -
458 -src_configure() {
459 - local myconf=(
460 - # signing and encryption
461 - # clumpsy blocks for transition period of USE-flag renames
462 - $(use crypt && use_enable crypt pgp)
463 - $(use pgp_classic && use_enable pgp_classic pgp)
464 - $(use !crypt && use !pgp_classic && echo "--disable-pgp")
465 -
466 - $(use smime && use_enable smime)
467 - $(use smime_classic && use_enable smime_classic smime)
468 - $(use !smime && use !smime_classic && echo "--disable-smime")
469 -
470 - $(use gpg && use_enable gpg gpgme)
471 - $(use gpgme && use_enable gpgme)
472 - $(use !gpg && use !gpgme && echo "--disable-gpgme")
473 -
474 - # features
475 - $(use_enable debug)
476 - $(use_enable doc)
477 - $(use_enable nls)
478 - $(use_enable notmuch)
479 -
480 - # protocols
481 - $(use_enable imap)
482 - $(use_enable pop)
483 - $(use_enable nntp)
484 - $(use_enable smtp)
485 -
486 - $(use ssl && use gnutls && echo --with-gnutls --without-ssl)
487 - $(use ssl && use !gnutls && echo --without-gnutls --with-ssl )
488 - $(use !ssl && echo --without-gnutls --without-ssl)
489 -
490 - $(use_with sasl)
491 - $(use_with idn)
492 - $(use_with kerberos gss)
493 - "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)"
494 - "$(use_with !slang curses "${EPREFIX}"/usr)"
495 -
496 - "--enable-compressed"
497 - "--enable-external-dotlock"
498 - "--enable-nfs-fix"
499 - "--enable-sidebar"
500 - "--sysconfdir=${EPREFIX}/etc/${PN}"
501 - "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}"
502 - "--with-regex"
503 - "--with-exec-shell=${EPREFIX}/bin/sh"
504 - )
505 -
506 - if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then
507 - # arrows in index view do not show when using wchar_t
508 - # or misalign due to wrong computations
509 - myconf+=( "--without-wc-funcs" )
510 - fi
511 -
512 - # note: REQUIRED_USE should have selected only one of these, but for
513 - # bug #607360 we're forced to allow multiple. For that reason, this
514 - # list is ordered to preference, and only the first is taken.
515 - local hcaches=(
516 - "lmdb"
517 - "qdbm"
518 - "tokyocabinet"
519 - "gdbm"
520 - "berkdb:bdb"
521 - )
522 - local ucache hcache lcache
523 - for hcache in "${hcaches[@]}" ; do
524 - if use ${hcache%%:*} ; then
525 - ucache=${hcache}
526 - break
527 - fi
528 - done
529 - if [[ -n ${ucache} ]] ; then
530 - myconf+=( "--enable-hcache" )
531 - else
532 - myconf+=( "--disable-hcache" )
533 - fi
534 - for hcache in "${hcaches[@]}" ; do
535 - [[ ${hcache} == ${ucache} ]] \
536 - && myconf+=( "--with-${hcache#*:}" ) \
537 - || myconf+=( "--without-${hcache#*:}" )
538 - done
539 -
540 - if use mbox; then
541 - myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" )
542 - else
543 - myconf+=( "--with-homespool=Maildir" )
544 - fi
545 -
546 - econf "${myconf[@]}" || die "configure failed"
547 -}
548 -
549 -src_install() {
550 - emake DESTDIR="${D}" install || die "install failed"
551 - if use mbox; then
552 - insinto /etc/mutt
553 - newins "${FILESDIR}"/Muttrc.mbox Muttrc
554 - else
555 - insinto /etc/mutt
556 - doins "${FILESDIR}"/Muttrc
557 - fi
558 -
559 - # A newer file is provided by app-misc/mime-types. So we link it.
560 - rm "${ED}"/etc/${PN}/mime.types
561 - dosym "${EPREFIX}"/etc/mime.types /etc/${PN}/mime.types
562 -
563 - # A man-page is always handy, so fake one
564 - if use !doc; then
565 - emake -C doc DESTDIR="${D}" muttrc.man || die
566 - # make the fake slightly better, bug #413405
567 - sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
568 - -e 's#in @docdir@,#at http://www.mutt.org/,#' \
569 - -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \
570 - -e "s#@bindir@#${EPREFIX}/usr/bin#" \
571 - doc/mutt.man > mutt.1 || die
572 - cp doc/muttrc.man muttrc.5 || die
573 - doman mutt.1 muttrc.5
574 - else
575 - # nuke manpages that should be provided by an MTA, bug #177605
576 - rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
577 - || ewarn "failed to remove files, please file a bug"
578 - fi
579 -
580 - if use !prefix ; then
581 - fowners root:mail /usr/bin/mutt_dotlock
582 - fperms g+s /usr/bin/mutt_dotlock
583 - fi
584 -
585 - dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
586 -}
587 -
588 -pkg_postinst() {
589 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
590 - echo
591 - elog "If you are new to mutt you may want to take a look at"
592 - elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
593 - elog " https://wiki.gentoo.org/wiki/Mutt"
594 - echo
595 - fi
596 - if use crypt || use gpg || use smime ; then
597 - ewarn "Please note that the crypto related USE-flags of mutt have changed."
598 - ewarn "To remove some unclarity, the following USE-flags are renamed:"
599 - ewarn "(see https://bugs.gentoo.org/637176)"
600 - ewarn " crypt -> pgp_classic"
601 - ewarn " gpg -> gpgme"
602 - ewarn " smime -> smime_classic"
603 - ewarn "The old USE flags still work but their use is deprecated and will"
604 - ewarn "be removed in a future release. Please update your package.use"
605 - if use gpg && ( use crypt || use smime ) ; then
606 - ewarn " Note that gpgme (old gpg) includes both pgp and smime"
607 - ewarn " support. You can probably remove pgp_classic (old crypt)"
608 - ewarn " and smime_classic (old smime) from your USE-flags and"
609 - ewarn " only enable gpgme."
610 - fi
611 - fi
612 - if use gpgme ; then
613 - ewarn "Note: in order for Mutt to actually use the gpgme backend"
614 - ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc"
615 - ewarn " https://dev.mutt.org/doc/manual.html#crypt-use-gpgme"
616 - fi
617 -}
618
619 diff --git a/mail-client/mutt/mutt-1.9.5.ebuild b/mail-client/mutt/mutt-1.9.5.ebuild
620 deleted file mode 100644
621 index e6530450509..00000000000
622 --- a/mail-client/mutt/mutt-1.9.5.ebuild
623 +++ /dev/null
624 @@ -1,282 +0,0 @@
625 -# Copyright 1999-2018 Gentoo Foundation
626 -# Distributed under the terms of the GNU General Public License v2
627 -
628 -EAPI="6"
629 -
630 -inherit eutils flag-o-matic autotools
631 -
632 -PATCHREV="r0"
633 -PATCHSET="gentoo-${PVR}/${PATCHREV}"
634 -
635 -DESCRIPTION="A small but very powerful text-based mail client"
636 -HOMEPAGE="http://www.mutt.org/"
637 -MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz"
638 -SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz
639 - https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz
640 - https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}"
641 -IUSE="berkdb crypt debug doc gdbm gnutls gpg gpgme +hcache idn +imap kerberos libressl +lmdb mbox nls nntp notmuch pgp_classic pop qdbm +sasl selinux slang smime smime_classic +smtp +ssl tokyocabinet vanilla prefix"
642 -# hcache: allow multiple, bug #607360
643 -REQUIRED_USE="
644 - hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) )
645 - imap? ( ssl )
646 - pop? ( ssl )
647 - nntp? ( ssl )
648 - smime? ( ssl !gnutls )
649 - smime_classic? ( ssl !gnutls )
650 - smtp? ( ssl )
651 - sasl? ( || ( imap pop smtp nntp ) )
652 - kerberos? ( || ( imap pop smtp nntp ) )"
653 -SLOT="0"
654 -LICENSE="GPL-2"
655 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
656 -# yes, we overdepend on the backend impls here, hopefully one day we can
657 -# have REQUIRED_USE do what it is made for again. bug #607360
658 -CDEPEND="
659 - app-misc/mime-types
660 -
661 - berkdb? ( >=sys-libs/db-4:= )
662 - gdbm? ( sys-libs/gdbm )
663 - lmdb? ( dev-db/lmdb:= )
664 - qdbm? ( dev-db/qdbm )
665 - tokyocabinet? ( dev-db/tokyocabinet )
666 -
667 - ssl? (
668 - gnutls? ( >=net-libs/gnutls-1.0.17:= )
669 - !gnutls? (
670 - libressl? ( dev-libs/libressl:= )
671 - !libressl? ( >=dev-libs/openssl-0.9.6:0= )
672 - )
673 - )
674 -
675 - nls? ( virtual/libintl )
676 - sasl? ( >=dev-libs/cyrus-sasl-2 )
677 - kerberos? ( virtual/krb5 )
678 - idn? ( net-dns/libidn )
679 - gpg? ( >=app-crypt/gpgme-0.9.0:= )
680 - gpgme? ( >=app-crypt/gpgme-0.9.0:= )
681 - notmuch? ( net-mail/notmuch:= )
682 - slang? ( sys-libs/slang )
683 - !slang? ( >=sys-libs/ncurses-5.2:0= )
684 -"
685 -DEPEND="${CDEPEND}
686 - net-mail/mailbase
687 - doc? (
688 - dev-libs/libxml2
689 - dev-libs/libxslt
690 - app-text/docbook-xsl-stylesheets
691 - || ( www-client/lynx www-client/w3m www-client/elinks )
692 - )"
693 -RDEPEND="${CDEPEND}
694 - selinux? ( sec-policy/selinux-mutt )
695 - smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) )
696 - smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) )
697 - crypt? ( app-crypt/gnupg )
698 - pgp_classic? ( app-crypt/gnupg )
699 -"
700 -
701 -src_prepare() {
702 - local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV}
703 -
704 - if use !vanilla ; then
705 - # apply patches
706 - export EPATCH_FORCE="yes"
707 - export EPATCH_SUFFIX="patch"
708 - # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.9
709 - local patches=(
710 - patches-mutt
711 - bugs-gentoo
712 - features-common
713 - features-extra
714 - gentoo
715 - )
716 - local patchset
717 - for patchset in "${patches[@]}" ; do
718 - [[ -d "${PATCHDIR}/${patchset}" ]] || continue
719 - einfo "Patches for ${PATCHSET} patchset ${patchset}"
720 - EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \
721 - || die "patchset ${patchset} failed"
722 - done
723 - # add some explanation as to why not to go upstream
724 - sed -i \
725 - -e '/ReachingUs = N_(/aThis release of Mutt is heavily enriched with patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor re-emerge with USE=vanilla and try to reproduce your problem.\\n\\' \
726 - main.c || die "Failed to add bug instructions"
727 - fi
728 -
729 - local upatches=
730 - # allow user patches
731 - eapply_user && upatches=" with user patches"
732 -
733 - # patch version string for bug reports
734 - local patchset=
735 - use vanilla || patchset=", ${PATCHSET}"
736 - sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \
737 - muttlib.c || die "failed patching in Gentoo version"
738 -
739 - # many patches touch the buildsystem, we always need this
740 - AT_M4DIR="m4" eautoreconf
741 -
742 - # the configure script contains some "cleverness" whether or not to setgid
743 - # the dotlock program, resulting in bugs like #278332
744 - sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed"
745 -}
746 -
747 -src_configure() {
748 - local myconf=(
749 - # signing and encryption
750 - # clumpsy blocks for transition period of USE-flag renames
751 - $(use crypt && use_enable crypt pgp)
752 - $(use pgp_classic && use_enable pgp_classic pgp)
753 - $(use !crypt && use !pgp_classic && echo "--disable-pgp")
754 -
755 - $(use smime && use_enable smime)
756 - $(use smime_classic && use_enable smime_classic smime)
757 - $(use !smime && use !smime_classic && echo "--disable-smime")
758 -
759 - $(use gpg && use_enable gpg gpgme)
760 - $(use gpgme && use_enable gpgme)
761 - $(use !gpg && use !gpgme && echo "--disable-gpgme")
762 -
763 - # features
764 - $(use_enable debug)
765 - $(use_enable doc)
766 - $(use_enable nls)
767 - $(use_enable notmuch)
768 -
769 - # protocols
770 - $(use_enable imap)
771 - $(use_enable pop)
772 - $(use_enable nntp)
773 - $(use_enable smtp)
774 -
775 - $(use ssl && use gnutls && echo --with-gnutls --without-ssl)
776 - $(use ssl && use !gnutls && echo --without-gnutls --with-ssl )
777 - $(use !ssl && echo --without-gnutls --without-ssl)
778 -
779 - $(use_with sasl)
780 - $(use_with idn)
781 - $(use_with kerberos gss)
782 - "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)"
783 - "$(use_with !slang curses "${EPREFIX}"/usr)"
784 -
785 - "--enable-compressed"
786 - "--enable-external-dotlock"
787 - "--enable-nfs-fix"
788 - "--enable-sidebar"
789 - "--sysconfdir=${EPREFIX}/etc/${PN}"
790 - "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}"
791 - "--with-regex"
792 - "--with-exec-shell=${EPREFIX}/bin/sh"
793 - )
794 -
795 - if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then
796 - # arrows in index view do not show when using wchar_t
797 - # or misalign due to wrong computations
798 - myconf+=( "--without-wc-funcs" )
799 - fi
800 -
801 - # note: REQUIRED_USE should have selected only one of these, but for
802 - # bug #607360 we're forced to allow multiple. For that reason, this
803 - # list is ordered to preference, and only the first is taken.
804 - local hcaches=(
805 - "lmdb"
806 - "qdbm"
807 - "tokyocabinet"
808 - "gdbm"
809 - "berkdb:bdb"
810 - )
811 - local ucache hcache lcache
812 - for hcache in "${hcaches[@]}" ; do
813 - if use ${hcache%%:*} ; then
814 - ucache=${hcache}
815 - break
816 - fi
817 - done
818 - if [[ -n ${ucache} ]] ; then
819 - myconf+=( "--enable-hcache" )
820 - else
821 - myconf+=( "--disable-hcache" )
822 - fi
823 - for hcache in "${hcaches[@]}" ; do
824 - [[ ${hcache} == ${ucache} ]] \
825 - && myconf+=( "--with-${hcache#*:}" ) \
826 - || myconf+=( "--without-${hcache#*:}" )
827 - done
828 -
829 - if use mbox; then
830 - myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" )
831 - else
832 - myconf+=( "--with-homespool=Maildir" )
833 - fi
834 -
835 - econf "${myconf[@]}" || die "configure failed"
836 -}
837 -
838 -src_install() {
839 - emake DESTDIR="${D}" install || die "install failed"
840 - if use mbox; then
841 - insinto /etc/mutt
842 - newins "${FILESDIR}"/Muttrc.mbox Muttrc
843 - else
844 - insinto /etc/mutt
845 - doins "${FILESDIR}"/Muttrc
846 - fi
847 -
848 - # A newer file is provided by app-misc/mime-types. So we link it.
849 - rm "${ED}"/etc/${PN}/mime.types
850 - dosym "${EPREFIX}"/etc/mime.types /etc/${PN}/mime.types
851 -
852 - # A man-page is always handy, so fake one
853 - if use !doc; then
854 - emake -C doc DESTDIR="${D}" muttrc.man || die
855 - # make the fake slightly better, bug #413405
856 - sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
857 - -e 's#in @docdir@,#at http://www.mutt.org/,#' \
858 - -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \
859 - -e "s#@bindir@#${EPREFIX}/usr/bin#" \
860 - doc/mutt.man > mutt.1 || die
861 - cp doc/muttrc.man muttrc.5 || die
862 - doman mutt.1 muttrc.5
863 - else
864 - # nuke manpages that should be provided by an MTA, bug #177605
865 - rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
866 - || ewarn "failed to remove files, please file a bug"
867 - fi
868 -
869 - if use !prefix ; then
870 - fowners root:mail /usr/bin/mutt_dotlock
871 - fperms g+s /usr/bin/mutt_dotlock
872 - fi
873 -
874 - dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
875 -}
876 -
877 -pkg_postinst() {
878 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
879 - echo
880 - elog "If you are new to mutt you may want to take a look at"
881 - elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
882 - elog " https://wiki.gentoo.org/wiki/Mutt"
883 - echo
884 - fi
885 - if use crypt || use gpg || use smime ; then
886 - ewarn "Please note that the crypto related USE-flags of mutt have changed."
887 - ewarn "To remove some unclarity, the following USE-flags are renamed:"
888 - ewarn "(see https://bugs.gentoo.org/637176)"
889 - ewarn " crypt -> pgp_classic"
890 - ewarn " gpg -> gpgme"
891 - ewarn " smime -> smime_classic"
892 - ewarn "The old USE flags still work but their use is deprecated and will"
893 - ewarn "be removed in a future release. Please update your package.use"
894 - if use gpg && ( use crypt || use smime ) ; then
895 - ewarn " Note that gpgme (old gpg) includes both pgp and smime"
896 - ewarn " support. You can probably remove pgp_classic (old crypt)"
897 - ewarn " and smime_classic (old smime) from your USE-flags and"
898 - ewarn " only enable gpgme."
899 - fi
900 - fi
901 - if use gpgme ; then
902 - ewarn "Note: in order for Mutt to actually use the gpgme backend"
903 - ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc"
904 - ewarn " https://dev.mutt.org/doc/manual.html#crypt-use-gpgme"
905 - fi
906 -}