summaryrefslogtreecommitdiff
path: root/security/p5-Crypt-CBC
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2001-10-02 11:52:53 +0000
committermjl <mjl@pkgsrc.org>2001-10-02 11:52:53 +0000
commit10569aa018781ff5302cdcd4085edf3cea2f98cb (patch)
treeb0152de8bffca13457322f4955eab158a7d2f11c /security/p5-Crypt-CBC
parent1ef61a1795f0d79d6a8f78d18606fddedb7d4662 (diff)
downloadpkgsrc-10569aa018781ff5302cdcd4085edf3cea2f98cb.tar.gz
Fix dep on MD5 by substituting Digest::MD5 and appropriate changes.
Part of PR/14127 by Sen Nagata.
Diffstat (limited to 'security/p5-Crypt-CBC')
-rw-r--r--security/p5-Crypt-CBC/Makefile4
-rw-r--r--security/p5-Crypt-CBC/distinfo4
-rw-r--r--security/p5-Crypt-CBC/patches/patch-aa13
-rw-r--r--security/p5-Crypt-CBC/patches/patch-ab24
4 files changed, 42 insertions, 3 deletions
diff --git a/security/p5-Crypt-CBC/Makefile b/security/p5-Crypt-CBC/Makefile
index a89f2096597..01cff06f4ed 100644
--- a/security/p5-Crypt-CBC/Makefile
+++ b/security/p5-Crypt-CBC/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/02/17 17:49:58 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2001/10/02 11:52:53 mjl Exp $
# FreeBSD Id: Makefile,v 1.7 1997/06/24 18:43:23 jfitz Exp
#
@@ -10,7 +10,7 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
MAINTAINER= packages@netbsd.org
COMMENT= perl5 cipher block chaining mode for various crypto algorithms
-DEPENDS+= p5-Digest-MD5>=2.12:../../security/p5-Digest-MD5
+DEPENDS+= p5-Digest-MD5>=2.16:../../security/p5-Digest-MD5
USE_PERL5= # defined
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Crypt/CBC/.packlist
diff --git a/security/p5-Crypt-CBC/distinfo b/security/p5-Crypt-CBC/distinfo
index a2e6ad262a3..e7293750b95 100644
--- a/security/p5-Crypt-CBC/distinfo
+++ b/security/p5-Crypt-CBC/distinfo
@@ -1,4 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 15:40:35 agc Exp $
+$NetBSD: distinfo,v 1.3 2001/10/02 11:52:53 mjl Exp $
SHA1 (Crypt-CBC-1.25.tar.gz) = 8a9c214582d144ffa8d33e44b5764be96b5d9770
Size (Crypt-CBC-1.25.tar.gz) = 6899 bytes
+SHA1 (patch-aa) = aa140b01dcd32f27cf2d122208cebb0a285a5391
+SHA1 (patch-ab) = c5635e0233f2f62253bf27a9b29e266eb73b4a64
diff --git a/security/p5-Crypt-CBC/patches/patch-aa b/security/p5-Crypt-CBC/patches/patch-aa
new file mode 100644
index 00000000000..ccf3a5eccb3
--- /dev/null
+++ b/security/p5-Crypt-CBC/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2001/10/02 11:52:53 mjl Exp $
+
+--- Makefile.PL.orig Tue Oct 2 13:37:10 2001
++++ Makefile.PL Tue Oct 2 13:37:25 2001
+@@ -4,7 +4,7 @@
+ WriteMakefile(
+ 'NAME' => 'Crypt::CBC',
+ 'VERSION_FROM' => 'CBC.pm', # finds $VERSION
+- 'PREREQ_PM' => {'MD5' => '1.00' },
++ 'PREREQ_PM' => {'Digest::MD5' => '1.16' },
+ 'LIBS' => [''], # e.g., '-lm'
+ 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => '', # e.g., '-I/usr/include/other'
diff --git a/security/p5-Crypt-CBC/patches/patch-ab b/security/p5-Crypt-CBC/patches/patch-ab
new file mode 100644
index 00000000000..d339b702b1e
--- /dev/null
+++ b/security/p5-Crypt-CBC/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1 2001/10/02 11:52:53 mjl Exp $
+
+--- CBC.pm.orig Tue Oct 2 13:38:01 2001
++++ CBC.pm Tue Oct 2 13:42:11 2001
+@@ -1,6 +1,6 @@
+ package Crypt::CBC;
+
+-use MD5;
++use Digest::MD5;
+ use Carp;
+ use strict;
+ use vars qw($VERSION);
+@@ -28,9 +28,9 @@
+
+ # the real key is computed from the first N bytes of the
+ # MD5 hash of the provided key.
+- my $material = MD5->hash($key);
++ my $material = Digest::MD5::md5($key);
+ while (length($material) < $ks + $bs) {
+- $material .= MD5->hash($material);
++ $material .= Digest::MD5::md5($material);
+ }
+
+ # Original implementation of SSLEay used part of the key for the IV