pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/ocaml-cryptokit Initial import of ocaml-crypt...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8fd7bd179946
branches: trunk
changeset: 603757:8fd7bd179946
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat May 12 17:53:40 2012 +0000
description:
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.
diffstat:
security/ocaml-cryptokit/DESCR | 17 ++++++++++++
security/ocaml-cryptokit/Makefile | 48 ++++++++++++++++++++++++++++++++++
security/ocaml-cryptokit/PLIST | 9 ++++++
security/ocaml-cryptokit/PLIST.opt | 4 ++
security/ocaml-cryptokit/buildlink3.mk | 15 ++++++++++
security/ocaml-cryptokit/distinfo | 5 +++
6 files changed, 98 insertions(+), 0 deletions(-)
diffs (122 lines):
diff -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/DESCR Sat May 12 17:53:40 2012 +0000
@@ -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 -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/Makefile Sat May 12 17:53:40 2012 +0000
@@ -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@localhost
+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 -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/PLIST Sat May 12 17:53:40 2012 +0000
@@ -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 -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/PLIST.opt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/PLIST.opt Sat May 12 17:53:40 2012 +0000
@@ -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 -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/buildlink3.mk Sat May 12 17:53:40 2012 +0000
@@ -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 -r a3b093482eac -r 8fd7bd179946 security/ocaml-cryptokit/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-cryptokit/distinfo Sat May 12 17:53:40 2012 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index