summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/ghc/bsd.hackage.mk1
-rw-r--r--security/hs-entropy/Makefile20
-rw-r--r--security/hs-entropy/distinfo2
-rw-r--r--security/hs-entropy/pkg-descr6
4 files changed, 29 insertions, 0 deletions
diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk
index 34c60d9b594d..6be5afe3d98b 100644
--- a/lang/ghc/bsd.hackage.mk
+++ b/lang/ghc/bsd.hackage.mk
@@ -75,6 +75,7 @@ directory-tree_port= devel/hs-directory-tree
distributive_port= math/hs-distributive
dlist_port= devel/hs-dlist
double-conversion_port= textproc/hs-double-conversion
+entropy_port= security/hs-entropy
enumerator_port= devel/hs-enumerator
epic_port= lang/hs-epic # executable
erf_port= math/hs-erf
diff --git a/security/hs-entropy/Makefile b/security/hs-entropy/Makefile
new file mode 100644
index 000000000000..1b5a8359f011
--- /dev/null
+++ b/security/hs-entropy/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: hs-entropy
+# Date created: July 13, 2011
+# Whom: haskell@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= entropy
+PORTVERSION= 0.2.1
+CATEGORIES= security haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= A platform-independent entropy source
+
+LICENSE= BSD
+
+CABAL_SETUP= Setup.hs
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/security/hs-entropy/distinfo b/security/hs-entropy/distinfo
new file mode 100644
index 000000000000..e00187ba7d9c
--- /dev/null
+++ b/security/hs-entropy/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cabal/entropy-0.2.1.tar.gz) = 3a332d4b5330c81ae16a8705462ffdf70bbb38f3380cd2cee4e23df7db86e8e2
+SIZE (cabal/entropy-0.2.1.tar.gz) = 3109
diff --git a/security/hs-entropy/pkg-descr b/security/hs-entropy/pkg-descr
new file mode 100644
index 000000000000..9446ad8adef8
--- /dev/null
+++ b/security/hs-entropy/pkg-descr
@@ -0,0 +1,6 @@
+A platform independent method to obtain cryptographically strong entropy
+(urandom on Linux, CryptAPI on Windows, patches welcome). Users looking
+for cryptographically strong (number-theoretically sound) PRNGs should
+see the DRBG package too!
+
+WWW: http://trac.haskell.org/crypto-api/wiki