-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes the previous topkg/ocamlbuild setup in favor of jbuilder/topkg. This splits tls into 3 packages: tls, tls-lwt, and tls-mirage. Since we're still using topkg, the publishing workflow should be the same as before. Users of tls shouldn't notice any breakage, as the META is still preserving the old tls.{mirage,lwt} as subpackages. However, these will now require the appropriate opam sub packages to be installed to work.
- Loading branch information
Showing
17 changed files
with
156 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# JBUILDER_GEN | ||
|
||
package "mirage" ( | ||
description = "Deprecated. Use tls-mirage" | ||
requires = "tls-mirage" | ||
) | ||
|
||
package "lwt" ( | ||
description = "Deprecated. Use tls-lwt" | ||
requires = "tls-lwt" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(jbuild_version 1) | ||
|
||
(library | ||
((name tls) | ||
(public_name tls) | ||
(synopsis "Transport layer security (TLS 1.x) purely in OCaml") | ||
(preprocess (pps (ppx_cstruct ppx_sexp_conv -no-check))) | ||
(libraries (cstruct nocrypto result x509 sexplib)))) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(jbuild_version 1) | ||
|
||
(executables | ||
((names | ||
(starttls_server | ||
echo_server | ||
echo_server_sni | ||
echo_client | ||
test_server | ||
test_client)) | ||
(libraries (tls-lwt str)))) | ||
|
||
(alias | ||
((name DEFAULT) | ||
(deps | ||
(starttls_server.exe | ||
echo_server.exe | ||
echo_server_sni.exe | ||
echo_client.exe | ||
test_server.exe | ||
test_client.exe)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(jbuild_version 1) | ||
|
||
(library | ||
((name tls_lwt) | ||
(public_name tls-lwt) | ||
(synopsis "Effectful lwt layer for TLS") | ||
(libraries (lwt lwt.unix tls nocrypto.lwt x509)) | ||
(wrapped false))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(jbuild_version 1) | ||
|
||
(library | ||
((name tls_mirage) | ||
(public_name tls-mirage) | ||
(synopsis "Effectful mirage layer for TLS") | ||
(wrapped false) | ||
(libraries (tls mirage-flow-lwt mirage-kv-lwt mirage-clock lwt ptime)))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,2 @@ | ||
#!/usr/bin/env ocaml | ||
#use "topfind" | ||
#require "topkg" | ||
open Topkg | ||
|
||
let lwt = Conf.with_pkg ~default:false "lwt" | ||
let mirage = Conf.with_pkg ~default:false "mirage" | ||
|
||
let opams = | ||
let lint_deps_excluding = | ||
Some ["ounit"; "oUnit"; "ppx_tools"] | ||
in | ||
[Pkg.opam_file ~lint_deps_excluding "opam"] | ||
|
||
let () = | ||
Pkg.describe ~opams "tls" @@ fun c -> | ||
let lwt = Conf.value c lwt | ||
and mirage = Conf.value c mirage | ||
in | ||
let exts = Exts.(cmx @ library @ exts [".cmi" ; ".cmt" ]) in | ||
Ok [ | ||
Pkg.lib ~exts "lib/tls" ; | ||
Pkg.mllib ~cond:lwt "lwt/tls-lwt.mllib" ; | ||
Pkg.mllib ~cond:mirage "mirage/tls-mirage.mllib" ; | ||
Pkg.test "tests/unittestrunner" ; | ||
Pkg.test ~run:false "tests/feedback" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/starttls_server" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/echo_server" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/echo_server_sni" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/echo_client" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/test_server" ; | ||
Pkg.test ~run:false ~cond:lwt "lwt/examples/test_client" ; | ||
] | ||
#require "topkg-jbuilder.auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(jbuild_version 1) | ||
|
||
(executable | ||
((name unittestrunner) | ||
(libraries (tls nocrypto cstruct-unix oUnit)))) | ||
|
||
(alias | ||
((name runtest) | ||
(deps (unittestrunner.exe)) | ||
(action (run ${<})))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
opam-version: "1.2" | ||
homepage: "https://github.com/mirleft/ocaml-tls" | ||
dev-repo: "https://github.com/mirleft/ocaml-tls.git" | ||
bug-reports: "https://github.com/mirleft/ocaml-tls/issues" | ||
doc: "https://mirleft.github.io/ocaml-tls/doc" | ||
author: ["David Kaloper <david@numm.org>" "Hannes Mehnert <hannes@mehnert.org>"] | ||
maintainer: ["Hannes Mehnert <hannes@mehnert.org>" "David Kaloper <david@numm.org>"] | ||
license: "BSD2" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
] | ||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build & >= "1.0+beta10"} | ||
"tls" | ||
"lwt" {>= "2.4.8"} | ||
"result" | ||
"cstruct" {>= "1.9.0"} | ||
"sexplib" | ||
"nocrypto" {>= "0.5.4"} | ||
"x509" {>= "0.5.0"} | ||
] | ||
|
||
tags: [ "org:mirage"] | ||
available: [ ocaml-version >= "4.02.3" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
opam-version: "1.2" | ||
homepage: "https://github.com/mirleft/ocaml-tls" | ||
dev-repo: "https://github.com/mirleft/ocaml-tls.git" | ||
bug-reports: "https://github.com/mirleft/ocaml-tls/issues" | ||
doc: "https://mirleft.github.io/ocaml-tls/doc" | ||
author: ["David Kaloper <david@numm.org>" "Hannes Mehnert <hannes@mehnert.org>"] | ||
maintainer: ["Hannes Mehnert <hannes@mehnert.org>" "David Kaloper <david@numm.org>"] | ||
license: "BSD2" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
] | ||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build & >= "1.0+beta10"} | ||
"tls" | ||
"result" | ||
"lwt" {>= "2.4.8"} | ||
"cstruct" {>= "1.9.0"} | ||
"mirage-net-xen" {>= "1.3.0"} | ||
"mirage-types" {>= "3.0.0"} | ||
"sexplib" | ||
"nocrypto" {>= "0.5.4"} | ||
"x509" {>= "0.5.0"} | ||
"ptime" {>= "0.8.1"} | ||
] | ||
|
||
tags: [ "org:mirage"] | ||
available: [ ocaml-version >= "4.02.3" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
opam-version: "1.2" | ||
homepage: "https://github.com/mirleft/ocaml-tls" | ||
dev-repo: "https://github.com/mirleft/ocaml-tls.git" | ||
bug-reports: "https://github.com/mirleft/ocaml-tls/issues" | ||
doc: "https://mirleft.github.io/ocaml-tls/doc" | ||
author: ["David Kaloper <david@numm.org>" "Hannes Mehnert <hannes@mehnert.org>"] | ||
maintainer: ["Hannes Mehnert <hannes@mehnert.org>" "David Kaloper <david@numm.org>"] | ||
license: "BSD2" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
] | ||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build & >= "1.0+beta10"} | ||
"ppx_sexp_conv" {build} | ||
"ppx_cstruct" {build} | ||
"result" | ||
"cstruct" {>= "1.9.0"} | ||
"sexplib" | ||
"nocrypto" {>= "0.5.4"} | ||
"x509" {>= "0.5.0"} | ||
"ounit" {test} | ||
"cstruct-unix" {test} | ||
] | ||
|
||
tags: [ "org:mirage"] | ||
available: [ ocaml-version >= "4.02.3" ] |