[Pkg-ocaml-maint-commits] r2957 - in /trunk/packages/ocaml-sha1: ./
build-area/ trunk/ trunk/debian/ trunk/debian/patches/ upstream/
ecc-guest at users.alioth.debian.org
ecc-guest at users.alioth.debian.org
Wed Jul 19 19:36:56 UTC 2006
Author: ecc-guest
Date: Wed Jul 19 19:36:48 2006
New Revision: 2957
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=2957
Log:
initial import
Added:
trunk/packages/ocaml-sha1/
trunk/packages/ocaml-sha1/build-area/
trunk/packages/ocaml-sha1/trunk/
trunk/packages/ocaml-sha1/trunk/debian/
trunk/packages/ocaml-sha1/trunk/debian/changelog
trunk/packages/ocaml-sha1/trunk/debian/compat
trunk/packages/ocaml-sha1/trunk/debian/control
trunk/packages/ocaml-sha1/trunk/debian/control.in
trunk/packages/ocaml-sha1/trunk/debian/copyright
trunk/packages/ocaml-sha1/trunk/debian/patches/
trunk/packages/ocaml-sha1/trunk/debian/patches/00list
trunk/packages/ocaml-sha1/trunk/debian/patches/META.dpatch
trunk/packages/ocaml-sha1/trunk/debian/patches/Makefile.dpatch
trunk/packages/ocaml-sha1/trunk/debian/patches/ml.dpatch
trunk/packages/ocaml-sha1/trunk/debian/rules (with props)
trunk/packages/ocaml-sha1/trunk/debian/svn-deblayout
trunk/packages/ocaml-sha1/upstream/
trunk/packages/ocaml-sha1/upstream/ocaml-sha1_0.4.orig.tar.gz (with props)
Added: trunk/packages/ocaml-sha1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/changelog?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/changelog (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/changelog Wed Jul 19 19:36:48 2006
@@ -1,0 +1,5 @@
+ocaml-sha1 (0.4-1) unstable; urgency=low
+
+ * Initial packaging.
+
+ -- Eric Cooper <ecc at cmu.edu> Wed, 19 Jul 2006 12:42:38 -0400
Added: trunk/packages/ocaml-sha1/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/compat?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/compat (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/compat Wed Jul 19 19:36:48 2006
@@ -1,0 +1,1 @@
+5
Added: trunk/packages/ocaml-sha1/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/control?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/control (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/control Wed Jul 19 19:36:48 2006
@@ -1,0 +1,14 @@
+Source: ocaml-sha1
+Section: devel
+Priority: optional
+Maintainer: Eric Cooper <ecc at cmu.edu>
+Build-Depends: debhelper, dpatch, ocaml-nox (>= 3.09.2), ocaml-tools, ocaml-findlib
+Standards-Version: 3.7.2
+
+Package: libsha1-ocaml-dev
+Architecture: any
+Section: libdevel
+Depends: ocaml-nox-${F:OCamlABI}
+Description: SHA1 binding for OCaml
+ SHA1 is a 160-bit cryptographic hash function.
+ This library provides an interface for OCaml programs to use SHA1 functions.
Added: trunk/packages/ocaml-sha1/trunk/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/control.in?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/control.in (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/control.in Wed Jul 19 19:36:48 2006
@@ -1,0 +1,14 @@
+Source: ocaml-sha1
+Section: devel
+Priority: optional
+Maintainer: Eric Cooper <ecc at cmu.edu>
+Build-Depends: debhelper, dpatch, ocaml-nox (>= @OCamlABI@), ocaml-tools, ocaml-findlib
+Standards-Version: 3.7.2
+
+Package: libsha1-ocaml-dev
+Architecture: any
+Section: libdevel
+Depends: ocaml-nox-${F:OCamlABI}
+Description: SHA1 binding for OCaml
+ SHA1 is a 160-bit cryptographic hash function.
+ This library provides an interface for OCaml programs to use SHA1 functions.
Added: trunk/packages/ocaml-sha1/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/copyright?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/copyright (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/copyright Wed Jul 19 19:36:48 2006
@@ -1,0 +1,26 @@
+SHA1 OCaml binding
+
+Packaged for Debian by
+ Eric Cooper <ecc at cmu.edu>
+ Wed, 19 Jul 2006
+
+Downloaded from http://tab.snarc.org/download/ocaml/ocaml_sha1-0.4.tar.bz2
+
+Copyright (C) 2006 Vincent Hanquez <tab at 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.
Added: trunk/packages/ocaml-sha1/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/patches/00list?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/patches/00list (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/patches/00list Wed Jul 19 19:36:48 2006
@@ -1,0 +1,3 @@
+Makefile.dpatch
+ml.dpatch
+META.dpatch
Added: trunk/packages/ocaml-sha1/trunk/debian/patches/META.dpatch
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/patches/META.dpatch?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/patches/META.dpatch (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/patches/META.dpatch Wed Jul 19 19:36:48 2006
@@ -1,0 +1,14 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## Makefile.dpatch by Eric Cooper <ecc at cmu.edu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: META patches
+
+ at DPATCH@
+diff -Nur ocaml-sha1-0.4-orig/META ocaml-sha1-0.4/META
+--- ocaml-sha1-0.4-orig/META 1969-12-31 19:00:00.000000000 -0500
++++ ocaml-sha1-0.4/META 2006-07-19 14:26:46.000000000 -0400
+@@ -0,0 +1,3 @@
++version="0.4"
++archive(byte)="sha1.cma"
++archive(native)="sha1.cmxa"
Added: trunk/packages/ocaml-sha1/trunk/debian/patches/Makefile.dpatch
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/patches/Makefile.dpatch?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/patches/Makefile.dpatch (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/patches/Makefile.dpatch Wed Jul 19 19:36:48 2006
@@ -1,0 +1,60 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## Makefile.dpatch by Eric Cooper <ecc at cmu.edu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Makefile patches
+
+ at DPATCH@
+diff -Nur ocaml-sha1-0.4-orig/Makefile ocaml-sha1-0.4/Makefile
+--- ocaml-sha1-0.4-orig/Makefile 2006-04-09 05:00:08.000000000 -0400
++++ ocaml-sha1-0.4/Makefile 2006-07-19 14:33:11.000000000 -0400
+@@ -1,41 +1,12 @@
+-CC = gcc
+-CFLAGS = -Wall
+-OCAMLC = ocamlc
+-OCAMLOPT = ocamlopt
++OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
++DESTDIR = $(shell ocamlc -where | sed s:/usr/lib/:/usr/local/lib/:)
++OCAMLFIND_INSTFLAGS = -destdir $(DESTDIR) -ldconf ignore
+
+-OCAML_TEST_INC = -I `ocamlfind query oUnit`
+-OCAML_TEST_LIB = `ocamlfind query oUnit`/oUnit.cmxa
++SOURCES=sha1.mli sha1.ml sha1_stubs.c
++RESULT=sha1
+
+-all: sha1.cma sha1.cmxa
++LIBINSTALL_FILES=$(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
+
+-sha1.cma: sha1_stubs.o sha1.cmo
+- $(OCAMLC) -a -o $@ -custom $+
++all: byte-code-library
+
+-sha1.cmxa: sha1_stubs.o sha1.cmx
+- $(OCAMLOPT) -a -o $@ $+
+-
+-tests: sha1.test
+- ./sha1.test
+-
+-sha1.test: sha1.cmxa sha1.test.cmx
+-
+-%.test:
+- $(OCAMLOPT) -o $@ $(OCAML_BFLAGS) unix.cmxa $(OCAML_TEST_INC) $(OCAML_TEST_LIB) $+
+-
+-%.test.cmo: %.test.ml
+- $(OCAMLC) -c -o $@ $(OCAML_BFLAGS) -custom $(OCAML_TEST_INC) $<
+-
+-%.test.cmx: %.test.ml
+- $(OCAMLOPT) -c -o $@ $(OCAML_BFLAGS) $(OCAML_TEST_INC) $<
+-
+-%.cmo: %.ml
+- $(OCAMLC) -c -o $@ $<
+-
+-%.cmx: %.ml
+- $(OCAMLOPT) -c -o $@ $<
+-
+-%.o: %.c
+- $(CC) $(CFLAGS) -c -o $@ $<
+-
+-clean:
+- rm -f *.o *.a *.cmo *.cmi *.cma *.cmx *.cmxa sha1.test
++include $(OCAMLMAKEFILE)
Added: trunk/packages/ocaml-sha1/trunk/debian/patches/ml.dpatch
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/patches/ml.dpatch?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/patches/ml.dpatch (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/patches/ml.dpatch Wed Jul 19 19:36:48 2006
@@ -1,0 +1,87 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## Makefile.dpatch by Eric Cooper <ecc at cmu.edu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: ML patches
+
+ at DPATCH@
+diff -Nur ocaml-sha1-0.4-orig/sha1.ml ocaml-sha1-0.4/sha1.ml
+--- ocaml-sha1-0.4-orig/sha1.ml 2006-04-09 09:51:44.000000000 -0400
++++ ocaml-sha1-0.4/sha1.ml 2006-07-19 15:07:15.000000000 -0400
+@@ -13,10 +13,37 @@
+ * SHA1 OCaml binding
+ *)
+
+-type sha1_ctx
+-type sha1_digest
++type context
++type t
+
+-external init: unit -> sha1_ctx = "stub_sha1_init"
+-external update: sha1_ctx -> string -> int -> unit = "stub_sha1_update"
+-external finalize: sha1_ctx -> sha1_digest = "stub_sha1_finalize"
+-external to_string: sha1_digest -> string = "stub_sha1_to_string"
++(* Low-level interface *)
++
++external init : unit -> context = "stub_sha1_init"
++external update : context -> string -> int -> unit = "stub_sha1_update"
++external finalize : context -> t = "stub_sha1_finalize"
++external to_string : t -> string = "stub_sha1_to_string"
++
++(* High-level interface *)
++
++let from_string s =
++ let ctx = init () in
++ update ctx s (String.length s);
++ finalize ctx
++
++let from_file f =
++ let ctx = init () in
++ let chan = open_in_bin f in
++ try
++ let len = 4096 in
++ let buf = String.create len in
++ let rec loop () =
++ match input chan buf 0 len with
++ | 0 -> ()
++ | n -> update ctx buf n
++ in
++ loop ();
++ close_in chan;
++ finalize ctx
++ with e ->
++ close_in chan;
++ raise e
+diff -Nur ocaml-sha1-0.4-orig/sha1.mli ocaml-sha1-0.4/sha1.mli
+--- ocaml-sha1-0.4-orig/sha1.mli 1969-12-31 19:00:00.000000000 -0500
++++ ocaml-sha1-0.4/sha1.mli 2006-07-19 13:18:36.000000000 -0400
+@@ -0,0 +1,29 @@
++(*
++ * Copyright (C) 2006 Vincent Hanquez <tab at 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.
++ *
++ * SHA1 OCaml binding
++ *)
++
++type context
++type t
++
++(* Low-level interface *)
++
++external init : unit -> context = "stub_sha1_init"
++external update : context -> string -> int -> unit = "stub_sha1_update"
++external finalize : context -> t = "stub_sha1_finalize"
++external to_string : t -> string = "stub_sha1_to_string"
++
++(* High-level interface *)
++
++val from_string : string -> t
++val from_file : string -> t
Added: trunk/packages/ocaml-sha1/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/rules?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/rules (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/rules Wed Jul 19 19:36:48 2006
@@ -1,0 +1,73 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpatch/dpatch.make
+
+OCAMLABI = $(shell ocamlc -version)
+
+debian/control:
+ sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $@.in > $@
+
+build: build-stamp
+build-stamp: patch-stamp
+ dh_testdir
+ $(MAKE) byte-code-library
+ if [ -x /usr/bin/ocamlopt ]; then $(MAKE) native-code-library; else true; fi
+ touch build-stamp
+
+clean: clean-patched unpatch
+
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp patch-stamp
+ -$(MAKE) clean
+ dh_clean
+
+DESTDIR = $(CURDIR)/debian/$(shell dh_listpackages)$(shell ocamlc -where)
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ mkdir -p $(DESTDIR)
+ $(MAKE) DESTDIR=$(DESTDIR) libinstall
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs README
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installcatalogs
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+# dh_undocumented
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: patch build clean binary-indep binary-arch binary install
+
+# -*- makefile-mode -*-
Propchange: trunk/packages/ocaml-sha1/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable =
Added: trunk/packages/ocaml-sha1/trunk/debian/svn-deblayout
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/trunk/debian/svn-deblayout?rev=2957&op=file
==============================================================================
--- trunk/packages/ocaml-sha1/trunk/debian/svn-deblayout (added)
+++ trunk/packages/ocaml-sha1/trunk/debian/svn-deblayout Wed Jul 19 19:36:48 2006
@@ -1,0 +1,2 @@
+origDir=../upstream
+origUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/upstream
Added: trunk/packages/ocaml-sha1/upstream/ocaml-sha1_0.4.orig.tar.gz
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-sha1/upstream/ocaml-sha1_0.4.orig.tar.gz?rev=2957&op=file
==============================================================================
Binary file - no diff available.
Propchange: trunk/packages/ocaml-sha1/upstream/ocaml-sha1_0.4.orig.tar.gz
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the Pkg-ocaml-maint-commits
mailing list