summaryrefslogtreecommitdiff
path: root/security/p5-BSD-arc4random
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2012-06-02 14:29:42 +0000
committerbsiegert <bsiegert@pkgsrc.org>2012-06-02 14:29:42 +0000
commite438782ddf572198dfe0c83821ac074bcbe74d06 (patch)
treeddc26738b4492660f26989e54a24108d04486d41 /security/p5-BSD-arc4random
parent75116175dbe9a3881481ecda824ef74c8bdb0f30 (diff)
downloadpkgsrc-e438782ddf572198dfe0c83821ac074bcbe74d06.tar.gz
Import BSD::arc4random from wip. From DESCR:
This module provides a Perl API for the BSDs' arc4random(3) suite of functions and adds a few high-level functions, such as the new arc4random_uniform(3). The Perl functions are ithreads-safe (only if threads::shared is required). Scalars can be tied to this pak- kage, yielding uniformly distributed random numbers with an arbi- trary upper bound on read access, contributing to the RC4 entropy pool on write access. An exported global $RANDOM variable returns 15-bit unsigned random numbers, from [0; 32767], similar to mksh. Furthermore, Perl's internal PRNG is seeded with entropy obtained from the arc4random generator once on module load time.
Diffstat (limited to 'security/p5-BSD-arc4random')
-rw-r--r--security/p5-BSD-arc4random/DESCR10
-rw-r--r--security/p5-BSD-arc4random/Makefile19
-rw-r--r--security/p5-BSD-arc4random/distinfo5
3 files changed, 34 insertions, 0 deletions
diff --git a/security/p5-BSD-arc4random/DESCR b/security/p5-BSD-arc4random/DESCR
new file mode 100644
index 00000000000..a20201f3056
--- /dev/null
+++ b/security/p5-BSD-arc4random/DESCR
@@ -0,0 +1,10 @@
+This module provides a Perl API for the BSDs' arc4random(3) suite
+of functions and adds a few high-level functions, such as the new
+arc4random_uniform(3). The Perl functions are ithreads-safe (only
+if threads::shared is required). Scalars can be tied to this pak-
+kage, yielding uniformly distributed random numbers with an arbi-
+trary upper bound on read access, contributing to the RC4 entropy
+pool on write access. An exported global $RANDOM variable returns
+15-bit unsigned random numbers, from [0; 32767], similar to mksh.
+Furthermore, Perl's internal PRNG is seeded with entropy obtained
+from the arc4random generator once on module load time.
diff --git a/security/p5-BSD-arc4random/Makefile b/security/p5-BSD-arc4random/Makefile
new file mode 100644
index 00000000000..8abbb6f9ef9
--- /dev/null
+++ b/security/p5-BSD-arc4random/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2012/06/02 14:29:42 bsiegert Exp $
+#
+
+DISTNAME= BSD-arc4random-1.50
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= security
+MASTER_SITES= http://search.cpan.org/CPAN/authors/id/S/SJ/SJSZ/
+
+MAINTAINER= bsiegert@NetBSD.org
+HOMEPAGE= http://search.cpan.org/~sjsz/BSD-arc4random/
+COMMENT= Perl interface to the arc4 random number generator
+LICENSE= miros
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/BSD/arc4random/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/p5-BSD-arc4random/distinfo b/security/p5-BSD-arc4random/distinfo
new file mode 100644
index 00000000000..637ec82d0a6
--- /dev/null
+++ b/security/p5-BSD-arc4random/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2012/06/02 14:29:42 bsiegert Exp $
+
+SHA1 (BSD-arc4random-1.50.tar.gz) = d7472ce6306572965f041d37437b8be3446294da
+RMD160 (BSD-arc4random-1.50.tar.gz) = 794d4f799e769b7d11ccc79ba733c190868df664
+Size (BSD-arc4random-1.50.tar.gz) = 14432 bytes