Initial packaging
authorStephane Glondu <steph@glondu.net>
Mon, 22 Nov 2021 12:30:41 +0000 (13:30 +0100)
committerStéphane Glondu <steph@glondu.net>
Mon, 22 Nov 2021 12:45:23 +0000 (13:45 +0100)
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]
debian/libeqaf-ocaml-dev.docs [new file with mode: 0644]
debian/libeqaf-ocaml-dev.install.in [new file with mode: 0644]
debian/libeqaf-ocaml.install.in [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3a89de7
--- /dev/null
@@ -0,0 +1,5 @@
+ocaml-eqaf (0.8-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #1000391)
+
+ -- Stéphane Glondu <glondu@debian.org>  Mon, 22 Nov 2021 13:26:03 +0100
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..5b218dc
--- /dev/null
@@ -0,0 +1,43 @@
+Source: ocaml-eqaf
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
+Uploaders: Stéphane Glondu <glondu@debian.org>
+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 (file)
index 0000000..37de472
--- /dev/null
@@ -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 <glondu@debian.org>
+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 (file)
index 0000000..cec628c
--- /dev/null
@@ -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 (file)
index 0000000..a7a328f
--- /dev/null
@@ -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 (file)
index 0000000..e06b4e3
--- /dev/null
@@ -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 (file)
index 0000000..0f2ecc4
--- /dev/null
@@ -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 (executable)
index 0000000..ccbc4e9
--- /dev/null
@@ -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 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..0b2fd57
--- /dev/null
@@ -0,0 +1,2 @@
+version=4
+https://github.com/mirage/eqaf/releases .*eqaf-v?([0-9.]+)\.tbz