--- ocaml-sha-1.4.orig/debian/control
+++ ocaml-sha-1.4/debian/control
@@ -0,0 +1,40 @@
+Source: ocaml-sha
+Section: devel
+Priority: optional
+Maintainer: Eric Cooper <ecc@cmu.edu>
+Uploaders: Ralf Treinen <treinen@debian.org>
+Build-Depends: debhelper (>= 5.0), cdbs, ocaml-nox (>= 3.10.1), ocamlmakefile (>= 6.27.0-1~bpo40), ocaml-findlib (>= 1.2.1-4~bpo40+3)
+Standards-Version: 3.7.2
+XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/ocaml-sha
+XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha/trunk/
+
+Package: libsha-ocaml
+Architecture: any
+Section: libs
+Replaces: libsha1-ocaml
+Conflicts: libsha1-ocaml
+Depends: ocaml-base-nox-${F:OCamlABI}, ${shlibs:Depends}
+Description: SHA cryptographic hash functions for OCaml
+ 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.
+ .
+  Homepage: http://tab.snarc.org/projects/ocaml_sha/
+
+Package: libsha-ocaml-dev
+Architecture: any
+Section: libdevel
+Depends: ocaml-nox-${F:OCamlABI}, libsha-ocaml (= ${binary:Version})
+Replaces: libsha1-ocaml-dev
+Conflicts: libsha1-ocaml-dev
+Description: SHA cryptographic hash functions for OCaml
+ 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.
+ .
+  Homepage: http://tab.snarc.org/projects/ocaml_sha/
--- ocaml-sha-1.4.orig/debian/Makefile
+++ ocaml-sha-1.4/debian/Makefile
@@ -0,0 +1,12 @@
+OCAMLMAKEFILE = /usr/share/ocamlmakefile/OCamlMakefile
+
+RESULT = sha
+
+SOURCES = sha.ml $(foreach n,1 256 512,sha$(n).mli sha$(n).ml sha$(n)_stubs.c)
+CFLAGS = -Wall -O3 -funroll-loops
+OCAMLDOCFLAGS = -keep-code
+NO_CUSTOM = yes
+
+all: byte-code-library
+
+include $(OCAMLMAKEFILE)
--- ocaml-sha-1.4.orig/debian/rules
+++ ocaml-sha-1.4/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/class/ocaml.mk
+
+OCAML_OCAMLDOC_PACKAGES = $(OCAML_LIBDEV_PACKAGES)
+
+DEB_MAKE_MAKEFILE = debian/Makefile
+DEB_MAKE_BUILD_TARGET = byte-code-library
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+    DEB_MAKE_BUILD_TARGET += native-code-library
+endif
+
+META:
+	echo 'name="sha"' > META
+	echo 'description="SHA cryptographic hash functions"' >> META
+	echo 'version="'$(DEB_NOEPOCH_VERSION)'"' >> META
+	echo 'archive(byte)="sha.cma"' >> META
+	echo 'archive(native)="sha.cmxa"' >> META
+
+build/libsha-ocaml-dev:: META
+
+clean::
+	rm -f META
--- ocaml-sha-1.4.orig/debian/watch
+++ ocaml-sha-1.4/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://tab.snarc.org/download/ocaml/ocaml_sha-(.*)\.tar\.bz2
--- ocaml-sha-1.4.orig/debian/svn-deblayout
+++ ocaml-sha-1.4/debian/svn-deblayout
@@ -0,0 +1,3 @@
+origDir=../upstream
+origUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/ocaml-sha/upstream
+tagsUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/tags/packages/ocaml-sha
--- ocaml-sha-1.4.orig/debian/changelog
+++ ocaml-sha-1.4/debian/changelog
@@ -0,0 +1,82 @@
+ocaml-sha (1.4-4~bpo40+2) etch-backports; urgency=low
+
+  * Rebuild against ocaml 3.10.1
+  * Updated build-dep accordingly
+
+ -- Romain Beauxis <toots@rastageeks.org>  Fri, 16 May 2008 19:13:06 +0200
+
+ocaml-sha (1.4-4~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild testing version for backports.org
+  * Change versioned build-dep against ocaml-nox to version in backports.org
+    (>= 3.10.0-13~bpo40+1)
+  * Change versioned build-dep against ocamlmakefile to version in backports.org
+    (>= 6.27.0-1~bpo40)
+  * Changed versioned build-dep against ocaml-findlib to version in
+    backports.org (>= 1.2.1-3~bpo40+1)
+
+ -- Micah Anderson <micah@debian.org>  Sun, 27 Jan 2008 15:11:33 -0500
+
+ocaml-sha (1.4-4) unstable; urgency=low
+
+  * Use support for ocamldoc in OCaml cdbs class
+
+ -- Eric Cooper <ecc@cmu.edu>  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 <ecc@cmu.edu>  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 <treinen@debian.org>  Sun, 03 Jun 2007 22:16:25 +0200
+
+ocaml-sha (1.4-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Eric Cooper <ecc@cmu.edu>  Sun, 22 Apr 2007 12:23:52 -0400
+
+ocaml-sha (1.3-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Eric Cooper <ecc@cmu.edu>  Sun,  3 Sep 2006 09:13:11 -0400
+
+ocaml-sha (1.2-1) unstable; urgency=low
+
+  * New upstream version (renamed)
+
+ -- Eric Cooper <ecc@cmu.edu>  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 <ecc@cmu.edu>  Sun,  6 Aug 2006 14:26:19 -0400
+
+ocaml-sha1 (0.9-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Eric Cooper <ecc@cmu.edu>  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 <ecc@cmu.edu>  Tue, 25 Jul 2006 14:21:30 -0400
+
+ocaml-sha1 (0.8-1) unstable; urgency=low
+
+  * Initial packaging
+  * Closes: #378938
+
+ -- Eric Cooper <ecc@cmu.edu>  Sun, 23 Jul 2006 14:30:00 -0400
--- ocaml-sha-1.4.orig/debian/compat
+++ ocaml-sha-1.4/debian/compat
@@ -0,0 +1 @@
+5
--- ocaml-sha-1.4.orig/debian/libsha-ocaml.install.in
+++ ocaml-sha-1.4/debian/libsha-ocaml.install.in
@@ -0,0 +1 @@
+dllsha_stubs.so		@OCamlStdlibDir@/stublibs
--- ocaml-sha-1.4.orig/debian/copyright
+++ ocaml-sha-1.4/debian/copyright
@@ -0,0 +1,24 @@
+SHA Cryptographic Hash Functions for OCaml
+
+Packaged for Debian by Eric Cooper <ecc@cmu.edu> on Wed, 19 Jul 2006
+
+Downloaded from http://tab.snarc.org/download/ocaml/
+
+Copyright (C) 2006 Vincent Hanquez <tab@snarc.org>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; version 2 only.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of
+the GNU General Public License, Version 2,
+can be found in /usr/share/common-licenses/GPL-2.
--- ocaml-sha-1.4.orig/debian/libsha-ocaml-dev.install.in
+++ ocaml-sha-1.4/debian/libsha-ocaml-dev.install.in
@@ -0,0 +1 @@
+{META,*.mli,*.cmi,*.cm*a,*.a}	@OCamlStdlibDir@/sha
