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