Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/mutt: ChangeLog mutt-1.5.19-r1.ebuild mutt-1.5.19.ebuild
Date: Thu, 18 Jun 2009 09:20:41
Message-Id: E1MHDnR-00075Y-RA@stork.gentoo.org
1 grobian 09/06/18 09:20:37
2
3 Modified: ChangeLog
4 Added: mutt-1.5.19-r1.ebuild
5 Removed: mutt-1.5.19.ebuild
6 Log:
7 Revision bump for CVE-2009-1390, add related patches
8 (Portage version: 2.1.6.13/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.130 mail-client/mutt/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.130&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.130&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?r1=1.129&r2=1.130
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v
20 retrieving revision 1.129
21 retrieving revision 1.130
22 diff -u -r1.129 -r1.130
23 --- ChangeLog 9 Jun 2009 07:18:04 -0000 1.129
24 +++ ChangeLog 18 Jun 2009 09:20:37 -0000 1.130
25 @@ -1,6 +1,14 @@
26 # ChangeLog for mail-client/mutt
27 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.129 2009/06/09 07:18:04 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.130 2009/06/18 09:20:37 grobian Exp $
30 +
31 +*mutt-1.5.19-r1 (18 Jun 2009)
32 +
33 + 18 Jun 2009; Fabian Groffen <grobian@g.o>
34 + +files/mutt-1.5.19-mutt-gnutls-7d0583e0315d-0b13183e40e0.patch,
35 + +files/mutt-1.5.19-mutt_ssl-3af7e8af1983-dc9ec900c657.patch,
36 + -mutt-1.5.19.ebuild, +mutt-1.5.19-r1.ebuild:
37 + Revision bump for CVE-2009-1390, add related patches
38
39 09 Jun 2009; Fabian Groffen <grobian@g.o>
40 +files/mutt-1.5.19-libgnutls-test-15c662a95b91.patch, mutt-1.5.19.ebuild:
41
42
43
44 1.1 mail-client/mutt/mutt-1.5.19-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.19-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.19-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mutt-1.5.19-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.19-r1.ebuild,v 1.1 2009/06/18 09:20:37 grobian Exp $
54
55 inherit eutils flag-o-matic autotools
56
57 PATCHSET_REV=""
58
59 # note: latest sidebar patches can be found here:
60 # http://www.lunar-linux.org/index.php?option=com_content&task=view&id=44
61 SIDEBAR_PATCH_N="patch-1.5.19.sidebar.20090522.txt"
62
63 DESCRIPTION="a small but very powerful text-based mail client"
64 HOMEPAGE="http://www.mutt.org"
65 SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz
66 !vanilla? (
67 !sidebar? (
68 mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
69 http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
70 )
71 )
72 sidebar? (
73 http://www.lunar-linux.org/~tchan/mutt/${SIDEBAR_PATCH_N}
74 )"
75 IUSE="berkdb crypt debug gdbm gnutls gpgme idn imap mbox nls nntp pop qdbm sasl
76 sidebar smime smtp ssl vanilla"
77 SLOT="0"
78 LICENSE="GPL-2"
79 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
80 RDEPEND=">=sys-libs/ncurses-5.2
81 qdbm? ( dev-db/qdbm )
82 !qdbm? (
83 gdbm? ( sys-libs/gdbm )
84 !gdbm? ( berkdb? ( >=sys-libs/db-4 ) )
85 )
86 imap? (
87 gnutls? ( >=net-libs/gnutls-1.0.17 )
88 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
89 sasl? ( >=dev-libs/cyrus-sasl-2 )
90 )
91 pop? (
92 gnutls? ( >=net-libs/gnutls-1.0.17 )
93 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
94 sasl? ( >=dev-libs/cyrus-sasl-2 )
95 )
96 smtp? (
97 gnutls? ( >=net-libs/gnutls-1.0.17 )
98 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
99 sasl? ( >=dev-libs/cyrus-sasl-2 )
100 )
101 idn? ( net-dns/libidn )
102 gpgme? ( >=app-crypt/gpgme-0.9.0 )
103 smime? ( >=dev-libs/openssl-0.9.6 )
104 app-misc/mime-types"
105 DEPEND="${RDEPEND}
106 net-mail/mailbase
107 !vanilla? (
108 dev-libs/libxml2
109 dev-libs/libxslt
110 app-text/docbook-xsl-stylesheets
111 || ( www-client/lynx www-client/w3m www-client/elinks )
112 )"
113
114 PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV}
115
116 src_unpack() {
117 unpack ${A//${SIDEBAR_PATCH_N}}
118 cd "${S}"
119
120 epatch "${FILESDIR}"/${P}-libgnutls-test-15c662a95b91.patch
121 # CVE-2009-1390 http://thread.gmane.org/gmane.comp.security.oss.general/1847
122 epatch "${FILESDIR}"/${P}-mutt_ssl-3af7e8af1983-dc9ec900c657.patch
123 epatch "${FILESDIR}"/${P}-mutt-gnutls-7d0583e0315d-0b13183e40e0.patch
124
125 if ! use vanilla && ! use sidebar ; then
126 use nntp || rm "${PATCHDIR}"/06-nntp.patch
127 for p in "${PATCHDIR}"/*.patch ; do
128 epatch "${p}"
129 done
130 fi
131
132 if use sidebar ; then
133 use vanilla || \
134 ewarn "The sidebar patch is only applied to a vanilla mutt tree."
135 epatch "${DISTDIR}"/${SIDEBAR_PATCH_N}
136 fi
137
138 AT_M4DIR="m4" eautoreconf
139 }
140
141 src_compile() {
142 declare myconf="
143 $(use_enable nls) \
144 $(use_enable gpgme) \
145 $(use_enable imap) \
146 $(use_enable pop) \
147 $(use_enable smtp) \
148 $(use_enable crypt pgp) \
149 $(use_enable smime) \
150 $(use_enable debug) \
151 $(use_with idn) \
152 --with-curses \
153 --sysconfdir=/etc/${PN} \
154 --with-docdir=/usr/share/doc/${PN}-${PVR} \
155 --with-regex \
156 --enable-nfs-fix --enable-external-dotlock \
157 $(use_with !nntp mixmaster) \
158 --with-exec-shell=/bin/sh"
159
160 case $CHOST in
161 *-darwin7)
162 # locales are broken on Panther
163 myconf="${myconf} --enable-locales-fix --without-wc-funcs"
164 myconf="${myconf} --disable-fcntl --enable-flock"
165 ;;
166 *-solaris*)
167 # Solaris has no flock in the standard headers
168 myconf="${myconf} --enable-fcntl --disable-flock"
169 ;;
170 *)
171 myconf="${myconf} --disable-fcntl --enable-flock"
172 ;;
173 esac
174
175 # See Bug #22787
176 unset WANT_AUTOCONF_2_5 WANT_AUTOCONF
177
178 # mutt prioritizes gdbm over bdb, so we will too.
179 # hcache feature requires at least one database is in USE.
180 if use qdbm; then
181 myconf="${myconf} --enable-hcache \
182 --with-qdbm --without-gdbm --without-bdb"
183 elif use gdbm ; then
184 myconf="${myconf} --enable-hcache \
185 --without-qdbm --with-gdbm --without-bdb"
186 elif use berkdb; then
187 myconf="${myconf} --enable-hcache \
188 --without-gdbm --without-qdbm --with-bdb"
189 else
190 myconf="${myconf} --disable-hcache \
191 --without-qdbm --without-gdbm --without-bdb"
192 fi
193
194 # there's no need for gnutls, ssl or sasl without socket support
195 if use pop || use imap || use smtp ; then
196 if use gnutls; then
197 myconf="${myconf} --with-gnutls"
198 elif use ssl; then
199 myconf="${myconf} --with-ssl"
200 fi
201 # not sure if this should be mutually exclusive with the other two
202 myconf="${myconf} $(use_with sasl)"
203 else
204 myconf="${myconf} --without-gnutls --without-ssl --without-sasl"
205 fi
206
207 # See Bug #11170
208 case ${ARCH} in
209 alpha|ppc) replace-flags "-O[3-9]" "-O2" ;;
210 esac
211
212 if use mbox; then
213 myconf="${myconf} --with-mailpath=/var/spool/mail"
214 else
215 myconf="${myconf} --with-homespool=Maildir"
216 fi
217
218 if ! use vanilla; then
219 # rr.compressed patch
220 myconf="${myconf} --enable-compressed"
221
222 # nntp patch applied conditionally, so avoid QA warning when doing
223 # --disable-nntp while patch not being applied, bug #262069
224 use nntp && myconf="${myconf} --enable-nntp"
225 fi
226
227 econf ${myconf} || die "configure failed"
228 emake || die "make failed"
229 }
230
231 src_install() {
232 make DESTDIR="${D}" install || die "install failed"
233 find "${D}"/usr/share/doc -type f | grep -v "html\|manual" | xargs gzip
234 if use mbox; then
235 insinto /etc/mutt
236 newins "${FILESDIR}"/Muttrc.mbox Muttrc
237 else
238 insinto /etc/mutt
239 doins "${FILESDIR}"/Muttrc
240 fi
241
242 # A newer file is provided by app-misc/mime-types. So we link it.
243 rm "${D}"/etc/${PN}/mime.types
244 dosym /etc/mime.types /etc/${PN}/mime.types
245
246 # charset.alias is installed by libiconv
247 rm -f "${D}"/usr/lib/charset.alias
248 rm -f "${D}"/usr/share/locale/locale.alias
249
250 dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
251 }
252
253 pkg_postinst() {
254 echo
255 elog "If you are new to mutt you may want to take a look at"
256 elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
257 elog " http://www.gentoo.org/doc/en/guide-to-mutt.xml"
258 echo
259 }