diff options
author | heinz <heinz@pkgsrc.org> | 2006-03-10 20:29:46 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2006-03-10 20:29:46 +0000 |
commit | 9c90aeb360f96f1148cdbd859d5e0b943edd3f06 (patch) | |
tree | a8f431a022dadaf2d44c47d56795fd2d1802c7ab /security/p5-Digest-Hashcash | |
parent | 5cf16e499ca72d51aa396aa6e526b47a996998ed (diff) | |
download | pkgsrc-9c90aeb360f96f1148cdbd859d5e0b943edd3f06.tar.gz |
Updated to version 0.03.
Pkgsrc changes:
- Rewrote patch-aa to be specific to NetBSD.
Changes since version 0.02:
===========================
- generate more efficient code with gcc-3.4 and later.
Diffstat (limited to 'security/p5-Digest-Hashcash')
-rw-r--r-- | security/p5-Digest-Hashcash/Makefile | 5 | ||||
-rw-r--r-- | security/p5-Digest-Hashcash/distinfo | 10 | ||||
-rw-r--r-- | security/p5-Digest-Hashcash/patches/patch-aa | 42 |
3 files changed, 20 insertions, 37 deletions
diff --git a/security/p5-Digest-Hashcash/Makefile b/security/p5-Digest-Hashcash/Makefile index baf263d5a34..f892dc75062 100644 --- a/security/p5-Digest-Hashcash/Makefile +++ b/security/p5-Digest-Hashcash/Makefile @@ -1,10 +1,9 @@ -# $NetBSD: Makefile,v 1.7 2005/08/08 16:59:20 jlam Exp $ +# $NetBSD: Makefile,v 1.8 2006/03/10 20:29:46 heinz Exp $ # -DISTNAME= Digest-Hashcash-0.02 +DISTNAME= Digest-Hashcash-0.03 PKGNAME= p5-${DISTNAME} SVR4_PKGNAME= p5hca -PKGREVISION= 2 CATEGORIES= security perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Digest/} diff --git a/security/p5-Digest-Hashcash/distinfo b/security/p5-Digest-Hashcash/distinfo index 4fa2cfc3623..4bd2d3490bd 100644 --- a/security/p5-Digest-Hashcash/distinfo +++ b/security/p5-Digest-Hashcash/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 13:10:10 agc Exp $ +$NetBSD: distinfo,v 1.3 2006/03/10 20:29:46 heinz Exp $ -SHA1 (Digest-Hashcash-0.02.tar.gz) = d9b0cb7e482367b5a8886ca2c02309c3a2198c9f -RMD160 (Digest-Hashcash-0.02.tar.gz) = 4a35e943f9ea178c3837e70217344b2fdab7351e -Size (Digest-Hashcash-0.02.tar.gz) = 14313 bytes -SHA1 (patch-aa) = 3383ac567fbef65e6f9f3afac775c1b96d02cad7 +SHA1 (Digest-Hashcash-0.03.tar.gz) = ef22445827bf3315f1118c31df013e2cfa6fbb97 +RMD160 (Digest-Hashcash-0.03.tar.gz) = b0a5efe3a56b975c8f6d8f20a08fa7df2f194574 +Size (Digest-Hashcash-0.03.tar.gz) = 14533 bytes +SHA1 (patch-aa) = a716fca97bc106cbf02e6da04294f9a48d692a31 diff --git a/security/p5-Digest-Hashcash/patches/patch-aa b/security/p5-Digest-Hashcash/patches/patch-aa index cf3f678728f..0f6a4431854 100644 --- a/security/p5-Digest-Hashcash/patches/patch-aa +++ b/security/p5-Digest-Hashcash/patches/patch-aa @@ -1,38 +1,22 @@ -$NetBSD: patch-aa,v 1.1.1.1 2003/12/28 01:07:58 heinz Exp $ +$NetBSD: patch-aa,v 1.2 2006/03/10 20:29:46 heinz Exp $ ---- Hashcash.xs.orig Sun Sep 7 02:52:43 2003 +--- Hashcash.xs.orig 2005-03-03 17:56:51.000000000 +0100 +++ Hashcash.xs -@@ -4,7 +4,7 @@ +@@ -4,7 +4,17 @@ #include <time.h> #include <stdlib.h> --#include <stdint.h> ++#if defined(__NetBSD__) ++#include <sys/param.h> ++#if __NetBSD_Version__ < 105160000 +#include <inttypes.h> ++typedef uint32_t uint_fast32_t; ++#else + #include <stdint.h> ++#endif ++#else ++#include <stdint.h> ++#endif /* NIST Secure Hash Algorithm */ /* heavily modified by Uwe Hollerbach <uh@alumni.caltech edu> */ -@@ -45,7 +45,7 @@ typedef U64TYPE ULONG; - # define BYTEORDER 0x87654321 - # endif - #else --typedef uint_fast32_t ULONG; /* 32-or-more-bit quantity */ -+typedef uint32_t ULONG; /* 32-or-more-bit quantity */ - #endif - - #if GCCX86ASM -@@ -356,6 +356,7 @@ _estimate_rounds () - SV * - _gentoken (int size, IV timestamp, char *resource, char *trial = "", int extrarand = 0) - CODE: -+ { - SHA_INFO ctx1, ctx; - char *token, *seq, *s; - int toklen, i; -@@ -412,6 +413,7 @@ _gentoken (int size, IV timestamp, char - } - - RETVAL = newSVpvn (token, toklen); -+ } - OUTPUT: - RETVAL - |