summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-12-18 17:49:51 +0000
committerdrochner <drochner@pkgsrc.org>2009-12-18 17:49:51 +0000
commit3b935903e3255d97cfeb682655e4141b584743c8 (patch)
tree4a5299fc769451bda161504ce2037e0bd137c202 /security
parentdd3d0eadd1370c3b2d1fdaf5deb6d62a2bfc09ce (diff)
downloadpkgsrc-3b935903e3255d97cfeb682655e4141b584743c8.tar.gz
kill the "idea" option -- gnupg2 uses libgcrypt which used to have
an "idea" option, but that was removed more than a year ago when it got updated from 1.2 to 1.4 The patch was was used on gnupg2 in the "idea" case was just a four-line memory initialization fix, there is no point in LICENSE restrictions due to this, so I've pulled it in as regular patch so that it doesn't get lost for the case someone fixes idea support in libgcrypt (which isn't hard).
Diffstat (limited to 'security')
-rw-r--r--security/gnupg2/buildlink3.mk13
-rw-r--r--security/gnupg2/distinfo3
-rw-r--r--security/gnupg2/options.mk17
-rw-r--r--security/gnupg2/patches/patch-al17
4 files changed, 22 insertions, 28 deletions
diff --git a/security/gnupg2/buildlink3.mk b/security/gnupg2/buildlink3.mk
index d221cc38c8e..228cf99abd4 100644
--- a/security/gnupg2/buildlink3.mk
+++ b/security/gnupg2/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2009/03/20 19:25:17 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2009/12/18 17:49:51 drochner Exp $
BUILDLINK_TREE+= gnupg2
@@ -9,17 +9,6 @@ BUILDLINK_API_DEPENDS.gnupg2+= gnupg2>=2.0.0
BUILDLINK_PKGSRCDIR.gnupg2?= ../../security/gnupg2
BUILDLINK_PREFIX.gnupg2?= ${LOCALBASE}
-pkgbase:= gnupg2
-.include "../../mk/pkg-build-options.mk"
-
-. if !empty(PKG_BUILD_OPTIONS.gnupg2:Midea)
-pkgbase:= libgcrypt
-. include "../../mk/pkg-build-options.mk"
-. if empty(PKG_BUILD_OPTIONS.libgcrypt:Midea)
-PKGSRC_MAKE_ENV+= PKG_OPTIONS.libgcrypt+=idea
-. endif
-. endif
-
.include "../../security/libgpg-error/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../security/libksba/buildlink3.mk"
diff --git a/security/gnupg2/distinfo b/security/gnupg2/distinfo
index 7f2468dad78..d7178b2f4bb 100644
--- a/security/gnupg2/distinfo
+++ b/security/gnupg2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2009/12/16 18:52:49 drochner Exp $
+$NetBSD: distinfo,v 1.15 2009/12/18 17:49:51 drochner Exp $
SHA1 (gnupg-2.0.13.tar.bz2) = 2ff42aff14cdddafc291d44ac1968af5f09a9d4d
RMD160 (gnupg-2.0.13.tar.bz2) = a2291f4d5923b50bca980b726e2fe0c31c2589a9
@@ -17,3 +17,4 @@ SHA1 (patch-ah) = 0c9e061611ebfe22441a161aca016436a70ccc60
SHA1 (patch-ai) = 555b8768c30f470e98e5be62a4a4bea29eefdf78
SHA1 (patch-aj) = 20be6b455167962ffa556979d8d0f167dd14131e
SHA1 (patch-ak) = 74b26ce441ea99ff28a09a3f0c643456daf48f35
+SHA1 (patch-al) = ef7c698ed102c4e27bbf707ae5d1fce4c2b5d8d4
diff --git a/security/gnupg2/options.mk b/security/gnupg2/options.mk
index 80715b4fad0..6acf77fd55a 100644
--- a/security/gnupg2/options.mk
+++ b/security/gnupg2/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.3 2009/12/15 20:10:41 drochner Exp $
+# $NetBSD: options.mk,v 1.4 2009/12/18 17:49:51 drochner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg2
-PKG_SUPPORTED_OPTIONS= gpgsm idea
+PKG_SUPPORTED_OPTIONS= gpgsm
PKG_SUGGESTED_OPTIONS= gpgsm
.include "../../mk/bsd.prefs.mk"
@@ -24,16 +24,3 @@ CONFIGURE_ARGS+= --with-dirmngr-pgm=${BUILDLINK_PREFIX.dirmngr}/bin/dirmngr
PLIST_SRC+= ${.CURDIR}/PLIST.gpgsm
. include "../../security/dirmngr/buildlink3.mk"
.endif
-
-.if !empty(PKG_OPTIONS:Midea)
-LICENSE= idea-license
-RESTRICTED= Commercial distribution is claimed to require a license.
-NO_SRC_ON_CDROM= ${RESTRICTED}
-NO_BIN_ON_CDROM= ${RESTRICTED}
-
-PATCH_SITES= http://www.kfwebs.com/
-PATCHFILES+= gnupg-2.0.4-idea.patch
-PATCH_DIST_STRIP= -p1
-
-PKGSRC_MAKE_ENV+= PKG_OPTIONS.libgcrypt+=idea
-.endif
diff --git a/security/gnupg2/patches/patch-al b/security/gnupg2/patches/patch-al
new file mode 100644
index 00000000000..5a89be13df2
--- /dev/null
+++ b/security/gnupg2/patches/patch-al
@@ -0,0 +1,17 @@
+$NetBSD: patch-al,v 1.1 2009/12/18 17:49:51 drochner Exp $
+
+--- g10/seckey-cert.c.orig 2009-08-06 17:32:40.000000000 +0000
++++ g10/seckey-cert.c
+@@ -209,6 +209,12 @@ do_check( PKT_secret_key *sk, const char
+ csum += checksum (buffer, ndata);
+ gcry_mpi_release (sk->skey[i]);
+
++/* http://www.kfwebs.net/articles/article/42/GnuPG-2.0---IDEA-support */
++ if (sk->protect.algo == CIPHER_ALGO_IDEA) {
++ buffer[0] = 0;
++ buffer[1] = 0;
++ }
++
+ err = gcry_mpi_scan( &sk->skey[i], GCRYMPI_FMT_PGP,
+ buffer, ndata, &ndata );
+ xfree (buffer);