From ed@zonk.fxq.nl  Mon Mar 20 18:48:46 2006
Return-Path: <ed@zonk.fxq.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E0D0C16A400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Mar 2006 18:48:46 +0000 (UTC)
	(envelope-from ed@zonk.fxq.nl)
Received: from swip.net (mailfe08.swip.net [212.247.154.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 21F6943D68
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Mar 2006 18:48:42 +0000 (GMT)
	(envelope-from ed@zonk.fxq.nl)
Received: from [83.180.9.202] (HELO zonk.fxq.nl)
  by mailfe08.swip.net (CommuniGate Pro SMTP 5.0.8)
  with ESMTPS id 157717168 for FreeBSD-gnats-submit@freebsd.org; Mon, 20 Mar 2006 19:48:41 +0100
Received: from zonk.fxq.nl (localhost [127.0.0.1])
	by zonk.fxq.nl (8.13.4/8.13.4) with ESMTP id k2KImido026807
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Mar 2006 19:48:44 +0100 (CET)
	(envelope-from ed@zonk.fxq.nl)
Received: (from ed@localhost)
	by zonk.fxq.nl (8.13.4/8.13.4/Submit) id k2KImiXO026806;
	Mon, 20 Mar 2006 19:48:44 +0100 (CET)
	(envelope-from ed)
Message-Id: <200603201848.k2KImiXO026806@zonk.fxq.nl>
Date: Mon, 20 Mar 2006 19:48:44 +0100 (CET)
From: Ed Schouten <ed@fxq.nl>
Reply-To: Ed Schouten <ed@fxq.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [mail/mutt-devel] Add a gpgme switch
X-Send-Pr-Version: 3.113
X-GNATS-Notify: udo.schweigert@siemens.com

>Number:         94745
>Category:       ports
>Synopsis:       mail/mutt-devel: Add a gpgme switch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 20 18:50:16 GMT 2006
>Closed-Date:    Tue Mar 21 10:10:47 GMT 2006
>Last-Modified:  Tue Mar 21 10:10:47 GMT 2006
>Originator:     Ed Schouten
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
n/a
>Environment:
System: FreeBSD zonk.fxq.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Mar 19 18:58:46 CET 2006 root@zonk.fxq.nl:/usr/obj/export/src/sys/ZONK i386

>Description:
A cool thing about the development branch of the gnupg application is
the gpgme library, which allows you to write applications using gnupg in
an easy manner (instead of throwing messages through pipes and such).

As of Mutt 1.5.<insert the correct number here>, there are compilation
switches called '--{en,dis}able-gpgme', which allows you to link Mutt
against the gpgme library, so you can just add the line 'set
crypt_use_gpgme' to your muttrc, instead of that awful 'set
pgp_..._command' stuff.

>How-To-Repeat:
Install mail/mutt-devel from Ports. You won't be able to use it
in combination with gpgme.

>Fix:
Voila :)

%%%
--- mail/mutt-devel/Makefile	Fri Mar 17 12:24:16 2006
+++ mail/mutt-devel/Makefile	Mon Mar 20 19:39:53 2006
@@ -45,6 +45,9 @@
 # If you want mutt to use the idn library define:
 #  WITH_MUTT_IDN
 #
+# If you want to make use of the gpgme interface define:
+#  WITH_MUTT_GPGME
+#
 # If you want to enable extended quoting functions define:
 #  WITH_MUTT_QUOTE_PATCH
 #  This is a default knob and can be disabled by WITHOUT_MUTT_QUOTE_PATCH
@@ -362,6 +365,12 @@
 CONFIGURE_ARGS+=	--with-idn
 .else
 CONFIGURE_ARGS+=	--without-idn
+.endif
+.if defined(WITH_MUTT_GPGME)
+LIB_DEPENDS+=	gpgme:${PORTSDIR}/security/gpgme
+CONFIGURE_ARGS+=	--enable-gpgme
+.else
+CONFIGURE_ARGS+=	--disable-gpgme
 .endif
 
 PATCH_DIST_STRIP=	-p1
%%%

I also tested it on my workstation:

	http://g-rave.nl/junk/mutt-gpgme.png
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 20 18:56:12 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94745 

From: Udo Schweigert <Udo.Schweigert@siemens.com>
To: bug-followup@FreeBSD.org, edwin@FreeBSD.org
Cc: Udo Schweigert <Udo.Schweigert@siemens.com>
Subject: Re: ports/94745: [mail/mutt-devel] Add a gpgme switch
Date: Mon, 20 Mar 2006 20:45:12 +0100

 Please commit this patch:
 
 diff -ru  /usr/ports/mail/mutt-devel/Makefile ./Makefile
 --- /usr/ports/mail/mutt-devel/Makefile	Sat Mar 18 06:07:30 2006
 +++ ./Makefile	Mon Mar 20 20:02:55 2006
 @@ -45,6 +45,9 @@
  # If you want mutt to use the idn library define:
  #  WITH_MUTT_IDN
  #
 +# If you want to make use of the gpgme interface define:
 +#  WITH_MUTT_GPGME
 +#
  # If you want to enable extended quoting functions define:
  #  WITH_MUTT_QUOTE_PATCH
  #  This is a default knob and can be disabled by WITHOUT_MUTT_QUOTE_PATCH
 @@ -297,6 +300,9 @@
  .if defined(WITH_MUTT_IDN)
  LIB_DEPENDS+=	idn:${PORTSDIR}/dns/libidn
  .endif
 +.if defined(WITH_MUTT_GPGME)
 +LIB_DEPENDS+=	gpgme:${PORTSDIR}/security/gpgme
 +.endif
  .if ! defined(WITHOUT_MUTT_SMIME_OUTLOOK_COMPAT)
  post-patch::
  	@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-smime-outlook
 @@ -362,6 +368,11 @@
  CONFIGURE_ARGS+=	--with-idn
  .else
  CONFIGURE_ARGS+=	--without-idn
 +.endif
 +.if defined(WITH_MUTT_GPGME)
 +CONFIGURE_ARGS+=	--enable-gpgme
 +.else
 +CONFIGURE_ARGS+=	--disable-gpgme
  .endif
  
  PATCH_DIST_STRIP=	-p1
State-Changed-From-To: feedback->open 
State-Changed-By: garga 
State-Changed-When: Mon Mar 20 22:06:50 UTC 2006 
State-Changed-Why:  
Feedback recieved 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94745 
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: garga 
Responsible-Changed-When: Mon Mar 20 22:07:00 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94745 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Tue Mar 21 10:10:45 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

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