Add ocaml-sha 1.12

OCaml bindings for SHA interface code in OCaml. Offering the same
interface than the MD5 digest included in ocaml standard library.
It currently provides SHA1, SHA256 and SHA512 hash functions.
This commit is contained in:
Maya Rashish 2019-11-02 17:07:16 +02:00
parent 1f28b2af90
commit ea65d2e18d
5 changed files with 70 additions and 0 deletions

3
ocaml-sha/DESCR Normal file
View File

@ -0,0 +1,3 @@
OCaml bindings for SHA interface code in OCaml. Offering the same
interface than the MD5 digest included in ocaml standard library.
It currently provides SHA1, SHA256 and SHA512 hash functions.

18
ocaml-sha/Makefile Normal file
View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.20 2019/08/27 19:56:03 schmonz Exp $
GITHUB_PROJECT= ocaml-sha
DISTNAME= sha-1.12
PKGNAME= ocaml-${DISTNAME}
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=djs55/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/ocaml-community/sedlex
COMMENT= Ocaml SHA 1 and 2 family implementation
LICENSE= isc
OCAML_USE_DUNE= yes
.include "../../mk/ocaml.mk"
.include "../../mk/bsd.pkg.mk"

31
ocaml-sha/PLIST Normal file
View File

@ -0,0 +1,31 @@
@comment $NetBSD$
${OCAML_SITELIB}/sha/META
${OCAML_SITELIB}/sha/dune-package
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/libsha_stubs.a
${OCAML_SITELIB}/sha/opam
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha.a
${OCAML_SITELIB}/sha/sha.cma
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha.cmxa
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha.cmxs
${OCAML_SITELIB}/sha/sha1.cmi
${OCAML_SITELIB}/sha/sha1.cmt
${OCAML_SITELIB}/sha/sha1.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha1.cmx
${OCAML_SITELIB}/sha/sha1.ml
${OCAML_SITELIB}/sha/sha1.mli
${OCAML_SITELIB}/sha/sha256.cmi
${OCAML_SITELIB}/sha/sha256.cmt
${OCAML_SITELIB}/sha/sha256.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha256.cmx
${OCAML_SITELIB}/sha/sha256.ml
${OCAML_SITELIB}/sha/sha256.mli
${OCAML_SITELIB}/sha/sha512.cmi
${OCAML_SITELIB}/sha/sha512.cmt
${OCAML_SITELIB}/sha/sha512.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/sha/sha512.cmx
${OCAML_SITELIB}/sha/sha512.ml
${OCAML_SITELIB}/sha/sha512.mli
${OCAML_SITELIB}/stublibs/dllsha_stubs.so
share/doc/sha/CHANGES.md
share/doc/sha/LICENSE.md
share/doc/sha/README

12
ocaml-sha/buildlink3.mk Normal file
View File

@ -0,0 +1,12 @@
# $NetBSD$
BUILDLINK_TREE+= ocaml-sha
.if !defined(OCAML_SHA_BUILDLINK3_MK)
OCAML_SHA_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ocaml-sha+= ocaml-sha>=1.12
BUILDLINK_PKGSRCDIR.ocaml-sha?= ../../wip/ocaml-sha
.endif # OCAML_SHA_BUILDLINK3_MK
BUILDLINK_TREE+= -ocaml-sha

6
ocaml-sha/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.8 2019/05/15 09:01:03 jaapb Exp $
SHA1 (sha-1.12.tar.gz) = d8c6e9bd83fecb26f46377761791bd7b20527eb3
RMD160 (sha-1.12.tar.gz) = d8405f2398d2410765448980040e1e6175af1727
SHA512 (sha-1.12.tar.gz) = e6cdbc66202281a72ccc3592d6efba0448fe28dba7a23f8079d3a3cee12c03d01338191da88e4e4834f5ee19321ffed1c950e7a5babc73479221d8da3fe372d3
Size (sha-1.12.tar.gz) = 13575 bytes