summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2006-09-11 08:08:54 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2006-09-11 08:08:54 +0000
commit325b473598b2507807ae58aafc28da6c7d6e382d (patch)
tree19d2c581b6545ba47268909d92ff6cec12ee88e1 /mail-client/mutt
parentVersion bump. (diff)
downloadhistorical-325b473598b2507807ae58aafc28da6c7d6e382d.tar.gz
historical-325b473598b2507807ae58aafc28da6c7d6e382d.tar.bz2
historical-325b473598b2507807ae58aafc28da6c7d6e382d.zip
Add a patch to fix mutt with dev-libs/cyrus-sasl-2.1.22. Fixes bug #146696. Thanks to Sebastian <sebastian_ml@gmx.net>
Package-Manager: portage-2.1.1
Diffstat (limited to 'mail-client/mutt')
-rw-r--r--mail-client/mutt/ChangeLog9
-rw-r--r--mail-client/mutt/Manifest25
-rw-r--r--mail-client/mutt/files/digest-mutt-1.5.13-r16
-rw-r--r--mail-client/mutt/files/mutt-1.5.13-sasl.patch74
-rw-r--r--mail-client/mutt/mutt-1.5.13-r1.ebuild161
5 files changed, 267 insertions, 8 deletions
diff --git a/mail-client/mutt/ChangeLog b/mail-client/mutt/ChangeLog
index b720001b0ae4..a887d4a4d603 100644
--- a/mail-client/mutt/ChangeLog
+++ b/mail-client/mutt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-client/mutt
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.88 2006/09/04 08:52:41 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.89 2006/09/11 08:08:54 ferdy Exp $
+
+*mutt-1.5.13-r1 (11 Sep 2006)
+
+ 11 Sep 2006; Fernando J. Pereda <ferdy@gentoo.org>
+ +files/mutt-1.5.13-sasl.patch, +mutt-1.5.13-r1.ebuild:
+ Add a patch to fix mutt with dev-libs/cyrus-sasl-2.1.22. Fixes bug #146696.
+ Thanks to Sebastian <sebastian_ml@gmx.net>
04 Sep 2006; Fernando J. Pereda <ferdy@gentoo.org> -mutt-1.5.11.ebuild:
Remove mutt-1.5.11 wrt bug #140514
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest
index 41071cd7e173..cdaea69b33ab 100644
--- a/mail-client/mutt/Manifest
+++ b/mail-client/mutt/Manifest
@@ -25,6 +25,10 @@ AUX mutt-1.5.12-fix-pop-c.patch 753 RMD160 5d4566b5a22d2077e81b8a091f2749a3abd5f
MD5 866165cb07d60b1f28c2a27c1c57e3b4 files/mutt-1.5.12-fix-pop-c.patch 753
RMD160 5d4566b5a22d2077e81b8a091f2749a3abd5f289 files/mutt-1.5.12-fix-pop-c.patch 753
SHA256 1d1c21865a1aae258eb1991a153b75f99f22e9272a4d0b74478cd65f943f7a2a files/mutt-1.5.12-fix-pop-c.patch 753
+AUX mutt-1.5.13-sasl.patch 2468 RMD160 7c0ee6795f8b7a11059f3802b098735897cf7cf2 SHA1 0914414d61face0ca19d44819dac96d03480b8f7 SHA256 f2a646a227dc768d93dba54b7c02d7ea4e0d4c1641f03d3878870821d38e4e50
+MD5 acb389c41ad44abd6dd79073cf5820d4 files/mutt-1.5.13-sasl.patch 2468
+RMD160 7c0ee6795f8b7a11059f3802b098735897cf7cf2 files/mutt-1.5.13-sasl.patch 2468
+SHA256 f2a646a227dc768d93dba54b7c02d7ea4e0d4c1641f03d3878870821d38e4e50 files/mutt-1.5.13-sasl.patch 2468
AUX slang.patch 493 RMD160 16dcedee86fe91ecac48ec5be8a6f67798ef7ac0 SHA1 f913e8c717f76186b0edc8856bf02a167d540c70 SHA256 040c8b63b2d805dae800fa9b1826d158b7104641339cee9a404985616b3502c7
MD5 25e242fd402f42d5bd5230dbe9ea68a6 files/slang.patch 493
RMD160 16dcedee86fe91ecac48ec5be8a6f67798ef7ac0 files/slang.patch 493
@@ -50,14 +54,18 @@ EBUILD mutt-1.5.12.ebuild 4603 RMD160 93f84ebb5f464e563208feca3853694bc873b96f S
MD5 035bf6f128c26ecd34ac15f001fe582a mutt-1.5.12.ebuild 4603
RMD160 93f84ebb5f464e563208feca3853694bc873b96f mutt-1.5.12.ebuild 4603
SHA256 cdba6ab51a4758cf118859a2bf24fb7d4a6ec8cc7e7a27c408ecb3711c9b1e52 mutt-1.5.12.ebuild 4603
+EBUILD mutt-1.5.13-r1.ebuild 4366 RMD160 1130ba2ab508976cd93afb95ec2bb76aa6830d05 SHA1 11f2410020ed1d5dca2830ec042ad8365de6c66d SHA256 326cb1dd7ef9d9b0531b016fdd76a9a14e8be38106eae8822924c6e028411f2f
+MD5 6c9bf327379704b6a365a61b6c27b440 mutt-1.5.13-r1.ebuild 4366
+RMD160 1130ba2ab508976cd93afb95ec2bb76aa6830d05 mutt-1.5.13-r1.ebuild 4366
+SHA256 326cb1dd7ef9d9b0531b016fdd76a9a14e8be38106eae8822924c6e028411f2f mutt-1.5.13-r1.ebuild 4366
EBUILD mutt-1.5.13.ebuild 4301 RMD160 09cdd1441ab14582118b7d6064c4f39d70cf89b4 SHA1 440347cdeb2bfcded35f452460cd6d13618bf17b SHA256 381ee7558b9ab307f2c892ce233d7c93053f89bb9cdbc4d9214db93395b6e33d
MD5 b1f3b2240eabe83924183f7d62ef99aa mutt-1.5.13.ebuild 4301
RMD160 09cdd1441ab14582118b7d6064c4f39d70cf89b4 mutt-1.5.13.ebuild 4301
SHA256 381ee7558b9ab307f2c892ce233d7c93053f89bb9cdbc4d9214db93395b6e33d mutt-1.5.13.ebuild 4301
-MISC ChangeLog 22792 RMD160 10cd17d592774bdeb2e93f36453cff720b6dbbb0 SHA1 6b4dcf219a40cee7f471ca95f85cd1efa58677a3 SHA256 3bea03cd38729be86305a25424a16490f4598617035ee381c8967b59f58c977a
-MD5 3a44271ae80a545c48ffbc7609eb9515 ChangeLog 22792
-RMD160 10cd17d592774bdeb2e93f36453cff720b6dbbb0 ChangeLog 22792
-SHA256 3bea03cd38729be86305a25424a16490f4598617035ee381c8967b59f58c977a ChangeLog 22792
+MISC ChangeLog 23057 RMD160 5dcd5d05c55974614e13545feeab9cc8e01662f9 SHA1 802370667eacd21128babb252f4e961fd3fbfeea SHA256 46fe3efad8db432ff7c616863ceabaff4f382028070dffeec6efccfede8f3b71
+MD5 4142da67f06a5cc47417ebcea243c704 ChangeLog 23057
+RMD160 5dcd5d05c55974614e13545feeab9cc8e01662f9 ChangeLog 23057
+SHA256 46fe3efad8db432ff7c616863ceabaff4f382028070dffeec6efccfede8f3b71 ChangeLog 23057
MISC metadata.xml 348 RMD160 67219e2080107537dc52f7de5c201a8e52ee0270 SHA1 8aa712f8642faf21ab136add0670cba3f8dc15d4 SHA256 a8c434275334e18b2e8c1b68fc88b5a1f6faef5a4344267d7ed708c0794b386d
MD5 ab8fa36a71860fbc36c89a2c91745d28 metadata.xml 348
RMD160 67219e2080107537dc52f7de5c201a8e52ee0270 metadata.xml 348
@@ -71,10 +79,13 @@ SHA256 64309746568f2c03699ad975a9db071fef8fc95a9bcb4e081d54d921fc33057a files/di
MD5 3b282ac21c711571ace7792a326aa732 files/digest-mutt-1.5.13 518
RMD160 f387b5242f64a563bd837a34af0123debb09a151 files/digest-mutt-1.5.13 518
SHA256 e79af34a5a8d834a2f5556020b501596f7bdc9a82eaf73896e2e60ebac2a029a files/digest-mutt-1.5.13 518
+MD5 3b282ac21c711571ace7792a326aa732 files/digest-mutt-1.5.13-r1 518
+RMD160 f387b5242f64a563bd837a34af0123debb09a151 files/digest-mutt-1.5.13-r1 518
+SHA256 e79af34a5a8d834a2f5556020b501596f7bdc9a82eaf73896e2e60ebac2a029a files/digest-mutt-1.5.13-r1 518
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
-iD8DBQFE++llViELBEf1JB0RAomYAJwLvYB2IGp6X6FJmYo71mLK+SBmUACgglqs
-+oPPlRHL0EKCGW2sBLg0dqo=
-=72vz
+iD8DBQFFBRm0ViELBEf1JB0RAlU4AJ9bNMWu7DWG7n3MQLuFlG6XI86uvwCfZ+4H
+0hI1Izmwmxp6z7UiliSQZlQ=
+=7tkH
-----END PGP SIGNATURE-----
diff --git a/mail-client/mutt/files/digest-mutt-1.5.13-r1 b/mail-client/mutt/files/digest-mutt-1.5.13-r1
new file mode 100644
index 000000000000..d0fb93f3637b
--- /dev/null
+++ b/mail-client/mutt/files/digest-mutt-1.5.13-r1
@@ -0,0 +1,6 @@
+MD5 b4fccb735c0277bc6c659eb287d65b13 mutt-1.5.13-gentoo-patches.tar.bz2 53418
+RMD160 67274bef651c1c78d1e6878d8bb17316abf9d30e mutt-1.5.13-gentoo-patches.tar.bz2 53418
+SHA256 b0a8737ab8ec42b5f071eb08356a2572c49f98c73c3bf42396fd481c4650ef1d mutt-1.5.13-gentoo-patches.tar.bz2 53418
+MD5 456a138680a6726f14983cb3e9ff4e22 mutt-1.5.13.tar.gz 3442681
+RMD160 9327b7f928aad78a20c2395629113ac2519bb945 mutt-1.5.13.tar.gz 3442681
+SHA256 e0481690c0caf23b5c88359b2dbac70308f8f138663e8fee482b163562fe8da9 mutt-1.5.13.tar.gz 3442681
diff --git a/mail-client/mutt/files/mutt-1.5.13-sasl.patch b/mail-client/mutt/files/mutt-1.5.13-sasl.patch
new file mode 100644
index 000000000000..7cefa2ee1a85
--- /dev/null
+++ b/mail-client/mutt/files/mutt-1.5.13-sasl.patch
@@ -0,0 +1,74 @@
+
+# HG changeset patch
+# User Brendan Cully <brendan@kublai.com>
+# Date 1157736633 0
+# Node ID 4b8ef24b823e8295d58f599cb1d7014270dec064
+# Parent 6fd5fb51a9dc102a1b39dcda26201c60215ee954
+Don't send protocol garbage to sasl_decode64 during POP authentication.
+Also enable SASL plaintext: $foo_authenticators is a more general solution.
+
+--- a/mutt_sasl.c Fri Sep 08 15:45:57 2006 +0000
++++ b/mutt_sasl.c Fri Sep 08 17:30:33 2006 +0000
+@@ -221,15 +221,10 @@ int mutt_sasl_client_new (CONNECTION* co
+ return -1;
+ }
+
+- /* set security properties. We use NOPLAINTEXT globally, since we can
+- * just fall back to LOGIN in the IMAP case anyway. If that doesn't
+- * work for POP, we can make it a flag or move this code into
+- * imap/auth_sasl.c */
+ memset (&secprops, 0, sizeof (secprops));
+ /* Work around a casting bug in the SASL krb4 module */
+ secprops.max_ssf = 0x7fff;
+ secprops.maxbufsize = M_SASL_MAXBUF;
+- secprops.security_flags |= SASL_SEC_NOPLAINTEXT;
+ if (sasl_setprop (*saslconn, SASL_SEC_PROPS, &secprops) != SASL_OK)
+ {
+ dprint (1, (debugfile,
+--- a/pop_auth.c Fri Sep 08 15:45:57 2006 +0000
++++ b/pop_auth.c Fri Sep 08 17:30:33 2006 +0000
+@@ -46,8 +46,7 @@ static pop_auth_res_t pop_auth_sasl (POP
+ char inbuf[LONG_STRING];
+ const char* mech;
+ const char *pc = NULL;
+- unsigned int len, olen;
+- unsigned char client_start;
++ unsigned int len, olen, client_start;
+
+ if (mutt_sasl_client_new (pop_data->conn, &saslconn) < 0)
+ {
+@@ -74,7 +73,7 @@ static pop_auth_res_t pop_auth_sasl (POP
+ return POP_A_UNAVAIL;
+ }
+
+- client_start = (olen > 0);
++ client_start = olen;
+
+ mutt_message _("Authenticating (SASL)...");
+
+@@ -93,11 +92,11 @@ static pop_auth_res_t pop_auth_sasl (POP
+ return POP_A_SOCKET;
+ }
+
+- if (rc != SASL_CONTINUE)
++ if (!client_start && rc != SASL_CONTINUE)
+ break;
+
+ if (!mutt_strncmp (inbuf, "+ ", 2)
+- && sasl_decode64 (inbuf, strlen (inbuf), buf, LONG_STRING-1, &len) != SASL_OK)
++ && sasl_decode64 (inbuf+2, strlen (inbuf+2), buf, LONG_STRING-1, &len) != SASL_OK)
+ {
+ dprint (1, (debugfile, "pop_auth_sasl: error base64-decoding server response.\n"));
+ goto bail;
+@@ -112,7 +111,10 @@ static pop_auth_res_t pop_auth_sasl (POP
+ mutt_sasl_interact (interaction);
+ }
+ else
++ {
++ olen = client_start;
+ client_start = 0;
++ }
+
+ if (rc != SASL_CONTINUE && (olen == 0 || rc != SASL_OK))
+ break;
+
diff --git a/mail-client/mutt/mutt-1.5.13-r1.ebuild b/mail-client/mutt/mutt-1.5.13-r1.ebuild
new file mode 100644
index 000000000000..ed9ece368925
--- /dev/null
+++ b/mail-client/mutt/mutt-1.5.13-r1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.13-r1.ebuild,v 1.1 2006/09/11 08:08:54 ferdy Exp $
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="a small but very powerful text-based mail client"
+HOMEPAGE="http://www.mutt.org"
+SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz
+ !vanilla? (
+ mirror://gentoo/${P}-gentoo-patches.tar.bz2
+ )"
+IUSE="berkdb buffysize cjk crypt debug gdbm gnutls gpgme idn imap mbox nls nntp pop sasl smime ssl vanilla"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
+RDEPEND="nls? ( sys-devel/gettext )
+ >=sys-libs/ncurses-5.2
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( berkdb? ( >=sys-libs/db-4 ) )
+ imap? (
+ gnutls? ( >=net-libs/gnutls-1.0.17 )
+ !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ )
+ pop? (
+ gnutls? ( >=net-libs/gnutls-1.0.17 )
+ !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ )
+ idn? ( net-dns/libidn )
+ gpgme? ( >=app-crypt/gpgme-0.9.0 )
+ smime? ( >=dev-libs/openssl-0.9.6 )
+ app-misc/mime-types"
+DEPEND="${RDEPEND}
+ net-mail/mailbase"
+
+PATCHDIR="${WORKDIR}"/${P}-gentoo-patches
+
+src_unpack() {
+ unpack ${A} && cd "${S}" || die "unpack failed"
+
+ # Fix for bug #146696
+ epatch "${FILESDIR}"/${P}-sasl.patch
+
+ if ! use vanilla ; then
+ if ! use nntp ; then
+ rm "${PATCHDIR}"/07-vvv.nntp-gentoo.patch
+ rm "${PATCHDIR}"/08-mixmaster_nntp.patch
+ fi
+
+ for p in "${PATCHDIR}"/*.patch ; do
+ epatch "${p}"
+ done
+
+ AT_M4DIR="m4" eautoreconf
+ else
+ eautoconf
+ fi
+}
+
+src_compile() {
+ declare myconf="
+ $(use_enable nls) \
+ $(use_enable gpgme) \
+ $(use_enable imap) \
+ $(use_enable pop) \
+ $(use_enable crypt pgp) \
+ $(use_enable smime) \
+ $(use_enable cjk default-japanese) \
+ $(use_enable debug) \
+ $(use_with idn) \
+ --with-curses \
+ --sysconfdir=/etc/${PN} \
+ --with-docdir=/usr/share/doc/${PN}-${PVR} \
+ --with-regex \
+ --disable-fcntl --enable-flock \
+ --enable-nfs-fix --enable-external-dotlock \
+ --with-mixmaster"
+
+ # See Bug #22787
+ unset WANT_AUTOCONF_2_5 WANT_AUTOCONF
+
+ # mutt prioritizes gdbm over bdb, so we will too.
+ # hcache feature requires at least one database is in USE.
+ if use gdbm; then
+ myconf="${myconf} --enable-hcache --with-gdbm --without-bdb"
+ elif use berkdb; then
+ myconf="${myconf} --enable-hcache --with-bdb --without-gdbm"
+ else
+ myconf="${myconf} --disable-hcache --without-gdbm --without-bdb"
+ fi
+
+ # there's no need for gnutls, ssl or sasl without either pop or imap.
+ # in fact mutt's configure will bail if you do:
+ # --without-pop --without-imap --with-ssl
+ if use pop || use imap; then
+ if use gnutls; then
+ myconf="${myconf} --with-gnutls"
+ elif use ssl; then
+ myconf="${myconf} --with-ssl"
+ fi
+ # not sure if this should be mutually exclusive with the other two
+ myconf="${myconf} $(use_with sasl)"
+ else
+ myconf="${myconf} --without-gnutls --without-ssl --without-sasl"
+ fi
+
+ # See Bug #11170
+ case ${ARCH} in
+ alpha|ppc) replace-flags "-O[3-9]" "-O2" ;;
+ esac
+
+ if use buffysize; then
+ ewarn "USE=buffy-size is just a workaround. Disable it if you don't need it."
+ myconf="${myconf} --enable-buffy-size"
+ fi
+
+ if use mbox; then
+ myconf="${myconf} --with-mailpath=/var/spool/mail"
+ else
+ myconf="${myconf} --with-homespool=Maildir"
+ fi
+
+ if ! use vanilla; then
+ # rr.compressed patch
+ myconf="${myconf} --enable-compressed"
+
+ # nntp patch
+ myconf="${myconf} $(use_enable nntp)"
+ fi
+
+ econf ${myconf} || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+ find ${D}/usr/share/doc -type f | grep -v "html\|manual" | xargs gzip
+ if use mbox; then
+ insinto /etc/mutt
+ newins ${FILESDIR}/Muttrc.mbox Muttrc
+ else
+ insinto /etc/mutt
+ doins ${FILESDIR}/Muttrc
+ fi
+
+ # A newer file is provided by app-misc/mime-types. So we link it.
+ rm ${D}/etc/${PN}/mime.types
+ dosym /etc/mime.types /etc/${PN}/mime.types
+
+ dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
+}
+
+pkg_postinst() {
+ echo
+ einfo "If you are new to mutt you may want to take a look at"
+ einfo "the Gentoo QuickStart Guide to Mutt E-Mail:"
+ einfo " http://www.gentoo.org/doc/en/guide-to-mutt.xml"
+ echo
+}