diff options
author | wiz <wiz@pkgsrc.org> | 2012-05-12 17:53:40 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-05-12 17:53:40 +0000 |
commit | c316196878d26f47147a8670f80a6eaf8e4c730c (patch) | |
tree | 862828d809da1bcdd8b4e31adc43073f0dcd6973 | |
parent | 3d2ff2fa2d8e09a4512ba0debf1269e5816f82d7 (diff) | |
download | pkgsrc-c316196878d26f47147a8670f80a6eaf8e4c730c.tar.gz |
Initial import of ocaml-cryptokit-1.5. Packaged byJaap Boender in PR 41691.
The Cryptokit library for Objective Caml provides a variety of
cryptographic primitives that can be used to implement cryptographic
protocols in security-sensitive applications. The primitives provided
include:
Symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in ECB,
CBC, CFB and OFB modes. Public-key cryptography: RSA encryption and
signature; Diffie-Hellman key agreement. Hash functions and MACs:
SHA-1, MD5, and MACs based on AES and DES. Random number generation.
Encodings and compression: base 64, hexadecimal, Zlib compression.
Additional ciphers and hashes can easily be used in conjunction
with the library. In particular, basic mechanisms such as chaining
modes, output buffering, and padding are provided by generic classes
that can easily be composed with user-provided ciphers. More
generally, the library promotes a "Lego"-like style of constructing
and composing transformations over character streams.
-rw-r--r-- | security/ocaml-cryptokit/DESCR | 17 | ||||
-rw-r--r-- | security/ocaml-cryptokit/Makefile | 48 | ||||
-rw-r--r-- | security/ocaml-cryptokit/PLIST | 9 | ||||
-rw-r--r-- | security/ocaml-cryptokit/PLIST.opt | 4 | ||||
-rw-r--r-- | security/ocaml-cryptokit/buildlink3.mk | 15 | ||||
-rw-r--r-- | security/ocaml-cryptokit/distinfo | 5 |
6 files changed, 98 insertions, 0 deletions
diff --git a/security/ocaml-cryptokit/DESCR b/security/ocaml-cryptokit/DESCR new file mode 100644 index 00000000000..7bfc8aded28 --- /dev/null +++ b/security/ocaml-cryptokit/DESCR @@ -0,0 +1,17 @@ +The Cryptokit library for Objective Caml provides a variety of +cryptographic primitives that can be used to implement cryptographic +protocols in security-sensitive applications. The primitives provided +include: + +Symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in ECB, +CBC, CFB and OFB modes. Public-key cryptography: RSA encryption and +signature; Diffie-Hellman key agreement. Hash functions and MACs: +SHA-1, MD5, and MACs based on AES and DES. Random number generation. +Encodings and compression: base 64, hexadecimal, Zlib compression. + +Additional ciphers and hashes can easily be used in conjunction +with the library. In particular, basic mechanisms such as chaining +modes, output buffering, and padding are provided by generic classes +that can easily be composed with user-provided ciphers. More +generally, the library promotes a "Lego"-like style of constructing +and composing transformations over character streams. diff --git a/security/ocaml-cryptokit/Makefile b/security/ocaml-cryptokit/Makefile new file mode 100644 index 00000000000..dd712f6f140 --- /dev/null +++ b/security/ocaml-cryptokit/Makefile @@ -0,0 +1,48 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/05/12 17:53:40 wiz Exp $ +# + +DISTNAME= cryptokit-1.5 +PKGNAME= ocaml-${DISTNAME} +CATEGORIES= security +MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/639/ + +MAINTAINER= jaapb@kerguelen.org +HOMEPAGE= http://forge.ocamlcore.org/projects/cryptokit/ +COMMENT= Cryptographic primitives library for Objective Caml +LICENSE= gnu-lgpl-v2 # with static compilation exception + +DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib + +PKG_DESTDIR_SUPPORT= user-destdir + +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}" + +USE_TOOLS+= gmake +PLIST_SRC= PLIST + +SUBST_CLASSES+= destdir +SUBST_STAGE.destdir= post-configure +SUBST_MESSAGE.destdir= Changing install location to DESTDIR +SUBST_FILES.destdir= setup.ml +SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' + +BUILD_TARGET= build + +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") +PLIST_SRC+= PLIST.opt +post-build: + cd ${WRKSRC} && ocamlbuild src/cryptokit.cmxs + +post-install: + cd ${WRKSRC} && ${INSTALL_LIB} _build/src/cryptokit.cmxs ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/cryptokit +.endif + +pre-install: + ${RM} -rf ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/cryptokit + ${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib + +.include "../../devel/zlib/buildlink3.mk" +.include "../../lang/ocaml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/ocaml-cryptokit/PLIST b/security/ocaml-cryptokit/PLIST new file mode 100644 index 00000000000..21e91f1ce11 --- /dev/null +++ b/security/ocaml-cryptokit/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/12 17:53:40 wiz Exp $ +@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/cryptokit +lib/ocaml/site-lib/cryptokit/META +lib/ocaml/site-lib/cryptokit/dllcryptokit.so +lib/ocaml/site-lib/cryptokit/libcryptokit.a +lib/ocaml/site-lib/cryptokit/cryptokit.cma +lib/ocaml/site-lib/cryptokit/cryptokit.cmi +lib/ocaml/site-lib/cryptokit/cryptokit.mli +@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/cryptokit diff --git a/security/ocaml-cryptokit/PLIST.opt b/security/ocaml-cryptokit/PLIST.opt new file mode 100644 index 00000000000..90244a8d2fb --- /dev/null +++ b/security/ocaml-cryptokit/PLIST.opt @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST.opt,v 1.1.1.1 2012/05/12 17:53:40 wiz Exp $ +lib/ocaml/site-lib/cryptokit/cryptokit.a +lib/ocaml/site-lib/cryptokit/cryptokit.cmxa +lib/ocaml/site-lib/cryptokit/cryptokit.cmxs diff --git a/security/ocaml-cryptokit/buildlink3.mk b/security/ocaml-cryptokit/buildlink3.mk new file mode 100644 index 00000000000..827d1e6e884 --- /dev/null +++ b/security/ocaml-cryptokit/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/05/12 17:53:40 wiz Exp $ + +BUILDLINK_TREE+= ocaml-cryptokit + +.if !defined(OCAML_CRYPTOKIT_BUILDLINK3_MK) +OCAML_CRYPTOKIT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ocaml-cryptokit+= ocaml-cryptokit>=1.5 +BUILDLINK_ABI_DEPENDS.ocaml-cryptokit?= ocaml-cryptokit>=1.5 +BUILDLINK_PKGSRCDIR.ocaml-cryptokit?= ../../security/ocaml-cryptokit + +.include "../../lang/ocaml/buildlink3.mk" +.endif # OCAML_CRYPTOKIT_BUILDLINK3_MK + +BUILDLINK_TREE+= -ocaml-cryptokit diff --git a/security/ocaml-cryptokit/distinfo b/security/ocaml-cryptokit/distinfo new file mode 100644 index 00000000000..161a3dd897b --- /dev/null +++ b/security/ocaml-cryptokit/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/05/12 17:53:40 wiz Exp $ + +SHA1 (cryptokit-1.5.tar.gz) = 63e1ca4918186bcc7f5e7f6566c765261c4abef3 +RMD160 (cryptokit-1.5.tar.gz) = 7e1e179c3970ac8b0cdbac1ef18e9ea79de6526e +Size (cryptokit-1.5.tar.gz) = 128907 bytes |