1 |
commit: 7222a2e6cc034c69ed7ebf194d5918d71cbb9c5a |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 15:48:08 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 15:49:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7222a2e6 |
7 |
|
8 |
mail-client/mutt: cleanup vulnerable versions |
9 |
|
10 |
Bug: https://bugs.gentoo.org/838379 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
mail-client/mutt/Manifest | 4 - |
14 |
mail-client/mutt/mutt-2.0.7.ebuild | 261 ------------------------------------ |
15 |
mail-client/mutt/mutt-2.2.2.ebuild | 268 ------------------------------------- |
16 |
3 files changed, 533 deletions(-) |
17 |
|
18 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
19 |
index d60e3d0c2992..72e1fa7afd72 100644 |
20 |
--- a/mail-client/mutt/Manifest |
21 |
+++ b/mail-client/mutt/Manifest |
22 |
@@ -1,6 +1,2 @@ |
23 |
-DIST mutt-2.0.7.tar.gz 5299366 BLAKE2B 587679d3580a55084312b4bd26083c85fb1b3d07b4a08ea5e2081f475d37a0e283ecfd647555519fc6deccb4bdfdd46234ede4669a9abc6fc2cde778f76bf656 SHA512 1eb689fb9e6aa3cf0bcd0b696c25477cd04b74d8ec93404df071de6dc051e46bbad88131cdf610eb01df4789984707f3791366ae2fda28de2d2739aeb9d34e30 |
24 |
-DIST mutt-2.2.2.tar.gz 5507066 BLAKE2B dd23e2e75b1656ac0351d10df266432820dd32acd44310e586f8c5deec187648e61c7b9e880bcbbaa09a9d6e8bd67b205f43284a729ae6ff95adb4e2bc15724a SHA512 da236c535a4dd18ed92f4b226a009711098c87cc28bbcf3abcd5f31f3ac074abe830f4f7c98cc8cda738a7a6d9421a088915094b33e53e32e9649ccccefe3481 |
25 |
DIST mutt-2.2.3.tar.gz 5509344 BLAKE2B 57d9d29d009e8dce6b27277aa4df371a4b03e783fb5482dc10db20ffa393db01b1aaeaee49bf8421b048e5bb07eeff31fcc1ef84db982b58c618d396ce11e56e SHA512 47656ee1b741d0d165fde4027fc7278910e39e9d5d0bfc5c52e7e767c3373bd3755833269d256364333fd4502c67490adcd5e4b33f1141f53ad575e9fb1a5131 |
26 |
-DIST mutt-gentoo-2.0.7-patches-r0.tar.xz 26416 BLAKE2B dd03fd2a29f4c2e8681c4413ca430b65beb2036b73fa95430f5f06e7c2948fb4e3256be89d922646731245672cb2900d6b7ce6bda16cb9306d5531064cfaf8a1 SHA512 cb72df8f6fa3436f134f66772f82ba95ebc92462cf145d21e01ad5b277f13294948c1d03c9c6671e58c655776a6112f2af065df79a56a135ab70c28b37e43334 |
27 |
-DIST mutt-gentoo-2.2.2-patches-r0.tar.xz 23160 BLAKE2B 2bc09d2aa67102b382c2466773868ba32f38827e44efc7ee2461fa592607a926547013f6c232ac2d6d0cd7dc07da386a0995c7819273b4c96c28a1a6140248a4 SHA512 3b45957d92a9d3f2c185965d226c137dcbb11eb58e497a4dc5ab49041eba79c7436b8239ceb625e32ef0453b7909d925a6238ec75dfa3f267eea46e86474758a |
28 |
DIST mutt-gentoo-2.2.3-patches-r0.tar.xz 23168 BLAKE2B be7fad2f06b913439df4fb7a223e7305b66195153329956f4be9fdd524ac0de6121ccf9a6dc506b0b68e12759667173379c4e0ff1645c1b9948aaed1f7601033 SHA512 22edcc53a42133093eb163e4cfba2e865aec31ef87c74e35aaad10d9a4543f9d2cf477ac263da11e247eba300eb72a42870a59a8a3a90341691bdb0ee6d44d5f |
29 |
|
30 |
diff --git a/mail-client/mutt/mutt-2.0.7.ebuild b/mail-client/mutt/mutt-2.0.7.ebuild |
31 |
deleted file mode 100644 |
32 |
index 0c29057fb2b1..000000000000 |
33 |
--- a/mail-client/mutt/mutt-2.0.7.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,261 +0,0 @@ |
36 |
-# Copyright 1999-2021 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI="7" |
40 |
- |
41 |
-inherit flag-o-matic autotools |
42 |
- |
43 |
-PATCHREV="r0" |
44 |
-PATCHSET="gentoo-${PVR}/${PATCHREV}" |
45 |
- |
46 |
-DESCRIPTION="A small but very powerful text-based mail client" |
47 |
-HOMEPAGE="http://www.mutt.org/" |
48 |
-MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
49 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
50 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
51 |
- https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
52 |
-IUSE="autocrypt berkdb debug doc gdbm gnutls gpgme +hcache idn +imap kerberos +lmdb mbox nls pgp-classic pop qdbm +sasl selinux slang smime-classic +smtp +ssl tokyocabinet vanilla prefix" |
53 |
-# hcache: allow multiple, bug #607360 |
54 |
-REQUIRED_USE=" |
55 |
- hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
56 |
- imap? ( ssl ) |
57 |
- pop? ( ssl ) |
58 |
- smime-classic? ( ssl !gnutls ) |
59 |
- smtp? ( ssl sasl ) |
60 |
- sasl? ( || ( imap pop smtp ) ) |
61 |
- kerberos? ( || ( imap pop smtp ) ) |
62 |
- autocrypt? ( gpgme )" |
63 |
-SLOT="0" |
64 |
-LICENSE="GPL-2" |
65 |
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
66 |
-# yes, we overdepend on the backend impls here, hopefully one day we can |
67 |
-# have REQUIRED_USE do what it is made for again. bug #607360 |
68 |
-CDEPEND=" |
69 |
- app-misc/mime-types |
70 |
- virtual/libiconv |
71 |
- |
72 |
- berkdb? ( >=sys-libs/db-4:= ) |
73 |
- gdbm? ( sys-libs/gdbm ) |
74 |
- lmdb? ( dev-db/lmdb:= ) |
75 |
- qdbm? ( dev-db/qdbm ) |
76 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
77 |
- |
78 |
- ssl? ( |
79 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
80 |
- !gnutls? ( >=dev-libs/openssl-0.9.6:0= ) |
81 |
- ) |
82 |
- |
83 |
- nls? ( virtual/libintl ) |
84 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
85 |
- kerberos? ( virtual/krb5 ) |
86 |
- idn? ( net-dns/libidn2 ) |
87 |
- gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
88 |
- autocrypt? ( >=dev-db/sqlite-3 ) |
89 |
- slang? ( sys-libs/slang ) |
90 |
- !slang? ( >=sys-libs/ncurses-5.2:0= ) |
91 |
-" |
92 |
-DEPEND="${CDEPEND} |
93 |
- net-mail/mailbase |
94 |
- doc? ( |
95 |
- dev-libs/libxml2 |
96 |
- dev-libs/libxslt |
97 |
- app-text/docbook-xsl-stylesheets |
98 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
99 |
- )" |
100 |
-RDEPEND="${CDEPEND} |
101 |
- selinux? ( sec-policy/selinux-mutt ) |
102 |
- smime-classic? ( >=dev-libs/openssl-0.9.6:0 ) |
103 |
- pgp-classic? ( app-crypt/gnupg ) |
104 |
-" |
105 |
- |
106 |
-src_prepare() { |
107 |
- local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
108 |
- |
109 |
- if use !vanilla ; then |
110 |
- # apply patches |
111 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
112 |
- local patches=( |
113 |
- patches-mutt |
114 |
- bugs-gentoo |
115 |
- features-common |
116 |
- features-extra |
117 |
- gentoo |
118 |
- ) |
119 |
- local patchset p |
120 |
- for patchset in "${patches[@]}" ; do |
121 |
- [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
122 |
- einfo "Patches for ${PATCHSET} patchset ${patchset}" |
123 |
- for p in "${PATCHDIR}/${patchset}"/*.patch ; do |
124 |
- eapply "${p}" || die |
125 |
- done |
126 |
- done |
127 |
- # add some explanation as to why not to go upstream |
128 |
- sed -i \ |
129 |
- -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\\' \ |
130 |
- main.c || die "Failed to add bug instructions" |
131 |
- fi |
132 |
- |
133 |
- local upatches= |
134 |
- # allow user patches |
135 |
- eapply_user && upatches=" with user patches" |
136 |
- |
137 |
- # patch version string for bug reports |
138 |
- local patchset= |
139 |
- use vanilla || patchset=", ${PATCHSET}" |
140 |
- sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
141 |
- muttlib.c || die "failed patching in Gentoo version" |
142 |
- |
143 |
- # many patches touch the buildsystem, we always need this |
144 |
- AT_M4DIR="m4" eautoreconf |
145 |
- |
146 |
- # the configure script contains some "cleverness" whether or not to setgid |
147 |
- # the dotlock program, resulting in bugs like #278332 |
148 |
- sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
149 |
-} |
150 |
- |
151 |
-src_configure() { |
152 |
- local myconf=( |
153 |
- # signing and encryption |
154 |
- $(use_enable autocrypt) $(use_with autocrypt sqlite3) |
155 |
- $(use_enable pgp-classic pgp) |
156 |
- $(use_enable smime-classic smime) |
157 |
- $(use_enable gpgme) |
158 |
- |
159 |
- # features |
160 |
- $(use_enable debug) |
161 |
- $(use_enable doc) |
162 |
- $(use_enable nls) |
163 |
- |
164 |
- # protocols |
165 |
- $(use_enable imap) |
166 |
- $(use_enable pop) |
167 |
- $(use_enable smtp) |
168 |
- |
169 |
- $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
170 |
- $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
171 |
- $(use !ssl && echo --without-gnutls --without-ssl) |
172 |
- |
173 |
- $(use_with sasl) |
174 |
- $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
175 |
- $(use_with kerberos gss) |
176 |
- "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
177 |
- "$(use_with !slang curses "${EPREFIX}"/usr)" |
178 |
- |
179 |
- "--enable-compressed" |
180 |
- "--enable-external-dotlock" |
181 |
- "--enable-iconv" |
182 |
- "--enable-nfs-fix" |
183 |
- "--enable-sidebar" |
184 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
185 |
- "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
186 |
- "--without-bundled-regex" # use the implementation from libc |
187 |
- "--with-exec-shell=${EPREFIX}/bin/sh" |
188 |
- ) |
189 |
- |
190 |
- if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
191 |
- # arrows in index view do not show when using wchar_t |
192 |
- # or misalign due to wrong computations |
193 |
- myconf+=( "--without-wc-funcs" ) |
194 |
- fi |
195 |
- |
196 |
- # note: REQUIRED_USE should have selected only one of these, but for |
197 |
- # bug #607360 we're forced to allow multiple. For that reason, this |
198 |
- # list is ordered to preference, and only the first is taken. |
199 |
- local hcaches=( |
200 |
- "lmdb" |
201 |
- "qdbm" |
202 |
- "tokyocabinet" |
203 |
- "gdbm" |
204 |
- "berkdb:bdb" |
205 |
- ) |
206 |
- local ucache hcache lcache |
207 |
- for hcache in "${hcaches[@]}" ; do |
208 |
- if use ${hcache%%:*} ; then |
209 |
- ucache=${hcache} |
210 |
- break |
211 |
- fi |
212 |
- done |
213 |
- if [[ -n ${ucache} ]] ; then |
214 |
- myconf+=( "--enable-hcache" ) |
215 |
- else |
216 |
- myconf+=( "--disable-hcache" ) |
217 |
- fi |
218 |
- for hcache in "${hcaches[@]}" ; do |
219 |
- [[ ${hcache} == ${ucache} ]] \ |
220 |
- && myconf+=( "--with-${hcache#*:}" ) \ |
221 |
- || myconf+=( "--without-${hcache#*:}" ) |
222 |
- done |
223 |
- |
224 |
- if use mbox; then |
225 |
- myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
226 |
- else |
227 |
- myconf+=( "--with-homespool=Maildir" ) |
228 |
- fi |
229 |
- |
230 |
- econf "${myconf[@]}" |
231 |
-} |
232 |
- |
233 |
-src_install() { |
234 |
- emake DESTDIR="${D}" install |
235 |
- insinto /etc/${PN} |
236 |
- if use mbox; then |
237 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
238 |
- else |
239 |
- doins "${FILESDIR}"/Muttrc |
240 |
- fi |
241 |
- |
242 |
- # include attachment settings, it's mandatory and shouldn't harm |
243 |
- # when not being referenced (index_format using %X) |
244 |
- { |
245 |
- echo |
246 |
- echo "# mandatory attachments settings, not setting these is a BUG!" |
247 |
- echo "# see https://marc.info/?l=mutt-dev&m=158347284923517&w=2" |
248 |
- grep '^attachments' "${ED}"/etc/${PN}/Muttrc.dist |
249 |
- } >> "${ED}"/etc/${PN}/Muttrc |
250 |
- |
251 |
- # add setting to actually enable gpgme usage |
252 |
- if use gpgme || use autocrypt ; then |
253 |
- { |
254 |
- echo |
255 |
- echo "# this setting enables the gpgme backend (via USE=gpgme)" |
256 |
- # https is broken due to a certificate mismatch :( |
257 |
- echo "# see http://www.mutt.org/doc/manual/#crypt-use-gpgme" |
258 |
- echo "set crypt_use_gpgme = yes" |
259 |
- } >> "${ED}"/etc/${PN}/Muttrc |
260 |
- fi |
261 |
- |
262 |
- # similar for autocrypt |
263 |
- if use autocrypt ; then |
264 |
- { |
265 |
- echo |
266 |
- echo "# enables autocrypt (via USE=autocrypt)" |
267 |
- echo "# see http://www.mutt.org/doc/manual/#autocryptdoc" |
268 |
- echo "set autocrypt = yes" |
269 |
- } >> "${ED}"/etc/${PN}/Muttrc |
270 |
- fi |
271 |
- |
272 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
273 |
- rm "${ED}"/etc/${PN}/mime.types |
274 |
- dosym ../mime.types /etc/${PN}/mime.types |
275 |
- |
276 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
277 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
278 |
- || ewarn "failed to remove files, please file a bug" |
279 |
- |
280 |
- if use !prefix ; then |
281 |
- fowners root:mail /usr/bin/mutt_dotlock |
282 |
- fperms g+s /usr/bin/mutt_dotlock |
283 |
- fi |
284 |
- |
285 |
- dodoc COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
286 |
-} |
287 |
- |
288 |
-pkg_postinst() { |
289 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
290 |
- echo |
291 |
- elog "If you are new to mutt you may want to take a look at" |
292 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
293 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
294 |
- echo |
295 |
- fi |
296 |
-} |
297 |
|
298 |
diff --git a/mail-client/mutt/mutt-2.2.2.ebuild b/mail-client/mutt/mutt-2.2.2.ebuild |
299 |
deleted file mode 100644 |
300 |
index 9217536891d9..000000000000 |
301 |
--- a/mail-client/mutt/mutt-2.2.2.ebuild |
302 |
+++ /dev/null |
303 |
@@ -1,268 +0,0 @@ |
304 |
-# Copyright 1999-2022 Gentoo Authors |
305 |
-# Distributed under the terms of the GNU General Public License v2 |
306 |
- |
307 |
-EAPI="7" |
308 |
- |
309 |
-inherit flag-o-matic autotools |
310 |
- |
311 |
-PATCHREV="r0" |
312 |
-PATCHSET="gentoo-${PVR}/${PATCHREV}" |
313 |
- |
314 |
-DESCRIPTION="A small but very powerful text-based mail client" |
315 |
-HOMEPAGE="http://www.mutt.org/" |
316 |
-MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
317 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
318 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
319 |
- https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
320 |
-IUSE="autocrypt berkdb debug doc gdbm gnutls gpgme gsasl +hcache idn +imap kerberos +lmdb mbox nls pgp-classic pop qdbm +sasl selinux slang smime-classic +smtp +ssl tokyocabinet vanilla prefix" |
321 |
-# hcache: allow multiple, bug #607360 |
322 |
-REQUIRED_USE=" |
323 |
- gsasl? ( sasl ) |
324 |
- hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
325 |
- imap? ( ssl ) |
326 |
- pop? ( ssl ) |
327 |
- smime-classic? ( ssl !gnutls ) |
328 |
- smtp? ( ssl sasl ) |
329 |
- sasl? ( || ( imap pop smtp ) ) |
330 |
- kerberos? ( || ( imap pop smtp ) ) |
331 |
- autocrypt? ( gpgme )" |
332 |
-SLOT="0" |
333 |
-LICENSE="GPL-2" |
334 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
335 |
-# yes, we overdepend on the backend impls here, hopefully one day we can |
336 |
-# have REQUIRED_USE do what it is made for again. bug #607360 |
337 |
-CDEPEND=" |
338 |
- app-misc/mime-types |
339 |
- virtual/libiconv |
340 |
- |
341 |
- berkdb? ( >=sys-libs/db-4:= ) |
342 |
- gdbm? ( sys-libs/gdbm ) |
343 |
- lmdb? ( dev-db/lmdb:= ) |
344 |
- qdbm? ( dev-db/qdbm ) |
345 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
346 |
- |
347 |
- ssl? ( |
348 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
349 |
- !gnutls? ( >=dev-libs/openssl-0.9.6:0= ) |
350 |
- ) |
351 |
- |
352 |
- nls? ( virtual/libintl ) |
353 |
- sasl? ( |
354 |
- gsasl? ( virtual/gsasl ) |
355 |
- !gsasl? ( >=dev-libs/cyrus-sasl-2 ) |
356 |
- ) |
357 |
- kerberos? ( virtual/krb5 ) |
358 |
- idn? ( net-dns/libidn2 ) |
359 |
- gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
360 |
- autocrypt? ( >=dev-db/sqlite-3 ) |
361 |
- slang? ( sys-libs/slang ) |
362 |
- !slang? ( >=sys-libs/ncurses-5.2:0= ) |
363 |
-" |
364 |
-DEPEND="${CDEPEND} |
365 |
- net-mail/mailbase |
366 |
- doc? ( |
367 |
- dev-libs/libxml2 |
368 |
- dev-libs/libxslt |
369 |
- app-text/docbook-xsl-stylesheets |
370 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
371 |
- )" |
372 |
-RDEPEND="${CDEPEND} |
373 |
- selinux? ( sec-policy/selinux-mutt ) |
374 |
- smime-classic? ( >=dev-libs/openssl-0.9.6:0 ) |
375 |
- pgp-classic? ( app-crypt/gnupg ) |
376 |
-" |
377 |
- |
378 |
-src_prepare() { |
379 |
- local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
380 |
- |
381 |
- if use !vanilla ; then |
382 |
- # apply patches |
383 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
384 |
- local patches=( |
385 |
- patches-mutt |
386 |
- bugs-gentoo |
387 |
- features-common |
388 |
- features-extra |
389 |
- gentoo |
390 |
- ) |
391 |
- local patchset p |
392 |
- for patchset in "${patches[@]}" ; do |
393 |
- [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
394 |
- einfo "Patches for ${PATCHSET} patchset ${patchset}" |
395 |
- for p in "${PATCHDIR}/${patchset}"/*.patch ; do |
396 |
- eapply "${p}" || die |
397 |
- done |
398 |
- done |
399 |
- # add some explanation as to why not to go upstream |
400 |
- sed -i \ |
401 |
- -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\\' \ |
402 |
- main.c || die "Failed to add bug instructions" |
403 |
- fi |
404 |
- |
405 |
- local upatches= |
406 |
- # allow user patches |
407 |
- eapply_user && upatches=" with user patches" |
408 |
- |
409 |
- # patch version string for bug reports |
410 |
- local patchset= |
411 |
- use vanilla || patchset=", ${PATCHSET}" |
412 |
- sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
413 |
- muttlib.c || die "failed patching in Gentoo version" |
414 |
- |
415 |
- # many patches touch the buildsystem, we always need this |
416 |
- AT_M4DIR="m4" eautoreconf |
417 |
- |
418 |
- # the configure script contains some "cleverness" whether or not to setgid |
419 |
- # the dotlock program, resulting in bugs like #278332 |
420 |
- sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
421 |
-} |
422 |
- |
423 |
-src_configure() { |
424 |
- local myconf=( |
425 |
- # signing and encryption |
426 |
- $(use_enable autocrypt) $(use_with autocrypt sqlite3) |
427 |
- $(use_enable pgp-classic pgp) |
428 |
- $(use_enable smime-classic smime) |
429 |
- $(use_enable gpgme) |
430 |
- |
431 |
- # features |
432 |
- $(use_enable debug) |
433 |
- $(use_enable doc) |
434 |
- $(use_enable nls) |
435 |
- |
436 |
- # protocols |
437 |
- $(use_enable imap) |
438 |
- $(use_enable pop) |
439 |
- $(use_enable smtp) |
440 |
- |
441 |
- $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
442 |
- $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
443 |
- $(use !ssl && echo --without-gnutls --without-ssl) |
444 |
- |
445 |
- $(use sasl && use gsasl && echo --with-gsasl --without-sasl) |
446 |
- $(use sasl && use !gsasl && echo --without-gsasl --with-sasl ) |
447 |
- $(use !sasl && echo --without-gsasl --without-sasl) |
448 |
- |
449 |
- $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
450 |
- $(use_with kerberos gss) |
451 |
- "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
452 |
- "$(use_with !slang curses "${EPREFIX}"/usr)" |
453 |
- |
454 |
- "--enable-compressed" |
455 |
- "--enable-external-dotlock" |
456 |
- "--enable-iconv" |
457 |
- "--enable-nfs-fix" |
458 |
- "--enable-sidebar" |
459 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
460 |
- "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
461 |
- "--without-bundled-regex" # use the implementation from libc |
462 |
- "--with-exec-shell=${EPREFIX}/bin/sh" |
463 |
- ) |
464 |
- |
465 |
- if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
466 |
- # arrows in index view do not show when using wchar_t |
467 |
- # or misalign due to wrong computations |
468 |
- myconf+=( "--without-wc-funcs" ) |
469 |
- fi |
470 |
- |
471 |
- # note: REQUIRED_USE should have selected only one of these, but for |
472 |
- # bug #607360 we're forced to allow multiple. For that reason, this |
473 |
- # list is ordered to preference, and only the first is taken. |
474 |
- local hcaches=( |
475 |
- "lmdb" |
476 |
- "qdbm" |
477 |
- "tokyocabinet" |
478 |
- "gdbm" |
479 |
- "berkdb:bdb" |
480 |
- ) |
481 |
- local ucache hcache lcache |
482 |
- for hcache in "${hcaches[@]}" ; do |
483 |
- if use ${hcache%%:*} ; then |
484 |
- ucache=${hcache} |
485 |
- break |
486 |
- fi |
487 |
- done |
488 |
- if [[ -n ${ucache} ]] ; then |
489 |
- myconf+=( "--enable-hcache" ) |
490 |
- else |
491 |
- myconf+=( "--disable-hcache" ) |
492 |
- fi |
493 |
- for hcache in "${hcaches[@]}" ; do |
494 |
- [[ ${hcache} == ${ucache} ]] \ |
495 |
- && myconf+=( "--with-${hcache#*:}" ) \ |
496 |
- || myconf+=( "--without-${hcache#*:}" ) |
497 |
- done |
498 |
- |
499 |
- if use mbox; then |
500 |
- myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
501 |
- else |
502 |
- myconf+=( "--with-homespool=Maildir" ) |
503 |
- fi |
504 |
- |
505 |
- econf "${myconf[@]}" |
506 |
-} |
507 |
- |
508 |
-src_install() { |
509 |
- emake DESTDIR="${D}" install |
510 |
- insinto /etc/${PN} |
511 |
- if use mbox; then |
512 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
513 |
- else |
514 |
- doins "${FILESDIR}"/Muttrc |
515 |
- fi |
516 |
- |
517 |
- # include attachment settings, it's mandatory and shouldn't harm |
518 |
- # when not being referenced (index_format using %X) |
519 |
- { |
520 |
- echo |
521 |
- echo "# mandatory attachments settings, not setting these is a BUG!" |
522 |
- echo "# see https://marc.info/?l=mutt-dev&m=158347284923517&w=2" |
523 |
- grep '^attachments' "${ED}"/etc/${PN}/Muttrc.dist |
524 |
- } >> "${ED}"/etc/${PN}/Muttrc |
525 |
- |
526 |
- # add setting to actually enable gpgme usage |
527 |
- if use gpgme || use autocrypt ; then |
528 |
- { |
529 |
- echo |
530 |
- echo "# this setting enables the gpgme backend (via USE=gpgme)" |
531 |
- # https is broken due to a certificate mismatch :( |
532 |
- echo "# see http://www.mutt.org/doc/manual/#crypt-use-gpgme" |
533 |
- echo "set crypt_use_gpgme = yes" |
534 |
- } >> "${ED}"/etc/${PN}/Muttrc |
535 |
- fi |
536 |
- |
537 |
- # similar for autocrypt |
538 |
- if use autocrypt ; then |
539 |
- { |
540 |
- echo |
541 |
- echo "# enables autocrypt (via USE=autocrypt)" |
542 |
- echo "# see http://www.mutt.org/doc/manual/#autocryptdoc" |
543 |
- echo "set autocrypt = yes" |
544 |
- } >> "${ED}"/etc/${PN}/Muttrc |
545 |
- fi |
546 |
- |
547 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
548 |
- rm "${ED}"/etc/${PN}/mime.types |
549 |
- dosym ../mime.types /etc/${PN}/mime.types |
550 |
- |
551 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
552 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
553 |
- || ewarn "failed to remove files, please file a bug" |
554 |
- |
555 |
- if use !prefix ; then |
556 |
- fowners root:mail /usr/bin/mutt_dotlock |
557 |
- fperms g+s /usr/bin/mutt_dotlock |
558 |
- fi |
559 |
- |
560 |
- dodoc COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
561 |
-} |
562 |
- |
563 |
-pkg_postinst() { |
564 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
565 |
- echo |
566 |
- elog "If you are new to mutt you may want to take a look at" |
567 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
568 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
569 |
- echo |
570 |
- fi |
571 |
-} |