pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases/ocaml-ldap
Module Name: pkgsrc
Committed By: jaapb
Date: Tue Sep 20 12:52:59 UTC 2016
Added Files:
pkgsrc/databases/ocaml-ldap: DESCR Makefile PLIST distinfo
pkgsrc/databases/ocaml-ldap/patches: patch-src_ldap_ooclient.ml
Log Message:
New package databases/ocaml-ldap, an LDAP library for OCaml.
Ocamldap is an implementation of the Light Weight Directory Access Protocol,
and a set of useful tools built around it. It includes high level libraries for
creating ldap clients and ldap servers.
It also includes many of the auxiliary tools needed for building intelligent
solutions, and interoperating with other directories. These include, an rfc2252
schema parser, and an schema checker, an ldif parser and printer, a search
filter parser (but no printer yet), and a rudimentary ldap url parser.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/ocaml-ldap/DESCR \
pkgsrc/databases/ocaml-ldap/Makefile pkgsrc/databases/ocaml-ldap/PLIST \
pkgsrc/databases/ocaml-ldap/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/databases/ocaml-ldap/patches/patch-src_ldap_ooclient.ml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/databases/ocaml-ldap/DESCR
diff -u /dev/null pkgsrc/databases/ocaml-ldap/DESCR:1.1
--- /dev/null Tue Sep 20 12:52:59 2016
+++ pkgsrc/databases/ocaml-ldap/DESCR Tue Sep 20 12:52:59 2016
@@ -0,0 +1,8 @@
+Ocamldap is an implementation of the Light Weight Directory Access Protocol,
+and a set of useful tools built around it. It includes high level libraries for
+creating ldap clients and ldap servers.
+
+It also includes many of the auxiliary tools needed for building intelligent
+solutions, and interoperating with other directories. These include, an rfc2252
+schema parser, and an schema checker, an ldif parser and printer, a search
+filter parser (but no printer yet), and a rudimentary ldap url parser.
Index: pkgsrc/databases/ocaml-ldap/Makefile
diff -u /dev/null pkgsrc/databases/ocaml-ldap/Makefile:1.1
--- /dev/null Tue Sep 20 12:52:59 2016
+++ pkgsrc/databases/ocaml-ldap/Makefile Tue Sep 20 12:52:59 2016
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2016/09/20 12:52:59 jaapb Exp $
+
+DISTNAME= ocamldap-2.2
+CATEGORIES= databases
+MASTER_SITES= http://bitbucket.org/deplai_j/ocamldap/downloads/
+
+MAINTAINER= jaapb%NetBSD.org@localhost
+HOMEPAGE= http://ocamldap.sourceforge.net/
+COMMENT= OCamL implementation of the LDAP protocol
+LICENSE= gnu-lgpl-v2.1
+
+HAS_CONFIGURE= yes
+USE_LANGUAGES= # none
+OCAML_USE_OASIS= yes
+
+.include "../../mk/ocaml.mk"
+.include "../../devel/pcre-ocaml/buildlink3.mk"
+.include "../../net/ocamlnet/buildlink3.mk"
+.include "../../security/ocaml-ssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/ocaml-ldap/PLIST
diff -u /dev/null pkgsrc/databases/ocaml-ldap/PLIST:1.1
--- /dev/null Tue Sep 20 12:52:59 2016
+++ pkgsrc/databases/ocaml-ldap/PLIST Tue Sep 20 12:52:59 2016
@@ -0,0 +1,80 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/20 12:52:59 jaapb Exp $
+${OCAML_SITELIB}/ldap/META
+${OCAML_SITELIB}/ldap/lber.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/lber.cmx
+${OCAML_SITELIB}/ldap/lber.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap.a
+${OCAML_SITELIB}/ldap/ldap.cma
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap.cmxs
+${OCAML_SITELIB}/ldap/ldap_dn.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_dn.cmx
+${OCAML_SITELIB}/ldap/ldap_dn.mli
+${OCAML_SITELIB}/ldap/ldap_dnlexer.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_dnlexer.cmx
+${OCAML_SITELIB}/ldap/ldap_dnparser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_dnparser.cmx
+${OCAML_SITELIB}/ldap/ldap_error.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_error.cmx
+${OCAML_SITELIB}/ldap/ldap_error.mli
+${OCAML_SITELIB}/ldap/ldap_filter.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_filter.cmx
+${OCAML_SITELIB}/ldap/ldap_filter.mli
+${OCAML_SITELIB}/ldap/ldap_filterlexer.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_filterlexer.cmx
+${OCAML_SITELIB}/ldap/ldap_filterparser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_filterparser.cmx
+${OCAML_SITELIB}/ldap/ldap_funclient.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_funclient.cmx
+${OCAML_SITELIB}/ldap/ldap_funclient.mli
+${OCAML_SITELIB}/ldap/ldap_funserver.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_funserver.cmx
+${OCAML_SITELIB}/ldap/ldap_funserver.mli
+${OCAML_SITELIB}/ldap/ldap_mutex.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_mutex.cmx
+${OCAML_SITELIB}/ldap/ldap_mutex.mli
+${OCAML_SITELIB}/ldap/ldap_ooclient.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_ooclient.cmx
+${OCAML_SITELIB}/ldap/ldap_ooclient.mli
+${OCAML_SITELIB}/ldap/ldap_protocol.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_protocol.cmx
+${OCAML_SITELIB}/ldap/ldap_protocol.mli
+${OCAML_SITELIB}/ldap/ldap_schemalexer.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_schemalexer.cmx
+${OCAML_SITELIB}/ldap/ldap_schemaparser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_schemaparser.cmx
+${OCAML_SITELIB}/ldap/ldap_schemaparser.mli
+${OCAML_SITELIB}/ldap/ldap_toplevel.cmi
+${OCAML_SITELIB}/ldap/ldap_toplevel.mli
+${OCAML_SITELIB}/ldap/ldap_txooclient.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_txooclient.cmx
+${OCAML_SITELIB}/ldap/ldap_txooclient.mli
+${OCAML_SITELIB}/ldap/ldap_types.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_types.cmx
+${OCAML_SITELIB}/ldap/ldap_types.mli
+${OCAML_SITELIB}/ldap/ldap_url.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_url.cmx
+${OCAML_SITELIB}/ldap/ldap_url.mli
+${OCAML_SITELIB}/ldap/ldap_urllexer.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldap_urllexer.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif.a
+${OCAML_SITELIB}/ldap/ldif.cma
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif.cmxs
+${OCAML_SITELIB}/ldap/ldif_changerec_lexer.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif_changerec_lexer.cmx
+${OCAML_SITELIB}/ldap/ldif_changerec_oo.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif_changerec_oo.cmx
+${OCAML_SITELIB}/ldap/ldif_changerec_oo.mli
+${OCAML_SITELIB}/ldap/ldif_changerec_parser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif_changerec_parser.cmx
+${OCAML_SITELIB}/ldap/ldif_oo.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif_oo.cmx
+${OCAML_SITELIB}/ldap/ldif_oo.mli
+${OCAML_SITELIB}/ldap/ldif_parser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ldif_parser.cmx
+${OCAML_SITELIB}/ldap/ldif_parser.ml
+${OCAML_SITELIB}/ldap/toplevel.cma
+${OCAML_SITELIB}/ldap/ulist.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/ldap/ulist.cmx
+${OCAML_SITELIB}/ldap/ulist.ml
Index: pkgsrc/databases/ocaml-ldap/distinfo
diff -u /dev/null pkgsrc/databases/ocaml-ldap/distinfo:1.1
--- /dev/null Tue Sep 20 12:52:59 2016
+++ pkgsrc/databases/ocaml-ldap/distinfo Tue Sep 20 12:52:59 2016
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/09/20 12:52:59 jaapb Exp $
+
+SHA1 (ocamldap-2.2.tar.gz) = 897d1b49f16fd321b4bc6654be80e84dfc95ce7b
+RMD160 (ocamldap-2.2.tar.gz) = 8d38657b2aca54fff4ee087036b3003253fca8e0
+SHA512 (ocamldap-2.2.tar.gz) = e24e78497b7c9ed89b0ae73c5773cc9ec28c7c7d317b4b8b39f6b20536ff8f44e15c2657d6aba4bb4689afb5bb155fc7391bea6edab50d0855b22bc457982a2d
+Size (ocamldap-2.2.tar.gz) = 174204 bytes
+SHA1 (patch-src_ldap_ooclient.ml) = 2165beac31f9189d519e171b5fb2fad2f9fc8b18
Index: pkgsrc/databases/ocaml-ldap/patches/patch-src_ldap_ooclient.ml
diff -u /dev/null pkgsrc/databases/ocaml-ldap/patches/patch-src_ldap_ooclient.ml:1.1
--- /dev/null Tue Sep 20 12:52:59 2016
+++ pkgsrc/databases/ocaml-ldap/patches/patch-src_ldap_ooclient.ml Tue Sep 20 12:52:59 2016
@@ -0,0 +1,101 @@
+$NetBSD: patch-src_ldap_ooclient.ml,v 1.1 2016/09/20 12:52:59 jaapb Exp $
+
+Compile with ocaml 4.02 (patch from upstream Github repository)
+--- src/ldap_ooclient.ml.orig 2012-09-29 09:56:40.000000000 +0000
++++ src/ldap_ooclient.ml
+@@ -23,7 +23,6 @@
+ open Ldap_types
+ open Ldap_funclient
+ open Ldap_schemaparser
+-open String
+
+ (* types used throughout the library *)
+ (* add types *)
+@@ -200,13 +199,13 @@ object (self)
+ method flush_changes = changes <- []
+ method changes = changes
+
+- method exists x = Hashtbl.mem data (lowercase x)
++ method exists x = Hashtbl.mem data (String.lowercase x)
+ method add (x:op_lst) =
+ let rec do_add (x:op_lst) =
+ match x with
+ [] -> ()
+ | (name, value) :: lst ->
+- let lcname = lowercase name in
++ let lcname = String.lowercase name in
+ try
+ Ulist.addlst (Hashtbl.find data lcname) value; do_add lst
+ with Not_found ->
+@@ -269,7 +268,7 @@ object (self)
+ match x with
+ [] -> ()
+ | (attr, values) :: lst ->
+- let lcname = lowercase attr in
++ let lcname = String.lowercase attr in
+ match values with
+ [] -> Hashtbl.remove data lcname;do_delete lst
+ | _ ->
+@@ -287,7 +286,7 @@ object (self)
+ match x with
+ [] -> ()
+ | (attr, values) :: lst -> let n = Ulist.create 5 in
+- Ulist.addlst n values; Hashtbl.replace data (lowercase attr) n;
++ Ulist.addlst n values; Hashtbl.replace data (String.lowercase attr) n;
+ do_replace lst;
+ in
+ do_replace x; self#push_change `REPLACE x
+@@ -310,7 +309,7 @@ object (self)
+ in
+ keys data
+
+- method get_value attr = Ulist.tolst (Hashtbl.find data (lowercase attr))
++ method get_value attr = Ulist.tolst (Hashtbl.find data (String.lowercase attr))
+ method set_dn x = dn <- x
+ method dn = dn
+ method print =
+@@ -1058,7 +1057,7 @@ object (self)
+ can generate. *)
+ let generateing = (List.filter
+ (fun gen ->
+- if (Hashtbl.mem generators (lowercase (oidToAttr schema gen))) then
++ if (Hashtbl.mem generators (String.lowercase (oidToAttr schema gen))) then
+ true
+ else false)
+ (List.rev_append
+@@ -1073,7 +1072,7 @@ object (self)
+ (List.rev_append generateing (find_generatable_deps
+ generators
+ (List.rev_map
+- (fun e -> lowercase (oidToAttr schema e))
++ (fun e -> String.lowercase (oidToAttr schema e))
+ generateing)))
+ in
+ let generate_missing togen generators =
+@@ -1191,7 +1190,7 @@ object (self)
+ (* add a service to the account, if they already satisfy the service
+ then do nothing *)
+ method add_service svc =
+- let service = try Hashtbl.find services (lowercase svc)
++ let service = try Hashtbl.find services (String.lowercase svc)
+ with Not_found -> raise (No_service svc) in
+ (try List.iter (self#add_service) service.depends
+ with (No_service x) -> raise (Service_dep_unsatisfiable x));
+@@ -1225,7 +1224,7 @@ object (self)
+ deplst)
+ services [])
+ in
+- let service = try Hashtbl.find services (lowercase svc)
++ let service = try Hashtbl.find services (String.lowercase svc)
+ with Not_found -> raise (No_service svc) in
+ (List.iter (self#delete_service) (find_deps services svc));
+ (List.iter
+@@ -1269,7 +1268,7 @@ object (self)
+ method of_entry ?(scflavor=Pessimistic) e = super#of_entry ~scflavor e;self#resolve_missing
+
+ method add_generate x =
+- (if (Hashtbl.mem generators (lowercase x)) then
++ (if (Hashtbl.mem generators (String.lowercase x)) then
+ toGenerate <- Setstr.add (attrToOid schema (Lcstring.of_string x)) toGenerate
+ else raise (No_generator x));
+ self#resolve_missing
Home |
Main Index |
Thread Index |
Old Index