debian: Build libguestfs-ocaml and libguestfs-ocaml-dev subpackages.
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 31 Jul 2011 19:48:00 +0000 (20:48 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 31 Jul 2011 20:04:48 +0000 (21:04 +0100)
.gitignore
debian/.gitignore
debian/control
debian/libguestfs-ocaml-dev.examples [new file with mode: 0644]
debian/libguestfs-ocaml-dev.install.in [new file with mode: 0644]
debian/libguestfs-ocaml.install.in [new file with mode: 0644]
debian/rules

index 4777a4f..18b99b9 100644 (file)
@@ -205,6 +205,7 @@ Makefile
 Makefile.in
 missing
 *.o
 Makefile.in
 missing
 *.o
+ocamlinit-stamp
 ocaml/bindtests
 ocaml/bindtests.ml
 ocaml/dllmlguestfs.so
 ocaml/bindtests
 ocaml/bindtests.ml
 ocaml/dllmlguestfs.so
index f743648..57f612b 100644 (file)
@@ -3,10 +3,15 @@
 *.substvars
 changelog
 files
 *.substvars
 changelog
 files
+guestfsd/
 guestfish/
 guestmount/
 libguestfs-dev/
 libguestfs-doc/
 guestfish/
 guestmount/
 libguestfs-dev/
 libguestfs-doc/
+libguestfs-ocaml/
+libguestfs-ocaml.install
+libguestfs-ocaml-dev/
+libguestfs-ocaml-dev.install
 libguestfs-perl/
 libguestfs-tools/
 libguestfs0-dbg/
 libguestfs-perl/
 libguestfs-tools/
 libguestfs0-dbg/
index 2a19441..fc49041 100644 (file)
@@ -25,7 +25,9 @@ Build-Depends: debhelper (>= 7), dpkg-dev, devscripts, autotools-dev,
 # FUSE
   libfuse-dev, fuse-utils,
 # virt-resize
 # FUSE
   libfuse-dev, fuse-utils,
 # virt-resize
-  libpcre-ocaml-dev
+  libpcre-ocaml-dev,
+# Debian OCaml
+  dh-ocaml
 Homepage: http://libguestfs.org
 Standards-Version: 3.8.2
 
 Homepage: http://libguestfs.org
 Standards-Version: 3.8.2
 
@@ -243,3 +245,51 @@ Description: library for accessing and modifying guest disk images
  the guest. Also you can upload and download files and directories.
  .
  This package contains the Perl bindings.
  the guest. Also you can upload and download files and directories.
  .
  This package contains the Perl bindings.
+
+Package: libguestfs-ocaml
+Architecture: any
+Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of 
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the OCaml bindings (runtime).
+
+Package: libguestfs-ocaml-dev
+Architecture: any
+Depends: libguestfs-ocaml, libguestfs-dev, ocaml-findlib,
+ ${ocaml:Depends},
+ ${misc:Depends}
+Provides: ${ocaml:Provides}
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of 
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the OCaml bindings.
diff --git a/debian/libguestfs-ocaml-dev.examples b/debian/libguestfs-ocaml-dev.examples
new file mode 100644 (file)
index 0000000..56bc35e
--- /dev/null
@@ -0,0 +1 @@
+ocaml/examples/*.ml
diff --git a/debian/libguestfs-ocaml-dev.install.in b/debian/libguestfs-ocaml-dev.install.in
new file mode 100644 (file)
index 0000000..55ea385
--- /dev/null
@@ -0,0 +1,4 @@
+@OCamlStdlibDir@/guestfs/META
+@OCamlStdlibDir@/guestfs/*.a
+@OCamlStdlibDir@/guestfs/*.cm*
+@OCamlStdlibDir@/guestfs/*.ml*
diff --git a/debian/libguestfs-ocaml.install.in b/debian/libguestfs-ocaml.install.in
new file mode 100644 (file)
index 0000000..1d5ce78
--- /dev/null
@@ -0,0 +1 @@
+@OCamlDllDir@/*.so
index da6272e..01b8329 100755 (executable)
@@ -12,6 +12,7 @@ DEB_BUILD_OPTIONS=nocheck
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/ocaml.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS := \
        --with-java-home=no \
 
 DEB_CONFIGURE_EXTRA_FLAGS := \
        --with-java-home=no \
@@ -19,7 +20,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := \
        --disable-haskell \
        --disable-php \
        --with-readline \
        --disable-haskell \
        --disable-php \
        --with-readline \
-    --enable-install-daemon \
+       --enable-install-daemon \
        --with-python-installdir=/usr/share/pyshared
 
 DEB_DBG_PACKAGES = libguestfs0-dbg
        --with-python-installdir=/usr/share/pyshared
 
 DEB_DBG_PACKAGES = libguestfs0-dbg