summaryrefslogtreecommitdiff
path: root/net/ocaml-protocol_version_header
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2019-03-25 09:19:32 +0000
committerjaapb <jaapb@pkgsrc.org>2019-03-25 09:19:32 +0000
commitcb856e5aba54e7ea3884d94aede8a031fce4d6b6 (patch)
treeceb843aad8a722ea2a6e987031970af65cf7a8b7 /net/ocaml-protocol_version_header
parentd02332dd287d8cb4c4ac0d89fb3d2ec38d856617 (diff)
downloadpkgsrc-cb856e5aba54e7ea3884d94aede8a031fce4d6b6.tar.gz
Added net/ocaml-protocol_version_header, protocol-aware version negotation
Diffstat (limited to 'net/ocaml-protocol_version_header')
-rw-r--r--net/ocaml-protocol_version_header/DESCR3
-rw-r--r--net/ocaml-protocol_version_header/Makefile21
-rw-r--r--net/ocaml-protocol_version_header/PLIST26
-rw-r--r--net/ocaml-protocol_version_header/buildlink3.mk13
-rw-r--r--net/ocaml-protocol_version_header/distinfo6
5 files changed, 69 insertions, 0 deletions
diff --git a/net/ocaml-protocol_version_header/DESCR b/net/ocaml-protocol_version_header/DESCR
new file mode 100644
index 00000000000..100f2633ad5
--- /dev/null
+++ b/net/ocaml-protocol_version_header/DESCR
@@ -0,0 +1,3 @@
+Protocol_version_header is a small library that houses magic numbers for various
+protocols. It exposes a negotiate function that is magic number aware, returning
+human readable error messages when negotiation fails.
diff --git a/net/ocaml-protocol_version_header/Makefile b/net/ocaml-protocol_version_header/Makefile
new file mode 100644
index 00000000000..31e438c371c
--- /dev/null
+++ b/net/ocaml-protocol_version_header/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/03/25 09:19:32 jaapb Exp $
+
+GITHUB_PROJECT= protocol_version_header
+GITHUB_TAG= v${PKGVERSION_NOREV}
+DISTNAME= ${GITHUB_PROJECT}-0.12.0
+PKGNAME= ocaml-${DISTNAME}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=janestreet/}
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= https://github.com/janestreet/protocol_version_header/
+COMMENT= Protocol-aware version negotiation for OCaml
+LICENSE= mit
+
+USE_LANGUAGES= # none
+OCAML_USE_DUNE= yes
+
+.include "../../mk/ocaml.mk"
+.include "../../devel/ocaml-core_kernel/buildlink3.mk"
+.include "../../devel/ocaml-ppx_jane/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ocaml-protocol_version_header/PLIST b/net/ocaml-protocol_version_header/PLIST
new file mode 100644
index 00000000000..8e479babd18
--- /dev/null
+++ b/net/ocaml-protocol_version_header/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2019/03/25 09:19:32 jaapb Exp $
+${OCAML_SITELIB}/protocol_version_header/META
+${OCAML_SITELIB}/protocol_version_header/dune-package
+${OCAML_SITELIB}/protocol_version_header/known_protocol.ml
+${OCAML_SITELIB}/protocol_version_header/known_protocol.mli
+${OCAML_SITELIB}/protocol_version_header/opam
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header.a
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cma
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmi
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmt
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header.cmxs
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.ml
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header.mli
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__.cmi
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__.cmt
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header__.cmx
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__.ml
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__Known_protocol.cmi
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__Known_protocol.cmt
+${OCAML_SITELIB}/protocol_version_header/protocol_version_header__Known_protocol.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/protocol_version_header/protocol_version_header__Known_protocol.cmx
+share/doc/protocol_version_header/LICENSE.md
+share/doc/protocol_version_header/README.org
diff --git a/net/ocaml-protocol_version_header/buildlink3.mk b/net/ocaml-protocol_version_header/buildlink3.mk
new file mode 100644
index 00000000000..88e9c9f554b
--- /dev/null
+++ b/net/ocaml-protocol_version_header/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/03/25 09:19:32 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-protocol_version_header
+
+.if !defined(OCAML_PROTOCOL_VERSION_HEADER_BUILDLINK3_MK)
+OCAML_PROTOCOL_VERSION_HEADER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-protocol_version_header+= ocaml-protocol_version_header>=0.12.0
+BUILDLINK_PKGSRCDIR.ocaml-protocol_version_header?= ../../net/ocaml-protocol_version_header
+
+.endif # OCAML_PROTOCOL_VERSION_HEADER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-protocol_version_header
diff --git a/net/ocaml-protocol_version_header/distinfo b/net/ocaml-protocol_version_header/distinfo
new file mode 100644
index 00000000000..bfd49b5589b
--- /dev/null
+++ b/net/ocaml-protocol_version_header/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/03/25 09:19:32 jaapb Exp $
+
+SHA1 (protocol_version_header-0.12.0.tar.gz) = 1338478b668f556f0b11dad2c896f6f2cfcef235
+RMD160 (protocol_version_header-0.12.0.tar.gz) = fb5941ee6fef7711d2d78ccad0af3ba9848a2816
+SHA512 (protocol_version_header-0.12.0.tar.gz) = 2c6ed33f23d1169a54a870c42d3a7dfa7dec0da2ab559f3109b33587ad4b953e927b7485d940a261f6ee2bc711a8cd6dd20aa541ac0a8c53e1e5af77b38a2b2c
+Size (protocol_version_header-0.12.0.tar.gz) = 5303 bytes