From vd@datamax.bg  Wed Apr 20 16:15:56 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D8E6816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Apr 2005 16:15:56 +0000 (GMT)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1087543D39
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Apr 2005 16:15:56 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1])
	by jengal.datamax.bg (Postfix) with QMQP id 096CF87CB
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Apr 2005 19:15:55 +0300 (EEST)
Received: (nullmailer pid 20729 invoked by uid 1004);
	Wed, 20 Apr 2005 16:15:55 -0000
Message-Id: <1114013755.056814.20728.nullmailer@sinanica.bg.datamax>
Date: Wed, 20 Apr 2005 19:15:55 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: Vasil Dimov <vd@datamax.bg>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Update port: security/gnupg to 1.4.1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80157
>Category:       ports
>Synopsis:       Update port: security/gnupg to 1.4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 20 16:20:19 GMT 2005
>Closed-Date:    Sun Apr 24 04:42:41 GMT 2005
>Last-Modified:  Sun Apr 24 04:42:41 GMT 2005
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:
System: FreeBSD sinanica.bg.datamax 5.4-STABLE FreeBSD 5.4-STABLE #5: Mon Apr 11 14:07:32 EEST 2005 root@sinanica.bg.datamax:/usr/obj/usr/src/sys/SINANICA-SMP i386


	
>Description:
	files/patch-cfb is not needed anymore - same changes applied in
	the distribution.

	keyserver/gpgkeys_mailto is not installed anymore (by default) so
	remove it from pkg-plist. If we need this file then more work
	must be done before updating the port.
>How-To-Repeat:
	
>Fix:

	

--- gnupg_update-1.4.0-1.4.1.diff begins here ---
diff -urN gnupg-1.4.0/Makefile gnupg/Makefile
--- gnupg-1.4.0/Makefile	Wed Apr 13 02:22:03 2005
+++ gnupg/Makefile	Wed Apr 20 18:09:47 2005
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	gnupg
-PORTVERSION=	1.4.0
-PORTREVISION?=	1
+PORTVERSION=	1.4.1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GNUPG}
 MASTER_SITE_SUBDIR=	gnupg
diff -urN gnupg-1.4.0/distinfo gnupg/distinfo
--- gnupg-1.4.0/distinfo	Tue Feb  1 10:38:58 2005
+++ gnupg/distinfo	Wed Apr 20 18:13:43 2005
@@ -1,4 +1,4 @@
-MD5 (gnupg-1.4.0.tar.bz2) = 8c303606aaf73b7756b9fe6f3d8b58c2
-SIZE (gnupg-1.4.0.tar.bz2) = 2722669
-MD5 (gnupg-1.4.0.tar.bz2.sig) = bdfb7093cf5d76d1b69e9b577e9d8514
-SIZE (gnupg-1.4.0.tar.bz2.sig) = 65
+MD5 (gnupg-1.4.1.tar.bz2) = fdfc5553d0904cd65011e47a42a9532c
+SIZE (gnupg-1.4.1.tar.bz2) = 2822791
+MD5 (gnupg-1.4.1.tar.bz2.sig) = 440038771606d59e9cbc153cccdbac55
+SIZE (gnupg-1.4.1.tar.bz2.sig) = 65
diff -urN gnupg-1.4.0/files/patch-cfb gnupg/files/patch-cfb
--- gnupg-1.4.0/files/patch-cfb	Sat Feb 12 11:29:35 2005
+++ gnupg/files/patch-cfb	Thu Jan  1 02:00:00 1970
@@ -1,48 +0,0 @@
-Index: include/cipher.h
-===================================================================
-RCS file: /cvs/gnupg/gnupg/include/cipher.h,v
-retrieving revision 1.63
-diff -u -r1.63 cipher.h
---- include/cipher.h	29 Nov 2004 21:14:18 -0000	1.63
-+++ include/cipher.h	8 Feb 2005 04:10:29 -0000
-@@ -75,6 +75,7 @@
-     int keylen;
-     int algo_info_printed;
-     int use_mdc;
-+    int symmetric;
-     byte key[32]; /* this is the largest used keylen (256 bit) */
- } DEK;
-
-Index: g10/mainproc.c
-===================================================================
-RCS file: /cvs/gnupg/gnupg/g10/mainproc.c,v
-retrieving revision 1.161
-diff -u -r1.161 mainproc.c
---- g10/mainproc.c	21 Oct 2004 19:18:47 -0000	1.161
-+++ g10/mainproc.c	8 Feb 2005 04:10:30 -0000
-@@ -330,6 +330,8 @@
-
- 	    if(c->dek)
- 	      {
-+		c->dek->symmetric=1;
-+
- 		/* FIXME: This doesn't work perfectly if a symmetric
- 		   key comes before a public key in the message - if
- 		   the user doesn't know the passphrase, then there is
-Index: g10/encr-data.c
-===================================================================
-RCS file: /cvs/gnupg/gnupg/g10/encr-data.c,v
-retrieving revision 1.30
-diff -u -r1.30 encr-data.c
---- g10/encr-data.c	8 Oct 2004 21:54:26 -0000	1.30
-+++ g10/encr-data.c	8 Feb 2005 04:10:30 -0000
-@@ -125,7 +125,7 @@
-     cipher_sync( dfx.cipher_hd );
-     p = temp;
- /* log_hexdump( "prefix", temp, nprefix+2 ); */
--    if( p[nprefix-2] != p[nprefix] || p[nprefix-1] != p[nprefix+1] ) {
-+    if( dek->symmetric && (p[nprefix-2] != p[nprefix] || p[nprefix-1] != p[nprefix+1]) ) {
- 	rc = G10ERR_BAD_KEY;
- 	goto leave;
-     }
-
diff -urN gnupg-1.4.0/pkg-plist gnupg/pkg-plist
--- gnupg-1.4.0/pkg-plist	Tue Feb  1 10:38:58 2005
+++ gnupg/pkg-plist	Wed Apr 20 18:58:38 2005
@@ -5,7 +5,6 @@
 libexec/gnupg/gpgkeys_finger
 libexec/gnupg/gpgkeys_hkp
 libexec/gnupg/gpgkeys_http
-libexec/gnupg/gpgkeys_mailto
 @dirrm libexec/gnupg
 %%DATADIR%%/FAQ
 %%DATADIR%%/faq.html
--- gnupg_update-1.4.0-1.4.1.diff ends here ---


>Release-Note:
>Audit-Trail:
Class-Changed-From-To: maintainer-update->update 
Class-Changed-By: leeym 
Class-Changed-When: Wed Apr 20 16:35:55 GMT 2005 
Class-Changed-Why:  
Over to the maintainer. 



Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: leeym 
Responsible-Changed-When: Wed Apr 20 16:35:55 GMT 2005 
Responsible-Changed-Why:  
Over to the maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=80157 
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Sun Apr 24 04:09:40 GMT 2005 
State-Changed-Why:  

I've already been using this version of gnupg for a while 
now. Kuriyama-san, if you don't have time to do this commit, 
I'm happy to help out. 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80157 
State-Changed-From-To: analyzed->closed 
State-Changed-By: kuriyama 
State-Changed-When: Sun Apr 24 04:42:23 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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

The patch-cfb file should definitely be removed, but here is a patch
for the rest of the port which does not remove gpgkeys_mailto:


Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/gnupg/Makefile,v
retrieving revision 1.77
diff -u -r1.77 Makefile
--- Makefile	12 Apr 2005 03:26:27 -0000	1.77
+++ Makefile	24 Apr 2005 04:04:48 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	gnupg
-PORTVERSION=	1.4.0
-PORTREVISION?=	1
+PORTVERSION=	1.4.1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GNUPG}
 MASTER_SITE_SUBDIR=	gnupg
@@ -21,6 +20,8 @@
 USE_GMAKE=	YES
 GNU_CONFIGURE=	YES
 CONFIGURE_TARGET=	--build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS=	--enable-mailto
+
 .if ${MACHINE_CPU:Mi586}
 MACHINE_ARCH=	i586
 .endif
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/security/gnupg/distinfo,v
retrieving revision 1.30
diff -u -r1.30 distinfo
--- distinfo	29 Dec 2004 15:40:42 -0000	1.30
+++ distinfo	24 Apr 2005 04:04:48 -0000
@@ -1,4 +1,4 @@
-MD5 (gnupg-1.4.0.tar.bz2) = 8c303606aaf73b7756b9fe6f3d8b58c2
-SIZE (gnupg-1.4.0.tar.bz2) = 2722669
-MD5 (gnupg-1.4.0.tar.bz2.sig) = bdfb7093cf5d76d1b69e9b577e9d8514
-SIZE (gnupg-1.4.0.tar.bz2.sig) = 65
+MD5 (gnupg-1.4.1.tar.bz2) = fdfc5553d0904cd65011e47a42a9532c
+SIZE (gnupg-1.4.1.tar.bz2) = 2822791
+MD5 (gnupg-1.4.1.tar.bz2.sig) = 440038771606d59e9cbc153cccdbac55
+SIZE (gnupg-1.4.1.tar.bz2.sig) = 65
