From sgk@outpost.globcon.net  Sun Mar 16 12:49:47 2003
Return-Path: <sgk@outpost.globcon.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 68A7437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Mar 2003 12:49:47 -0800 (PST)
Received: from outpost.lukarcos.com (outpost.globcon.net [62.141.88.161])
	by mx1.FreeBSD.org (Postfix) with SMTP id 077B343F85
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Mar 2003 12:49:46 -0800 (PST)
	(envelope-from sgk@outpost.globcon.net)
Received: (qmail 60633 invoked by uid 911); 16 Mar 2003 20:49:47 -0000
Message-Id: <20030316204947.60632.qmail@outpost.globcon.net>
Date: 16 Mar 2003 20:49:47 -0000
From: Sergei Kolobov <sergei@kolobov.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: udo.schweigert@siemens.com
Subject: [PATCH] mail/mutt-devel: add maildir cache patch
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50055
>Category:       ports
>Synopsis:       [PATCH] mail/mutt-devel: add maildir cache patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 12:50:14 PST 2003
>Closed-Date:    Tue Mar 25 00:49:49 PST 2003
>Last-Modified:  Tue Mar 25 00:49:49 PST 2003
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Oct 14 02:23:23 MSD 2002     sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST  i386
>Description:
- Add a new compile-time knob: WITH_MUTT_MAILDIR_CACHE

Tested on 4.8-RC and 5.0-CURRENT.

Port maintainer - udo.schweigert@siemens.com - has been copied.
>How-To-Repeat:
>Fix:

--- mutt-devel-1.5.3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/mutt-devel/Makefile,v
retrieving revision 1.187
diff -u -r1.187 Makefile
--- Makefile	2003/02/21 12:42:18	1.187
+++ Makefile	2003/03/16 20:47:28
@@ -65,6 +65,9 @@
 #
 # If you want to use the ifdef feature define:
 #  WITH_MUTT_IFDEF_PATCH
+#
+# If you want to use the maildir cache feature define:
+#  WITH_MUTT_MAILDIR_CACHE
 
 PORTNAME=	mutt-devel
 PORTVERSION=	1.5.3
@@ -235,6 +238,15 @@
 .endif
 .if defined(WITH_MUTT_MBOX_HOOK_PATCH)
 PATCHFILES+=	p0-patch-${PATCH_VERSION}.dw.mbox-hook.1:dw
+.endif
+.if defined(WITH_MUTT_MAILDIR_CACHE)
+PATCH_SITES+=	http://www.cs.hmc.edu/~me/mutt/:me
+PATCHFILES+=	patch-1.5.2.me.hcache.1:me
+CONFIGURE_ARGS+=	--enable-cache
+
+# This is a hack until the patch is updated for 1.5.3
+pre-patch:
+	${REINPLACE_CMD} -e 's/me@mutt.org/me@cs.hmc.edu/' ${WRKSRC}/protos.h
 .endif
 
 WRKSRC=		${WRKDIR}/${DISTNAME:S/i$//}
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/mail/mutt-devel/distinfo,v
retrieving revision 1.79
diff -u -r1.79 distinfo
--- distinfo	2003/01/24 22:17:58	1.79
+++ distinfo	2003/03/16 20:47:28
@@ -7,3 +7,4 @@
 MD5 (mutt/patch-1.5.3.cd.signatures_menu.2.1) = 6db636f0004e73ee2d9f577acd4ed380
 MD5 (mutt/patch-1.5.3.cd.ifdef.1) = 01b47e075364834b82da053cac4eb69f
 MD5 (mutt/p0-patch-1.5.3.dw.mbox-hook.1) = e7a0a57023cfdfd909f6040e632fff1f
+MD5 (mutt/patch-1.5.2.me.hcache.1) = 097b7e1af6f5130a2cd12b113b16bf4c
--- mutt-devel-1.5.3.patch ends here ---

>Release-Note:
>Audit-Trail:

From: Udo Schweigert <Udo.Schweigert@siemens.com>
To: Sergei Kolobov <sergei@kolobov.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, udo.schweigert@siemens.com
Subject: Re: ports/50055: [PATCH] mail/mutt-devel: add maildir cache patch
Date: Mon, 17 Mar 2003 08:20:53 +0100

 I approve this, but the following patch for distinfo should be used because
 another patch changed:
 
 diff -ru  /usr/ports/mail/mutt-devel/distinfo ./distinfo
 --- /usr/ports/mail/mutt-devel/distinfo	Mon Mar 17 08:09:24 2003
 +++ ./distinfo	Mon Mar 17 08:11:54 2003
 @@ -6,4 +6,5 @@
  MD5 (mutt/patch-1.5.3.cd.edit_threads.9.3) = 753a19d8efdece04cd521c3a3079dc9f
  MD5 (mutt/patch-1.5.3.cd.signatures_menu.2.1) = 6db636f0004e73ee2d9f577acd4ed380
  MD5 (mutt/patch-1.5.3.cd.ifdef.1) = 01b47e075364834b82da053cac4eb69f
 -MD5 (mutt/p0-patch-1.5.3.dw.mbox-hook.1) = e7a0a57023cfdfd909f6040e632fff1f
 +MD5 (mutt/p0-patch-1.5.3.dw.mbox-hook.1) = 09f9b4229a2d63c81cfee7e1d811f84f
 +MD5 (mutt/patch-1.5.2.me.hcache.1) = 097b7e1af6f5130a2cd12b113b16bf4c
 
 
 Best regards
 
 --
 Udo Schweigert, Siemens AG   | Voice      : +49 89 636 42170
 CT IC CERT, Siemens CERT     | Fax        : +49 89 636 41166
 D-81730 Muenchen / Germany   | email      : udo.schweigert@siemens.com
State-Changed-From-To: open->closed 
State-Changed-By: obraun 
State-Changed-When: Tue Mar 25 00:48:52 PST 2003 
State-Changed-Why:  
Requested by maintainer. 
This no longer works since the update to port version 1.5.4. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50055 
>Unformatted:
