diff --git a/CHANGES b/CHANGES index 8a40139..725ea01 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +0.5.6 (2018-09-12) +===== +* Switch to the dune build system. + 0.5.5 (2017-10-13) ===== * Make sure that LDFLAGS is honored during build. diff --git a/Makefile b/Makefile index 8a7eab1..18094b6 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,20 @@ clean: all-supported-ocaml-versions: dune build @default @runtest --workspace dune-workspace.dev + +install-dev: + opam install -y opam-query opam-publish tls + +VERSION := $$(opam query --version) +NAME_VERSION := $$(opam query --name-version) +ARCHIVE := $$(opam query --archive) + +release: + git tag -a v$(VERSION) -m "Version $(VERSION)." + git push origin v$(VERSION) + opam publish prepare $(NAME_VERSION) $(ARCHIVE) + cp descr $(NAME_VERSION) + grep -Ev '^(name|version):' opam >$(NAME_VERSION)/opam + opam publish submit $(NAME_VERSION) + rm -rf $(NAME_VERSION) + diff --git a/README.md b/README.md index e34401b..416a0d5 100644 --- a/README.md +++ b/README.md @@ -7,28 +7,13 @@ OCaml-SSL - OCaml bindings for the libssl Copyright (c) 2003-2015 the Savonet Team. -Dependencies ------------- - -To build this library you need to have OCaml 3.08 (and the -[bytes](https://github.com/chambart/ocaml-bytes) module if your OCaml is older -than 4.03) and the [openssl](https://www.openssl.org/) library. - Installation ------------ -To compile the program type: - -``` -./configure -make -``` - -(you can set specific build options with the configure script, see -`./configure --help`) then, to install it, type as root: +`ocaml-ssl` can be installed via [OPAM](https://opam.ocaml.org): ``` -make install +opam install ssl ``` Is this library thread-safe? diff --git a/README.win32 b/README.win32 deleted file mode 100644 index 30539ac..0000000 --- a/README.win32 +++ /dev/null @@ -1,36 +0,0 @@ -OCaml-SSL - OCaml bindings for the libssl -========================================= - -Windows Installation Instructions -================================= - -Author: David Allsopp - -Note - these instructions are only for the MinGW port of OCaml (tested with -3.12.0 and OpenSSL 1.0.0d). - - -Dependencies -============ - -These instructions allow compilation of OpenSSL from sources using the MinGW -compiler instead of Cygwin's. You will need an installation of Cygwin with at -least the core GCC suite (with MinGW compiler), GNU Make and Perl - -Extract the OpenSSL sources from the tarball and from that directory run: - -perl Configure mingw shared --prefix=C:/ocamlmgw -make -make install - -This will install an OCaml compiled OpenSSL library to C:\ocamlmgw - - -Installation -============ - -To compile the OCaml-SSL, run: - -./configure CC='gcc -mno-cygwin' LDFLAGS=-LC:/ocamlmgw/lib CFLAGS=-IC:/ocamlmgw/include -make -make install diff --git a/descr b/descr new file mode 100644 index 0000000..f703707 --- /dev/null +++ b/descr @@ -0,0 +1 @@ +Bindings for OpenSSL diff --git a/opam b/opam new file mode 120000 index 0000000..8f66d15 --- /dev/null +++ b/opam @@ -0,0 +1 @@ +ssl.opam \ No newline at end of file diff --git a/ssl.opam b/ssl.opam index dfc22de..8d1cb9b 100644 --- a/ssl.opam +++ b/ssl.opam @@ -1,4 +1,6 @@ opam-version: "1.2" +name: "ssl" +version: "0.5.6" maintainer: "Christopher Zimmermann " author: "Samuel Mimram " homepage: "https://github.com/savonet/ocaml-ssl"