summaryrefslogtreecommitdiff
path: root/security/hs-cryptohash-sha256
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2020-01-18 15:25:43 +0000
committerpho <pho@pkgsrc.org>2020-01-18 15:25:43 +0000
commita2a4bd9929e288b62a1a25a517a72d0a5c32dba9 (patch)
tree04248091eb1583213d46632a2b799c5ab393a54c /security/hs-cryptohash-sha256
parent8fd707d3626207d357a485fd07aeaad2d05a219e (diff)
downloadpkgsrc-a2a4bd9929e288b62a1a25a517a72d0a5c32dba9.tar.gz
Import cryptohash-sha256-0.11.101.0
A practical incremental and one-pass, pure API to the SHA-256 cryptographic hash algorithm according to FIPS 180-4 with performance close to the fastest implementations available in other languages.
Diffstat (limited to 'security/hs-cryptohash-sha256')
-rw-r--r--security/hs-cryptohash-sha256/DESCR3
-rw-r--r--security/hs-cryptohash-sha256/Makefile11
-rw-r--r--security/hs-cryptohash-sha256/buildlink3.mk13
-rw-r--r--security/hs-cryptohash-sha256/distinfo7
-rw-r--r--security/hs-cryptohash-sha256/patches/patch-cryptohash-sha256.cabal15
5 files changed, 49 insertions, 0 deletions
diff --git a/security/hs-cryptohash-sha256/DESCR b/security/hs-cryptohash-sha256/DESCR
new file mode 100644
index 00000000000..9511efe8500
--- /dev/null
+++ b/security/hs-cryptohash-sha256/DESCR
@@ -0,0 +1,3 @@
+A practical incremental and one-pass, pure API to the SHA-256
+cryptographic hash algorithm according to FIPS 180-4 with performance
+close to the fastest implementations available in other languages.
diff --git a/security/hs-cryptohash-sha256/Makefile b/security/hs-cryptohash-sha256/Makefile
new file mode 100644
index 00000000000..778e723c299
--- /dev/null
+++ b/security/hs-cryptohash-sha256/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2020/01/18 15:25:43 pho Exp $
+
+DISTNAME= cryptohash-sha256-0.11.101.0
+CATEGORIES= security
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Fast, pure and practical SHA-256 implementation
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/hs-cryptohash-sha256/buildlink3.mk b/security/hs-cryptohash-sha256/buildlink3.mk
new file mode 100644
index 00000000000..cc8abd66c1f
--- /dev/null
+++ b/security/hs-cryptohash-sha256/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/18 15:25:43 pho Exp $
+
+BUILDLINK_TREE+= hs-cryptohash-sha256
+
+.if !defined(HS_CRYPTOHASH_SHA256_BUILDLINK3_MK)
+HS_CRYPTOHASH_SHA256_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-cryptohash-sha256+= hs-cryptohash-sha256>=0.11.101
+BUILDLINK_ABI_DEPENDS.hs-cryptohash-sha256+= hs-cryptohash-sha256>=0.11.101.0
+BUILDLINK_PKGSRCDIR.hs-cryptohash-sha256?= ../../security/hs-cryptohash-sha256
+.endif # HS_CRYPTOHASH_SHA256_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-cryptohash-sha256
diff --git a/security/hs-cryptohash-sha256/distinfo b/security/hs-cryptohash-sha256/distinfo
new file mode 100644
index 00000000000..c72971b2f4c
--- /dev/null
+++ b/security/hs-cryptohash-sha256/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/01/18 15:25:43 pho Exp $
+
+SHA1 (cryptohash-sha256-0.11.101.0.tar.gz) = cdb0ddd3f8e2deaf3a429ddcfa80f706b73f9a8d
+RMD160 (cryptohash-sha256-0.11.101.0.tar.gz) = 6fb799481497515388c4dd176969eecc7c4a7507
+SHA512 (cryptohash-sha256-0.11.101.0.tar.gz) = c755f1354fb5f1d6cfb54f73e39692392517954118d98b39ac4be7460e75a9ddc91ad641fed0f17e5fa33b62b7b0734af66526ea757e00716832572bb383c612
+Size (cryptohash-sha256-0.11.101.0.tar.gz) = 14996 bytes
+SHA1 (patch-cryptohash-sha256.cabal) = d1d85095d09c7109902216054b651bf7d365e9f6
diff --git a/security/hs-cryptohash-sha256/patches/patch-cryptohash-sha256.cabal b/security/hs-cryptohash-sha256/patches/patch-cryptohash-sha256.cabal
new file mode 100644
index 00000000000..d7d8cf401f9
--- /dev/null
+++ b/security/hs-cryptohash-sha256/patches/patch-cryptohash-sha256.cabal
@@ -0,0 +1,15 @@
+$NetBSD: patch-cryptohash-sha256.cabal,v 1.1 2020/01/18 15:25:43 pho Exp $
+
+Fix build with GHC 8.8
+
+--- cryptohash-sha256.cabal.orig 2017-11-13 08:04:55.000000000 +0000
++++ cryptohash-sha256.cabal
+@@ -74,7 +74,7 @@ library
+ Trustworthy
+ Unsafe
+
+- build-depends: base >= 4.5 && < 4.11
++ build-depends: base >= 4.5 && < 4.14
+ , bytestring >= 0.9.2 && < 0.11
+
+ ghc-options: -Wall