From: Richard W.M. Jones Date: Sun, 31 Jul 2011 19:48:00 +0000 (+0100) Subject: debian: Build libguestfs-ocaml and libguestfs-ocaml-dev subpackages. X-Git-Tag: 1.12.6~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=e70e0ac825659dd4111404c1ea6e5165b319b460;p=libguestfs.git debian: Build libguestfs-ocaml and libguestfs-ocaml-dev subpackages. (cherry picked from commit 1d134301fc4d05338d09517abc978d0a90d82e09) --- diff --git a/.gitignore b/.gitignore index 2371687..a4500fc 100644 --- a/.gitignore +++ b/.gitignore @@ -206,6 +206,7 @@ Makefile Makefile.in missing *.o +ocamlinit-stamp ocaml/bindtests ocaml/bindtests.ml ocaml/dllmlguestfs.so diff --git a/debian/.gitignore b/debian/.gitignore index f743648..57f612b 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -3,10 +3,15 @@ *.substvars changelog files +guestfsd/ guestfish/ guestmount/ libguestfs-dev/ libguestfs-doc/ +libguestfs-ocaml/ +libguestfs-ocaml.install +libguestfs-ocaml-dev/ +libguestfs-ocaml-dev.install libguestfs-perl/ libguestfs-tools/ libguestfs0-dbg/ diff --git a/debian/control b/debian/control index 2a19441..fc49041 100644 --- a/debian/control +++ b/debian/control @@ -25,7 +25,9 @@ Build-Depends: debhelper (>= 7), dpkg-dev, devscripts, autotools-dev, # 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 @@ -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. + +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 index 0000000..56bc35e --- /dev/null +++ b/debian/libguestfs-ocaml-dev.examples @@ -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 index 0000000..55ea385 --- /dev/null +++ b/debian/libguestfs-ocaml-dev.install.in @@ -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 index 0000000..1d5ce78 --- /dev/null +++ b/debian/libguestfs-ocaml.install.in @@ -0,0 +1 @@ +@OCamlDllDir@/*.so diff --git a/debian/rules b/debian/rules index da6272e..01b8329 100755 --- a/debian/rules +++ b/debian/rules @@ -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/ocaml.mk DEB_CONFIGURE_EXTRA_FLAGS := \ --with-java-home=no \ @@ -19,7 +20,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := \ --disable-haskell \ --disable-php \ --with-readline \ - --enable-install-daemon \ + --enable-install-daemon \ --with-python-installdir=/usr/share/pyshared DEB_DBG_PACKAGES = libguestfs0-dbg