Hi,
Here is update of security/p5-Crypt-DSA to 1.17.
Tested OK and regress OK on Loongson.
Comments? OK?
wen
Index: p5-Crypt-DSA/Makefile
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-DSA/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- p5-Crypt-DSA/Makefile 3 Dec 2010 11:46:46 -0000 1.9
+++ p5-Crypt-DSA/Makefile 18 Jun 2011 05:12:20 -0000
@@ -3,8 +3,7 @@
COMMENT= DSA Signatures and Key Generation
MODULES= cpan
-DISTNAME= Crypt-DSA-0.13
-REVISION= 1
+DISTNAME= Crypt-DSA-1.17
CATEGORIES= security
USE_GROFF = Yes
@@ -17,6 +16,7 @@ PERMIT_DISTFILES_FTP= Yes
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= converters/p5-Convert-PEM \
devel/p5-Data-Buffer \
- security/p5-Digest-SHA1
+ security/p5-Digest-SHA1 \
+ sysutils/p5-File-Which
.include <bsd.port.mk>
Index: p5-Crypt-DSA/distinfo
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-DSA/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- p5-Crypt-DSA/distinfo 5 Apr 2007 17:26:08 -0000 1.3
+++ p5-Crypt-DSA/distinfo 18 Jun 2011 05:12:20 -0000
@@ -1,5 +1,5 @@
-MD5 (Crypt-DSA-0.13.tar.gz) = JpJhRI7MazuCqFTjt3TErg==
-RMD160 (Crypt-DSA-0.13.tar.gz) = arMs1KvgFB5funM3lkuxfNqOpNg=
-SHA1 (Crypt-DSA-0.13.tar.gz) = /bGYvpQo6GAIaoCMZWpzht9ftgM=
-SHA256 (Crypt-DSA-0.13.tar.gz) = lthosxV58uhLgaiCvwhJ3q/3dUxnopWoxNm7f0J8ud0=
-SIZE (Crypt-DSA-0.13.tar.gz) = 28178
+MD5 (Crypt-DSA-1.17.tar.gz) = CmTc1355brrK1MavLfdLVw==
+RMD160 (Crypt-DSA-1.17.tar.gz) = py1IbyuexjGQej2Ej+4OMD/n5AI=
+SHA1 (Crypt-DSA-1.17.tar.gz) = MgadqMBNi+p5smDdpvlLMACz3yQ=
+SHA256 (Crypt-DSA-1.17.tar.gz) = 0bhYX2v3RvduXcXaNkHTJe1la8Ll80S1RRS1XDEAmgM=
+SIZE (Crypt-DSA-1.17.tar.gz) = 42930
Index: p5-Crypt-DSA/patches/patch-lib_Crypt_DSA_Util_pm
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-DSA/patches/patch-lib_Crypt_DSA_Util_pm,v
retrieving revision 1.1
diff -u -p -r1.1 patch-lib_Crypt_DSA_Util_pm
--- p5-Crypt-DSA/patches/patch-lib_Crypt_DSA_Util_pm 12 Dec 2005 20:50:12
-0000 1.1
+++ p5-Crypt-DSA/patches/patch-lib_Crypt_DSA_Util_pm 18 Jun 2011 05:12:20
-0000
@@ -1,12 +1,12 @@
$OpenBSD: patch-lib_Crypt_DSA_Util_pm,v 1.1 2005/12/12 20:50:12 sturm Exp $
---- lib/Crypt/DSA/Util.pm.orig Mon Dec 12 21:25:08 2005
-+++ lib/Crypt/DSA/Util.pm Mon Dec 12 21:26:10 2005
-@@ -50,7 +50,7 @@ sub makerandom {
- my %param = @_;
+--- lib/Crypt/DSA/Util.pm.orig Fri Jun 17 09:46:42 2011
++++ lib/Crypt/DSA/Util.pm Sat Jun 18 12:27:26 2011
+@@ -53,7 +53,7 @@ sub makerandom {
my $size = $param{Size};
my $bytes = int($size / 8) + 1;
-- sysopen my $fh, '/dev/random', O_RDONLY
-+ sysopen my $fh, '/dev/arandom', O_RDONLY
- or return;
- my($r, $read) = ('', 0);
- while ($read < $bytes) {
+ my $r = '';
+- if ( sysopen my $fh, '/dev/random', O_RDONLY ) {
++ if ( sysopen my $fh, '/dev/arandom', O_RDONLY ) {
+ my $read = 0;
+ while ($read < $bytes) {
+ my $got = sysread $fh, my($chunk), $bytes - $read;