debian/0000755000000000000000000000000012256061046007170 5ustar debian/changelog0000644000000000000000000001033512256061046011044 0ustar ocaml-sha (1.9-1build1) trusty; urgency=medium * Rebuild for ocaml-4.01. -- Matthias Klose Mon, 23 Dec 2013 16:17:43 +0000 ocaml-sha (1.9-1) unstable; urgency=low * New upstream version (closes: #663520) * Patch C stubs to silence gcc warnings * Update standards version and build dependencies * Drop DM-Upload-Allowed * Update copyright format * Update Homepage and VCS-* fields * Increased debhelper compatibility level to 9 * Update watch file for github -- Eric Cooper Fri, 01 Nov 2013 20:05:22 -0400 ocaml-sha (1.7-2) unstable; urgency=low * Add Makefile targets for bytecode-only architectures (closes: #616176) -- Eric Cooper Wed, 02 Mar 2011 19:54:10 -0500 ocaml-sha (1.7-1) unstable; urgency=low * Use dh instead of cdbs * Suggest ocaml-findlib * Update standards version and build dependencies * Make debian/copyright file machine-readable * Improve short descriptions * Add debian/source/format * Use debian/patches for all changes to upstream source -- Eric Cooper Fri, 25 Feb 2011 14:04:25 -0500 ocaml-sha (1.6-1) unstable; urgency=low * New upstream version -- Eric Cooper Fri, 09 Oct 2009 09:59:30 -0400 ocaml-sha (1.5-4) unstable; urgency=low * Make install target work correctly on bytecode-only architectures (closes: #550298) -- Eric Cooper Thu, 08 Oct 2009 20:44:50 -0400 ocaml-sha (1.5-3) unstable; urgency=low * Use DESTDIR with ocamlfind for install target * Convert to dh_ocaml version 0.9 -- Eric Cooper Wed, 07 Oct 2009 10:21:30 -0400 ocaml-sha (1.5-2) unstable; urgency=low * Compile C files with -fPIC (closes: #518038) * Change Maintainer to d-o-m * Add shasum.ml example in -dev package -- Eric Cooper Tue, 03 Mar 2009 15:43:10 -0500 ocaml-sha (1.5-1) unstable; urgency=low * New upstream version * Use modified upstream Makefile * Add dh-ocaml and drop ocamlmakefile from build-deps -- Eric Cooper Sun, 01 Mar 2009 16:39:29 -0500 ocaml-sha (1.4-6) UNRELEASED; urgency=low [ Stefano Zacchiroli ] * NOT RELEASED YET [ Eric Cooper] * Update standards version [ Stephane Glondu ] * Switching packaging to git -- Eric Cooper Mon, 15 Dec 2008 09:28:10 -0500 ocaml-sha (1.4-5) unstable; urgency=low [ Eric Cooper ] * Remove XS- prefix from Vcs- fields in debian/control * Add DM-Upload-Allowed to debian/control [ Stefano Zacchiroli ] * promote Homepage to a real debian/control field -- Eric Cooper Sun, 03 Feb 2008 18:00:22 -0500 ocaml-sha (1.4-4) unstable; urgency=low * Use support for ocamldoc in OCaml cdbs class -- Eric Cooper Mon, 03 Sep 2007 18:18:40 -0400 ocaml-sha (1.4-3) unstable; urgency=low * Changed ${Source-Version} substvar to ${binary:Version} in debian/control -- Eric Cooper Thu, 02 Aug 2007 17:20:31 -0400 ocaml-sha (1.4-2) unstable; urgency=low * Replaced dependency on ocaml-tools by ocamlmakefile. * Added myself to uploaders. -- Ralf Treinen Sun, 03 Jun 2007 22:16:25 +0200 ocaml-sha (1.4-1) unstable; urgency=low * New upstream version -- Eric Cooper Sun, 22 Apr 2007 12:23:52 -0400 ocaml-sha (1.3-1) unstable; urgency=low * New upstream version -- Eric Cooper Sun, 3 Sep 2006 09:13:11 -0400 ocaml-sha (1.2-1) unstable; urgency=low * New upstream version (renamed) -- Eric Cooper Thu, 31 Aug 2006 11:00:53 -0400 ocaml-sha1 (0.9-2) unstable; urgency=low * Work around incorrect OCamlMakefile libinstall on architectures without ocamlopt (ocaml-tools bug #381638), closes: #381620 -- Eric Cooper Sun, 6 Aug 2006 14:26:19 -0400 ocaml-sha1 (0.9-1) unstable; urgency=low * New upstream version -- Eric Cooper Mon, 31 Jul 2006 12:06:20 -0400 ocaml-sha1 (0.8-2) unstable; urgency=low * Add libsha1-ocaml package with runtime stub libraries * Convert debian/rules to CDBS -- Eric Cooper Tue, 25 Jul 2006 14:21:30 -0400 ocaml-sha1 (0.8-1) unstable; urgency=low * Initial packaging * Closes: #378938 -- Eric Cooper Sun, 23 Jul 2006 14:30:00 -0400 debian/META.in0000644000000000000000000000020112235222707010237 0ustar name="sha" description="SHA cryptographic hash functions" version="@VERSION@" archive(byte)="sha.cma" archive(native)="sha.cmxa" debian/libsha-ocaml.install.in0000644000000000000000000000005012235222707013513 0ustar @OCamlStdlibDir@/sha/*.so @OCamlDllDir@ debian/rules0000755000000000000000000000061212235222707010247 0ustar #!/usr/bin/make -f %: dh $@ --with ocaml export OCAMLFIND_DESTDIR = debian/tmp/$(shell /usr/bin/ocamlc -where) export OCAMLFIND_LDCONF = ignore ifneq ($(wildcard /usr/bin/ocamlopt),) override_dh_auto_install: mkdir -p $(OCAMLFIND_DESTDIR) $(MAKE) install else override_dh_auto_build: $(MAKE) all-byte override_dh_auto_install: mkdir -p $(OCAMLFIND_DESTDIR) $(MAKE) install-byte endif debian/libsha-ocaml-dev.install.in0000644000000000000000000000015112235222707014271 0ustar @OCamlStdlibDir@/sha/META @OCamlStdlibDir@/sha/*.a @OCamlStdlibDir@/sha/*.cm* @OCamlStdlibDir@/sha/*.ml* debian/gbp.conf0000644000000000000000000000003612235222707010606 0ustar [DEFAULT] pristine-tar = True debian/control0000644000000000000000000000247412235222707010602 0ustar Source: ocaml-sha Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Eric Cooper Build-Depends: debhelper (>= 9), ocaml-nox, ocaml-findlib, dh-ocaml Standards-Version: 3.9.4 Homepage: https://github.com/vincenthz/ocaml-sha Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/ocaml-sha.git Vcs-Browser: http://anonscm.debian.org/git/pkg-ocaml-maint/packages/ocaml-sha.git Package: libsha-ocaml Architecture: any Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends} Provides: ${ocaml:Provides} Description: SHA cryptographic hash functions for OCaml (runtime) SHA-1 produces a 160-bit digest from its input. SHA-256 and SHA-512 produce 256-bit and 512-bit digests from their inputs, respectively. . This package contains the shared runtime stub libraries. Package: libsha-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends} Provides: ${ocaml:Provides} Suggests: ocaml-findlib Description: SHA cryptographic hash functions for OCaml (development files) SHA-1 produces a 160-bit digest from its input. SHA-256 and SHA-512 produce 256-bit and 512-bit digests from their inputs, respectively. . This package contains the files needed to compile OCaml programs that use the SHA library. debian/copyright0000644000000000000000000000170612235222707011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Files: * Copyright: 2006-2009 Vincent Hanquez License: LGPL-2.1 or LGPL-3 Files: debian/* Copyright: 2011 Eric Cooper License: LGPL-2.1 or LGPL-3 License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 only. . On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1 License: LGPL-3 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 3 only. . On Debian systems, the complete text of the GNU Lesser General Public License version 3 can be found in /usr/share/common-licenses/LGPL-3 debian/source/0000755000000000000000000000000012235222707010470 5ustar debian/source/format0000644000000000000000000000001412235222707011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000013412235222707010217 0ustar version=3 http://github.com/vincenthz/ocaml-sha/releases \ .*/(?:ocaml-sha-)?v(.*)\.tar\.gz debian/patches/0000755000000000000000000000000012235222707010617 5ustar debian/patches/0002-compile-C-files-with-fPIC.patch0000644000000000000000000000100112235222707016647 0ustar From: Eric Cooper Date: Fri, 25 Feb 2011 13:51:15 -0500 Subject: compile C files with -fPIC closes: #518038 Signed-off-by: Eric Cooper --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 6f7b45e..64819c9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -Wall -O3 -funroll-loops -I/usr/include +CFLAGS = -Wall -O3 -funroll-loops -fPIC -DPIC OCAMLC = ocamlc OCAMLOPT = ocamlopt OCAMLMKLIB = ocamlmklib -- debian/patches/0004-add-all-byte-and-install-byte-targets.patch0000644000000000000000000000223712235222707021300 0ustar From: Eric Cooper Date: Wed, 2 Mar 2011 19:19:40 -0500 Subject: add all-byte and install-byte targets closes: #616176 Signed-off-by: Eric Cooper --- Makefile | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 82bd445..c72417c 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,8 @@ allshaopts = $(foreach n, 1 256 512, sha$(n).lib.$(OBJ) sha$(n)_stubs.$(OBJ) sh all: sha1.cmi sha1.cma sha1.cmxa sha256.cma sha256.cmxa sha512.cma sha512.cmxa sha.cma sha.cmxa +all-byte: sha1.cma sha256.cma sha512.cma sha.cma + bins: $(PROGRAMS) sha1sum$(EXE): sha1.cmxa sha256.cmxa sha512.cmxa shasum.cmx @@ -107,5 +109,8 @@ clean: install: sha1.cma sha1.cmxa sha256.cma sha256.cmxa sha512.cma sha512.cmxa sha.cma sha.cmxa META ocamlfind install sha META *.mli sha1.cmi sha1.cma sha1.cmxa sha256.cmi sha256.cma sha256.cmxa sha512.cmi sha512.cma sha512.cmxa sha.cma sha.cmxa *.$(A) *.$(SO) +install-byte: sha1.cma sha256.cma sha512.cma sha.cma + ocamlfind install sha META *.mli sha1.cmi sha1.cma sha256.cmi sha256.cma sha512.cmi sha512.cma sha.cma *.$(A) *.$(SO) + uninstall: ocamlfind remove sha -- debian/patches/0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch0000644000000000000000000000241412235222707023742 0ustar From 7a8739e762c25a20249a4979045ce4a7383078b3 Mon Sep 17 00:00:00 2001 From: Eric Cooper Date: Fri, 1 Nov 2013 22:41:05 -0400 Subject: [PATCH] include in C stubs to silence gcc warnings Signed-off-by: Eric Cooper --- sha1_stubs.c | 1 + sha256_stubs.c | 1 + sha512_stubs.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sha1_stubs.c b/sha1_stubs.c index e0260bc..5853bb0 100644 --- a/sha1_stubs.c +++ b/sha1_stubs.c @@ -16,6 +16,7 @@ #define _GNU_SOURCE #include #include +#include #include "sha1.h" static inline int sha1_file(char *filename, sha1_digest *digest) diff --git a/sha256_stubs.c b/sha256_stubs.c index 303171d..110869e 100644 --- a/sha256_stubs.c +++ b/sha256_stubs.c @@ -16,6 +16,7 @@ #define _GNU_SOURCE #include #include +#include #include "sha256.h" static inline int sha256_file(char *filename, sha256_digest *digest) diff --git a/sha512_stubs.c b/sha512_stubs.c index 2a7a071..c1dde96 100644 --- a/sha512_stubs.c +++ b/sha512_stubs.c @@ -16,6 +16,7 @@ #define _GNU_SOURCE #include #include +#include #include "sha512.h" static inline int sha512_file(char *filename, sha512_digest *digest) -- 1.8.4.rc3 debian/patches/series0000644000000000000000000000041612235222707012035 0ustar 0001-install-mli-files.patch 0002-compile-C-files-with-fPIC.patch 0003-use-internal-ccopts-variable.patch 0004-add-all-byte-and-install-byte-targets.patch 0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch 0006-change-compiler-flags-for-building-tests.patch debian/patches/0006-change-compiler-flags-for-building-tests.patch0000644000000000000000000000123012235222707022065 0ustar From 624d6580d5d6f9108af01d310e51dd887179a9c8 Mon Sep 17 00:00:00 2001 From: Eric Cooper Date: Sat, 2 Nov 2013 12:15:46 -0400 Subject: [PATCH] change compiler flags for building tests Signed-off-by: Eric Cooper --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 334847d..7ab1a4c 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ endif OCAMLOPTFLAGS = -OCAML_TEST_INC = -I `ocamlfind query oUnit` +OCAML_TEST_INC = -I `ocamlfind query oUnit` -I . -w -24 OCAML_TEST_LIB = `ocamlfind query oUnit`/oUnit.cmxa PROGRAMS_BINS = sha1sum sha256sum sha512sum -- 1.8.4.rc3 debian/patches/0003-use-internal-ccopts-variable.patch0000644000000000000000000000155612235222707017711 0ustar From: Eric Cooper Date: Fri, 25 Feb 2011 11:43:56 -0500 Subject: use internal ccopts variable use $(ccopts) instead of $(CFLAGS) so that we still get correct settings when CFLAGS is set by the build system Signed-off-by: Eric Cooper --- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 64819c9..82bd445 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -Wall -O3 -funroll-loops -fPIC -DPIC +ccopts = $(CFLAGS) -Wall -O3 -funroll-loops -fPIC -DPIC OCAMLC = ocamlc OCAMLOPT = ocamlopt OCAMLMKLIB = ocamlmklib @@ -91,7 +91,7 @@ sha.test: sha1.cmxa sha256.cmxa sha512.cmxa sha.test.cmx $(OCAMLOPT) $(OCAMLOPTFLAGS) -c -o $@ $< %.$(OBJ): %.c - $(OCAMLC) -ccopt "$(CFLAGS)" -c -o $@ $< + $(OCAMLC) -ccopt "$(ccopts)" -c -o $@ $< %.lib.$(OBJ): %.$(OBJ) mv $< $@ -- debian/patches/0001-install-mli-files.patch0000644000000000000000000000156412235222707015551 0ustar From: Eric Cooper Date: Fri, 25 Feb 2011 12:30:00 -0500 Subject: install mli files Signed-off-by: Eric Cooper --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 334847d..6f7b45e 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ clean: rm -f *.$(OBJ) *.$(A) *.$(SO) *.cmo *.cmi *.cma *.cmx *.cmxa sha.test $(PROGRAMS) install: sha1.cma sha1.cmxa sha256.cma sha256.cmxa sha512.cma sha512.cmxa sha.cma sha.cmxa META - ocamlfind install sha META *.cmx sha1.cmi sha1.cma sha1.cmxa sha256.cmi sha256.cma sha256.cmxa sha512.cmi sha512.cma sha512.cmxa sha.cma sha.cmxa *.$(A) *.$(SO) + ocamlfind install sha META *.mli sha1.cmi sha1.cma sha1.cmxa sha256.cmi sha256.cma sha256.cmxa sha512.cmi sha512.cma sha512.cmxa sha.cma sha.cmxa *.$(A) *.$(SO) uninstall: ocamlfind remove sha -- debian/libsha-ocaml-dev.ocamldoc0000644000000000000000000000014712235222707014004 0ustar # flags for ocamldoc # (this file must be non-empty to be represented in the .diff.gz for the package) debian/libsha-ocaml-dev.examples0000644000000000000000000000001212235222707014030 0ustar shasum.ml debian/compat0000644000000000000000000000000212235222707010366 0ustar 9 debian/libsha-ocaml-dev.docs0000644000000000000000000000000712235222707013146 0ustar README