From 4fd355ad1c1b110b8150e9bde167137078161d5a Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Mon, 22 Nov 2021 13:30:41 +0100 Subject: [PATCH] Initial packaging --- debian/changelog | 5 ++++ debian/control | 43 +++++++++++++++++++++++++++++ debian/copyright | 27 ++++++++++++++++++ debian/gbp.conf | 2 ++ debian/libeqaf-ocaml-dev.docs | 1 + debian/libeqaf-ocaml-dev.install.in | 14 ++++++++++ debian/libeqaf-ocaml.install.in | 5 ++++ debian/rules | 15 ++++++++++ debian/source/format | 1 + debian/watch | 2 ++ 10 files changed, 115 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libeqaf-ocaml-dev.docs create mode 100644 debian/libeqaf-ocaml-dev.install.in create mode 100644 debian/libeqaf-ocaml.install.in create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3a89de7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ocaml-eqaf (0.8-1) UNRELEASED; urgency=medium + + * Initial release (Closes: #1000391) + + -- Stéphane Glondu Mon, 22 Nov 2021 13:26:03 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5b218dc --- /dev/null +++ b/debian/control @@ -0,0 +1,43 @@ +Source: ocaml-eqaf +Section: ocaml +Priority: optional +Maintainer: Debian OCaml Maintainers +Uploaders: Stéphane Glondu +Build-Depends: + debhelper-compat (= 13), + ocaml-nox, + ocaml-dune, + libcstruct-ocaml-dev, + dh-ocaml +Standards-Version: 4.6.0 +Rules-Requires-Root: no +Vcs-Browser: https://salsa.debian.org/ocaml-team/ocaml-eqaf +Vcs-Git: https://salsa.debian.org/ocaml-team/ocaml-eqaf.git +Homepage: https://github.com/mirage/eqaf + +Package: libeqaf-ocaml-dev +Provides: ${ocaml:Provides} +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Recommends: ocaml-findlib +Description: constant-time equal function on string for OCaml (dev files) + This package provides an equal function on string in constant-time to + avoid timing-attack with crypto stuff. + . + This package contains development files. + +Package: libeqaf-ocaml +Provides: ${ocaml:Provides} +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Description: constant-time equal function on string for OCaml (runtime files) + This package provides an equal function on string in constant-time to + avoid timing-attack with crypto stuff. + . + This package contains runtime files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..37de472 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2018, Romain Calascibetta +License: MIT + +Files: debian/* +Copyright: 2021, Stéphane Glondu +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/libeqaf-ocaml-dev.docs b/debian/libeqaf-ocaml-dev.docs new file mode 100644 index 0000000..a7a328f --- /dev/null +++ b/debian/libeqaf-ocaml-dev.docs @@ -0,0 +1 @@ +usr/doc/*/* diff --git a/debian/libeqaf-ocaml-dev.install.in b/debian/libeqaf-ocaml-dev.install.in new file mode 100644 index 0000000..e06b4e3 --- /dev/null +++ b/debian/libeqaf-ocaml-dev.install.in @@ -0,0 +1,14 @@ +@OCamlStdlibDir@/*/*opam* +@OCamlStdlibDir@/*/*dune* +@OCamlStdlibDir@/*/*.ml* +@OCamlStdlibDir@/*/*.cmi +@OCamlStdlibDir@/*/*.cmt* +OPT: @OCamlStdlibDir@/*/*.a +OPT: @OCamlStdlibDir@/*/*.cmx +OPT: @OCamlStdlibDir@/*/*.cmxa +@OCamlStdlibDir@/*/*/*.ml* +@OCamlStdlibDir@/*/*/*.cmi +@OCamlStdlibDir@/*/*/*.cmt* +OPT: @OCamlStdlibDir@/*/*/*.a +OPT: @OCamlStdlibDir@/*/*/*.cmx +OPT: @OCamlStdlibDir@/*/*/*.cmxa diff --git a/debian/libeqaf-ocaml.install.in b/debian/libeqaf-ocaml.install.in new file mode 100644 index 0000000..0f2ecc4 --- /dev/null +++ b/debian/libeqaf-ocaml.install.in @@ -0,0 +1,5 @@ +@OCamlStdlibDir@/*/META +@OCamlStdlibDir@/*/*.cma +DYN: @OCamlStdlibDir@/*/*.cmxs +@OCamlStdlibDir@/*/*/*.cma +DYN: @OCamlStdlibDir@/*/*/*.cmxs diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ccbc4e9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +include /usr/share/ocaml/ocamlvars.mk + +DESTDIR=$(CURDIR)/debian/tmp + +%: + dh $@ --with ocaml + +override_dh_auto_build: + dune build -p eqaf + +override_dh_auto_install: + dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=..$(OCAML_STDLIB_DIR) + rm -f $(DESTDIR)/usr/doc/*/LICENSE* diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..0b2fd57 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/mirage/eqaf/releases .*eqaf-v?([0-9.]+)\.tbz -- 2.30.2