1 |
grobian 09/10/27 09:20:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mutt-1.5.20-r8.ebuild |
5 |
Removed: mutt-1.5.20-r7.ebuild |
6 |
Log: |
7 |
Add patch to fix ssl security issue CVE-2009-3765, bug #290660 |
8 |
(Portage version: 2.2.00.14724-prefix/cvs/SunOS i386) |
9 |
|
10 |
Revision Changes Path |
11 |
1.162 mail-client/mutt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.162&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.162&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?r1=1.161&r2=1.162 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v |
20 |
retrieving revision 1.161 |
21 |
retrieving revision 1.162 |
22 |
diff -u -r1.161 -r1.162 |
23 |
--- ChangeLog 27 Oct 2009 09:08:08 -0000 1.161 |
24 |
+++ ChangeLog 27 Oct 2009 09:20:24 -0000 1.162 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for mail-client/mutt |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.161 2009/10/27 09:08:08 grobian Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.162 2009/10/27 09:20:24 grobian Exp $ |
30 |
+ |
31 |
+*mutt-1.5.20-r8 (27 Oct 2009) |
32 |
+ |
33 |
+ 27 Oct 2009; Fabian Groffen <grobian@g.o> -mutt-1.5.20-r7.ebuild, |
34 |
+ +mutt-1.5.20-r8.ebuild, |
35 |
+ +files/mutt-1.5.20-ssl-CVE-2009-3765-dc09812e63a3.patch: |
36 |
+ Add patch to fix ssl security issue CVE-2009-3765, bug #290660 |
37 |
|
38 |
27 Oct 2009; Fabian Groffen <grobian@g.o> -mutt-1.5.16.ebuild, |
39 |
-mutt-1.5.19-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 mail-client/mutt/mutt-1.5.20-r8.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20-r8.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20-r8.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mutt-1.5.20-r8.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.20-r8.ebuild,v 1.1 2009/10/27 09:20:24 grobian Exp $ |
53 |
|
54 |
inherit eutils flag-o-matic autotools |
55 |
|
56 |
PATCHSET_REV="-r3" |
57 |
|
58 |
# note: latest sidebar patches can be found here: |
59 |
# http://www.lunar-linux.org/index.php?option=com_content&task=view&id=44 |
60 |
SIDEBAR_PATCH_N="patch-1.5.20.sidebar.20090619.txt" |
61 |
|
62 |
DESCRIPTION="a small but very powerful text-based mail client" |
63 |
HOMEPAGE="http://www.mutt.org" |
64 |
SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz |
65 |
!vanilla? ( |
66 |
!sidebar? ( |
67 |
mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
68 |
http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
69 |
) |
70 |
) |
71 |
sidebar? ( |
72 |
http://www.lunar-linux.org/~tchan/mutt/${SIDEBAR_PATCH_N} |
73 |
)" |
74 |
IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap mbox nls nntp pop qdbm sasl sidebar smime smtp ssl tokyocabinet vanilla" |
75 |
SLOT="0" |
76 |
LICENSE="GPL-2" |
77 |
KEYWORDS="~alpha ~amd64 ~x86 ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
78 |
RDEPEND=">=sys-libs/ncurses-5.2 |
79 |
tokyocabinet? ( dev-db/tokyocabinet ) |
80 |
!tokyocabinet? ( |
81 |
qdbm? ( dev-db/qdbm ) |
82 |
!qdbm? ( |
83 |
gdbm? ( sys-libs/gdbm ) |
84 |
!gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
85 |
) |
86 |
) |
87 |
imap? ( |
88 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
89 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
90 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
91 |
) |
92 |
pop? ( |
93 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
94 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
95 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
96 |
) |
97 |
smtp? ( |
98 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
99 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
100 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
101 |
) |
102 |
idn? ( net-dns/libidn ) |
103 |
gpg? ( >=app-crypt/gpgme-0.9.0 ) |
104 |
smime? ( >=dev-libs/openssl-0.9.6 ) |
105 |
app-misc/mime-types" |
106 |
DEPEND="${RDEPEND} |
107 |
net-mail/mailbase |
108 |
doc? ( |
109 |
dev-libs/libxml2 |
110 |
dev-libs/libxslt |
111 |
app-text/docbook-xsl-stylesheets |
112 |
|| ( www-client/lynx www-client/w3m www-client/elinks ) |
113 |
)" |
114 |
|
115 |
PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
116 |
|
117 |
src_unpack() { |
118 |
unpack ${A//${SIDEBAR_PATCH_N}} |
119 |
cd "${S}" |
120 |
|
121 |
# this patch is non-generic and only works because we use a sysconfdir |
122 |
# different from the one used by the mailbase ebuild |
123 |
use prefix && epatch "${FILESDIR}"/mutt-1.5.13-prefix-mailcap.patch |
124 |
|
125 |
epatch "${FILESDIR}"/mutt-1.5.18-bdb-prefix.patch # fix bdb detection |
126 |
epatch "${FILESDIR}"/mutt-1.5.18-interix.patch |
127 |
built_with_use sys-libs/ncurses unicode && \ |
128 |
epatch "${FILESDIR}"/mutt-1.5.18-solaris-ncurses-chars.patch |
129 |
epatch "${FILESDIR}"/mutt-1.5.20-gpgme-1.2.0.patch |
130 |
epatch "${FILESDIR}"/mutt-1.5.20-dont-reveal-bbc.patch |
131 |
|
132 |
# post-release hot-fixes |
133 |
epatch "${FILESDIR}"/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch |
134 |
epatch "${FILESDIR}"/mutt-1.5.20-header-weeding-f40de578e8ed.patch |
135 |
epatch "${FILESDIR}"/mutt-1.5.20-display-unsigned-pgp-7f37d0a57d83.patch |
136 |
epatch "${FILESDIR}"/mutt-1.5.20-unmailbox-segfault-25e46aad362b.patch |
137 |
epatch "${FILESDIR}"/mutt-1.5.20-mbox-new-mail-bd59be56c6b0.patch |
138 |
epatch "${FILESDIR}"/mutt-1.5.20-mbox-unchanged-new-mail-9ae13dedb5ed.patch |
139 |
epatch "${FILESDIR}"/mutt-1.5.20-imap-start-fatal-fe30f394cbe6.patch |
140 |
epatch "${FILESDIR}"/mutt-1.5.20-tab-subject-questionmark-298194c414f0-cff8e8ce4327.patch |
141 |
epatch "${FILESDIR}"/mutt-1.5.20-smtp-batch-mode-0a3de4d9a009-f6c6066a5925.patch |
142 |
epatch "${FILESDIR}"/mutt-1.5.20-leave-mailbox-no-new-mail-118b8fef8aae.patch |
143 |
epatch "${FILESDIR}"/mutt-1.5.20-gpgme-keys-d41e043fa775.patch |
144 |
epatch "${FILESDIR}"/mutt-1.5.20-mhs-flags-leak-9f3053f75f27.patch |
145 |
epatch "${FILESDIR}"/mutt-1.5.20-hcache-restore-address-848f08512bf3.patch |
146 |
epatch "${FILESDIR}"/mutt-1.5.20-ungroup-command-77ac8b5c2be6.patch |
147 |
epatch "${FILESDIR}"/mutt-1.5.20-propagate-mh_read_sequences-2fc9348684fe.patch |
148 |
epatch "${FILESDIR}"/mutt-1.5.20-hcache-uidvalidity-size-fix-a2a4286491b4.patch |
149 |
epatch "${FILESDIR}"/mutt-1.5.20-fix-mh-parsing-14bb498c6a1c.patch |
150 |
epatch "${FILESDIR}"/mutt-1.5.20-search-pattern-crash-053ef7bbaa72.patch |
151 |
epatch "${FILESDIR}"/mutt-1.5.20-next-invalid-pattern-crash-6a08a5244d60.patch |
152 |
epatch "${FILESDIR}"/mutt-1.5.20-ssl-CVE-2009-3765-dc09812e63a3.patch |
153 |
|
154 |
# patch version string for bug reports |
155 |
sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}"')"/' \ |
156 |
muttlib.c || die "failed patching in Gentoo version" |
157 |
|
158 |
if use !vanilla && use !sidebar ; then |
159 |
use nntp || rm "${PATCHDIR}"/06-nntp.patch |
160 |
for p in "${PATCHDIR}"/*.patch ; do |
161 |
epatch "${p}" |
162 |
done |
163 |
fi |
164 |
|
165 |
if use sidebar ; then |
166 |
use vanilla || \ |
167 |
ewarn "The sidebar patch is only applied to a vanilla mutt tree." |
168 |
epatch "${DISTDIR}"/${SIDEBAR_PATCH_N} |
169 |
fi |
170 |
|
171 |
AT_M4DIR="m4" eautoreconf |
172 |
|
173 |
# the configure script contains some "cleverness" whether or not to setgid |
174 |
# the dotlock program, resulting in bugs like #278332 |
175 |
sed -i -e 's/@DOTLOCK_GROUP@//' \ |
176 |
Makefile.in || die "sed failed" |
177 |
|
178 |
# don't just build documentation (lengthy process, with big dependencies) |
179 |
if use !doc ; then |
180 |
sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
181 |
fi |
182 |
} |
183 |
|
184 |
src_compile() { |
185 |
declare myconf=" |
186 |
$(use_enable nls) \ |
187 |
$(use_enable gpg gpgme) \ |
188 |
$(use_enable imap) \ |
189 |
$(use_enable pop) \ |
190 |
$(use_enable smtp) \ |
191 |
$(use_enable crypt pgp) \ |
192 |
$(use_enable smime) \ |
193 |
$(use_enable debug) \ |
194 |
$(use_with idn) \ |
195 |
--with-curses \ |
196 |
--sysconfdir="${EPREFIX}"/etc/${PN} \ |
197 |
--with-docdir="${EPREFIX}"/usr/share/doc/${PN}-${PVR} \ |
198 |
--with-regex \ |
199 |
--enable-nfs-fix --enable-external-dotlock \ |
200 |
$(use_with !nntp mixmaster) \ |
201 |
--with-exec-shell=${EPREFIX}/bin/sh" |
202 |
|
203 |
case $CHOST in |
204 |
*-darwin7) |
205 |
# locales are broken on Panther |
206 |
myconf="${myconf} --enable-locales-fix --without-wc-funcs" |
207 |
myconf="${myconf} --disable-fcntl --enable-flock" |
208 |
;; |
209 |
*-solaris*) |
210 |
# Solaris has no flock in the standard headers |
211 |
myconf="${myconf} --enable-fcntl --disable-flock" |
212 |
;; |
213 |
*) |
214 |
myconf="${myconf} --disable-fcntl --enable-flock" |
215 |
;; |
216 |
esac |
217 |
|
218 |
# See Bug #22787 |
219 |
unset WANT_AUTOCONF_2_5 WANT_AUTOCONF |
220 |
|
221 |
# mutt prioritizes gdbm over bdb, so we will too. |
222 |
# hcache feature requires at least one database is in USE. |
223 |
if use tokyocabinet; then |
224 |
myconf="${myconf} --enable-hcache \ |
225 |
--with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
226 |
elif use qdbm; then |
227 |
myconf="${myconf} --enable-hcache \ |
228 |
--without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
229 |
elif use gdbm ; then |
230 |
myconf="${myconf} --enable-hcache \ |
231 |
--without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
232 |
elif use berkdb; then |
233 |
myconf="${myconf} --enable-hcache \ |
234 |
--without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
235 |
else |
236 |
myconf="${myconf} --disable-hcache \ |
237 |
--without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
238 |
fi |
239 |
|
240 |
# there's no need for gnutls, ssl or sasl without socket support |
241 |
if use pop || use imap || use smtp ; then |
242 |
if use gnutls; then |
243 |
myconf="${myconf} --with-gnutls" |
244 |
elif use ssl; then |
245 |
myconf="${myconf} --with-ssl" |
246 |
fi |
247 |
# not sure if this should be mutually exclusive with the other two |
248 |
myconf="${myconf} $(use_with sasl)" |
249 |
else |
250 |
myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
251 |
fi |
252 |
|
253 |
if use mbox; then |
254 |
myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
255 |
else |
256 |
myconf="${myconf} --with-homespool=Maildir" |
257 |
fi |
258 |
|
259 |
if use !vanilla && use !sidebar ; then |
260 |
# rr.compressed patch |
261 |
myconf="${myconf} --enable-compressed" |
262 |
|
263 |
# nntp patch applied conditionally, so avoid QA warning when doing |
264 |
# --disable-nntp while patch not being applied, bug #262069 |
265 |
use nntp && myconf="${myconf} --enable-nntp" |
266 |
fi |
267 |
|
268 |
econf ${myconf} || die "configure failed" |
269 |
emake || die "make failed" |
270 |
} |
271 |
|
272 |
src_install() { |
273 |
local ED=${ED-${D}} |
274 |
make DESTDIR="${D}" install || die "install failed" |
275 |
find "${ED}"/usr/share/doc -type f | grep -v "html\|manual" | xargs gzip |
276 |
if use mbox; then |
277 |
insinto /etc/mutt |
278 |
newins "${FILESDIR}"/Muttrc.mbox Muttrc |
279 |
else |
280 |
insinto /etc/mutt |
281 |
doins "${FILESDIR}"/Muttrc |
282 |
fi |
283 |
|
284 |
# A newer file is provided by app-misc/mime-types. So we link it. |
285 |
rm "${ED}"/etc/${PN}/mime.types |
286 |
dosym /etc/mime.types /etc/${PN}/mime.types |
287 |
|
288 |
# A man-page is always handy |
289 |
if use !doc; then |
290 |
cp doc/mutt.man mutt.1 |
291 |
cp doc/muttbug.man flea.1 |
292 |
doman mutt.1 flea.1 |
293 |
fi |
294 |
|
295 |
if use !prefix ; then |
296 |
fowners root:mail /usr/bin/mutt_dotlock |
297 |
fperms g+s /usr/bin/mutt_dotlock |
298 |
fi |
299 |
|
300 |
dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
301 |
} |
302 |
|
303 |
pkg_setup() { |
304 |
if ! use gpg && |
305 |
has_version "<${CATEGORY}/${PN}-1.5.20-r2" && |
306 |
built_with_use ${CATEGORY}/${PN} gpgme ; |
307 |
then |
308 |
ewarn 'The "gpgme" USE-flag has been changed into "gpg". You' |
309 |
ewarn 'previously had "gpgme" set, and you most likely want to' |
310 |
ewarn 'enable "gpg" instead, right now, to obtain equivalent behaviour.' |
311 |
fi |
312 |
} |
313 |
|
314 |
pkg_postinst() { |
315 |
echo |
316 |
elog "If you are new to mutt you may want to take a look at" |
317 |
elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
318 |
elog " http://www.gentoo.org/doc/en/guide-to-mutt.xml" |
319 |
echo |
320 |
} |