--- ocaml-libvirt-0.4.4.1.orig/debian/libvirt-ocaml.manpages +++ ocaml-libvirt-0.4.4.1/debian/libvirt-ocaml.manpages @@ -0,0 +1 @@ +debian/xml-man/en/mlvirsh.1 --- ocaml-libvirt-0.4.4.1.orig/debian/changelog +++ ocaml-libvirt-0.4.4.1/debian/changelog @@ -0,0 +1,26 @@ +ocaml-libvirt (0.4.4.1-3) unstable; urgency=low + + * Remove libvirt-bin build dependency which is useless + + -- Sylvain Le Gall Sat, 20 Sep 2008 11:05:52 +0200 + +ocaml-libvirt (0.4.4.1-2) unstable; urgency=low + + * Add dependency to libvirt-dev (Closes: #496333) + * Fix removal of manpage in clean target + + -- Sylvain Le Gall Sun, 24 Aug 2008 17:51:26 +0200 + +ocaml-libvirt (0.4.4.1-1) unstable; urgency=low + + [ Guido Guenther ] + * Initial release (Closes: #488229) + + [ Sylvain Le Gall ] + * Add manpage for mlvirsh + * Ship *.mo file + * Add a watch file + * Update debian/copyright to + http://wiki.debian.org/Proposals/CopyrightFormat + + -- Sylvain Le Gall Mon, 07 Jul 2008 14:54:44 +0200 --- ocaml-libvirt-0.4.4.1.orig/debian/docs +++ ocaml-libvirt-0.4.4.1/debian/docs @@ -0,0 +1,2 @@ +README +TODO.libvirt --- ocaml-libvirt-0.4.4.1.orig/debian/rules +++ ocaml-libvirt-0.4.4.1/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules for ocaml-libvirt package +# Copyright (C) 2008 Guido Günther +# Copyright (C) 2008 Sylvain Le Gall +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/class/ocaml.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include $(CURDIR)/debian/mk/docbook-manpage.mk + +DESTDIR_DEV=$(CURDIR)/debian/libvirt-ocaml-dev +DESTDIR=$(CURDIR)/debian/libvirt-ocaml + +DEB_MAKE_CLEAN_TARGET := clean +DEB_MAKE_BUILD_TARGET := all +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) +DEB_MAKE_BUILD_TARGET += opt +DEB_MAKE_INSTALL_TARGET := install-opt +else +DEB_MAKE_INSTALL_TARGET := install-byte +endif +DEB_MAKE_INSTALL_TARGET += OCAMLDESTDIR="$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)" DESTDIR="$(DESTDIR_DEV)" + +OCAML_OCAMLDOC_PACKAGES = libvirt-ocaml-dev + +PO4A_SOURCES := $(CURDIR)/debian/xml-man/po4a/po4a.cfg + +DOCBOOK_MANPAGE_SOURCES := $(CURDIR)/debian/xml-man/en/mlvirsh.xml + +DOCBOOK_MANPAGE_EXTRA_SOURCES := $(CURDIR)/debian/xml-man/en/license.xml \ + $(CURDIR)/debian/xml-man/en/refentryinfo.xml + +build/libvirt-ocaml:: + $(MAKE) -C '$(CURDIR)/po' all + +install/libvirt-ocaml:: + $(MAKE) -C '$(CURDIR)/po' install PODIR=$(DESTDIR)/usr/share/locale + +clean:: + if test -e $(CURDIR)/po/Makefile; then $(MAKE) -C '$(CURDIR)/po' clean; fi + -$(RM) '$(CURDIR)/META' + -$(RM) '$(CURDIR)/Make.rules' + -$(RM) '$(CURDIR)/Makefile' + -$(RM) '$(CURDIR)/config.h' + -$(RM) '$(CURDIR)/config.log' + -$(RM) '$(CURDIR)/config.status' + -$(RM) '$(CURDIR)/examples/Makefile' + -$(RM) '$(CURDIR)/libvirt/Makefile' + -$(RM) '$(CURDIR)/libvirt/libvirt_version.ml' + -$(RM) '$(CURDIR)/mlvirsh/Makefile' + -$(RM) '$(CURDIR)/mlvirsh/mlvirsh_gettext.ml' + -$(RM) '$(CURDIR)/po/Makefile' + -$(RM) '$(CURDIR)/debian/libvirt-ocaml-dev.dirs' + -$(RM) '$(CURDIR)/debian/libvirt-ocaml.dirs' + -$(RM) '$(CURDIR)/debian/xml-man/en/mlvirsh.1' + +install/libvirt-ocaml-dev:: + mv $(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/libvirt/*.so $(DESTDIR)/$(OCAML_DLL_DIR)/ + if [ -r $(DESTDIR_DEV)/usr/bin/mlvirsh ]; then \ + mv $(DESTDIR_DEV)/usr/bin/mlvirsh $(DESTDIR)/usr/bin/; \ + rmdir $(DESTDIR_DEV)/usr/bin; \ + fi + +redo-patches:: + rm -f debian/patches/* + git format-patch -N -o debian/patches master...patch-queue | \ + sed -e 's%debian/patches/%%' > debian/patches/series + --- ocaml-libvirt-0.4.4.1.orig/debian/copyright +++ ocaml-libvirt-0.4.4.1/debian/copyright @@ -0,0 +1,49 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Packaged-By: Guido Guenther +Packaged-Date: Thu, 26 Jun 2008 09:42:18 +0200 +Upstream-author: Richard W.M. Jones +Original-Source-Location: http://libvirt.org/sources/ocaml/ + +Files: * +Copyright: © 2007 Richard W.M. Jones, Red Hat Inc. +License: LGPL-2.1+ + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +Files: libvirt/* +Copyright: © 2007 Richard W.M. Jones, Red Hat Inc. +License: LGPL-2.1+ | other + +As a special exception to the GNU Library General Public License, you +may link, statically or dynamically, a "work that uses the Library" +with a publicly distributed version of the Library to produce an +executable file containing portions of the Library, and distribute +that executable file under terms of your choice, without any of the +additional requirements listed in clause 6 of the GNU Library General +Public License. By "a publicly distributed version of the Library", +we mean either the unmodified Library as distributed by Red Hat, or a +modified version of the Library that is distributed under the +conditions defined in clause 2 of the GNU Library General Public +License. This exception does not however invalidate any other reasons +why the executable file might be covered by the GNU Library General +Public License. + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +Files: mlvirsh/* +Copyright: © 2007 Richard W.M. Jones, Red Hat Inc. +License: GPL-2+ + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +Files: debian/* +Copyright: © 2008 Guido Guenther + © 2008 Sylvain Le Gall +License: GPL + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- ocaml-libvirt-0.4.4.1.orig/debian/control +++ ocaml-libvirt-0.4.4.1/debian/control @@ -0,0 +1,38 @@ +Source: ocaml-libvirt +Section: libdevel +Priority: extra +Maintainer: Debian Libvirt Maintainers +Uploaders: Guido Guenther , Sylvain Le Gall +Build-Depends: cdbs, debhelper (>= 6), autotools-dev, ocaml-nox, + ocaml-findlib, quilt, libvirt-dev, docbook-xml (>= 4.4), docbook-xsl, + libxml2-utils, xsltproc, po4a +Standards-Version: 3.8.0 +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-libvirt.git +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml-libvirt.git +Homepage: http://libvirt.org/ocaml/ + +Package: libvirt-ocaml +Architecture: any +Depends: ocaml-base-nox-${F:OCamlABI}, ${shlibs:Depends}, ${misc:Depends} +Description: OCaml bindings for libvirt + This library provides OCaml bindings for using libvirt. + . + Libvirt is a toolkit to interact with the virtualization capabilities + of recent versions of Linux (and other OSes). The library aims at providing + a long term stable C API for different virtualization mechanisms. It currently + supports QEMU, KVM, and XEN. + . + This package contains the shared library + +Package: libvirt-ocaml-dev +Architecture: any +Depends: ocaml-nox-${F:OCamlABI}, libvirt-ocaml (= ${binary:Version}), libvirt-dev +Description: OCaml bindings for libvirt + This library provides OCaml bindings for using libvirt. + . + Libvirt is a toolkit to interact with the virtualization capabilities + of recent versions of Linux (and other OSes). The library aims at providing + a long term stable C API for different virtualization mechanisms. It currently + supports QEMU, KVM, and XEN. + . + This package contains the shared library --- ocaml-libvirt-0.4.4.1.orig/debian/libvirt-ocaml.dirs.in +++ ocaml-libvirt-0.4.4.1/debian/libvirt-ocaml.dirs.in @@ -0,0 +1,2 @@ +@OCamlDllDir@ +/usr/bin --- ocaml-libvirt-0.4.4.1.orig/debian/watch +++ ocaml-libvirt-0.4.4.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://libvirt.org/sources/ocaml/ocaml-libvirt-([0-9\.]*)\.tar\.gz --- ocaml-libvirt-0.4.4.1.orig/debian/README.source +++ ocaml-libvirt-0.4.4.1/debian/README.source @@ -0,0 +1,5 @@ +This package use quilt for patching the source. + +Please consider reading quilt manpage to patch the source. + + -- Sylvain Le Gall Sat, 28 Jun 2008 16:54:35 +0200 --- ocaml-libvirt-0.4.4.1.orig/debian/libvirt-ocaml-dev.dirs.in +++ ocaml-libvirt-0.4.4.1/debian/libvirt-ocaml-dev.dirs.in @@ -0,0 +1 @@ +@OCamlStdlibDir@ --- ocaml-libvirt-0.4.4.1.orig/debian/compat +++ ocaml-libvirt-0.4.4.1/debian/compat @@ -0,0 +1 @@ +6 --- ocaml-libvirt-0.4.4.1.orig/debian/xml-man/en/license.xml +++ ocaml-libvirt-0.4.4.1/debian/xml-man/en/license.xml @@ -0,0 +1,48 @@ + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + LICENSE + + + This manual page was written by + + Sylvain + Le Gall + + gildor@debian.org + for the &debian; system (but may be used by others). + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Lesser General Public + License, Version 2.1 or any later version published by the Free + Software Foundation; considering as source code all the file that + enable the production of this manpage. + + --- ocaml-libvirt-0.4.4.1.orig/debian/xml-man/en/mlvirsh.xml +++ ocaml-libvirt-0.4.4.1/debian/xml-man/en/mlvirsh.xml @@ -0,0 +1,369 @@ + + + mlvirsh"> +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MLVIRSH + 1 + + + + mlvirsh + + management user interface for virsh guest domain. + + + + + &dhprg; + -c URI + -r + + -help + --help + + command + + + + + DESCRIPTION + + This manual page documents briefly the &dhprg; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhprg; is an almost complete reimplementation of + virsh, which is mostly command compatible (there are a + very few commands missing, and some commands have a slightly different + syntax, but broadly speaking they are equivalent programs except that one + is written in C and the other in OCaml) + + + + + + Hypervisor connection URI. + + + + + + Read-only connection. + + + + + + Virsh command. + + + + + + + Display an help message. + + + + + + + + COMMANDS + + There is an extensive list of possible virsh commands. You can get a + list of it by using the special command without + arguments. Using the same command with another command as argument will + give you the help for the command. + + + + + Attach device to domain. + + + Set whether a domain autostarts at boot. + + + + Returns capabilities of hypervisor/driver. + + + + Close an existing hypervisor connection. + + + + Open a new hypervisor connection. + + + + Create a domain from an XML file. + + + + Define (but don't start) a domain from an XML file. + + + + Detach device from domain. + + + + Destroy a domain. + + + + Peek into a block device of a domain. + + + + Display the block device statistics for a domain. + + + + Print the ID of a domain. + + + + Display the network interface statistics for a domain. + + + + Print the domain info. + + + + Print the max memory (in kilobytes) of a domain. + + + + Print the max VCPUs of a domain. + + + + Peek into memory of a device. + + + + Print the name of a domain. + + + + Print the OS type of a domain. + + + + Print the domain state. + + + + Print the UUID of a domain. + + + + Core dump a domain to a file for analysis. + + + + Print the XML description of a domain. + + + + Display free memory for machine, NUMA cell or range of cells + + + + Print whether a domain autostarts at boot. + + + + Print the hostname. + + + + List the running domains. + + + + List the defined but not running domains. + + + + Quit the interactive terminal. + + + + Print the max VCPUs available. + + + + Set whether a network autostarts at boot. + + + + Print the bridge name of a network. + + + + Create a network from an XML file. + + + + Define (but don't start) a network from an XML file. + + + + Destroy a network. + + + + Print the XML description of a network. + + + + Print whether a network autostarts at boot. + + + + List the active networks. + + + + List the defined but inactive networks. + + + + Print the name of a network. + + + + Start a previously defined inactive network. + + + + Undefine an inactive network. + + + + Print the UUID of a network. + + + + Print node information. + + + + Reboot a domain. + + + + Restore a domain from the named file. + + + + Resume a domain. + + + + Save a domain to a file. + + + + Get the current scheduler parameters for a domain. + + + + Set the scheduler parameters for a domain. + + + + Get the scheduler type. + + + + Set the memory used by the domain (in kilobytes). + + + + Set the maximum memory used by the domain (in kilobytes). + + + + Gracefully shutdown a domain. + + + + Start a previously defined inactive domain. + + + + Suspend a domain. + + + + Print the driver name + + + + Undefine an inactive domain. + + + + Print the canonical URI. + + + + Pin domain VCPU to a list of physical CPUs. + + + + Pin domain VCPU to a list of physical CPUs. + + + + Set the number of virtual CPUs assigned to a domain. + + + + Print the driver version + + + + + + + --- ocaml-libvirt-0.4.4.1.orig/debian/xml-man/en/refentryinfo.xml +++ ocaml-libvirt-0.4.4.1/debian/xml-man/en/refentryinfo.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sylvain + Le Gall + gildor@debian.org + + + 2008 + Sylvain Le Gall + + June 28, 2008 + --- ocaml-libvirt-0.4.4.1.orig/debian/xml-man/po4a/po4a.cfg +++ ocaml-libvirt-0.4.4.1/debian/xml-man/po4a/po4a.cfg @@ -0,0 +1,8 @@ +[po4a_paths] debian/xml-man/po4a/po/ocaml-libvirt-man.pot + +[type: docbook] debian/xml-man/en/mlvirsh.xml + +[type: docbook] debian/xml-man/en/license.xml + +[type: docbook] debian/xml-man/en/refentryinfo.xml + --- ocaml-libvirt-0.4.4.1.orig/debian/xml-man/po4a/po/ocaml-libvirt-man.pot +++ ocaml-libvirt-0.4.4.1/debian/xml-man/po4a/po/ocaml-libvirt-man.pot @@ -0,0 +1,802 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2008-08-24 17:54+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: ENCODING" + +# type: Content of the debian entity +#: debian/xml-man/en/mlvirsh.xml:4 debian/xml-man/en/license.xml:4 +msgid "Debian GNU/Linux" +msgstr "" + +# type: Content of the dhprg entity +#: debian/xml-man/en/mlvirsh.xml:5 +msgid "mlvirsh" +msgstr "" + +# type: Content of: +#: debian/xml-man/en/mlvirsh.xml:42 +msgid "mlvirsh" +msgstr "" + +# type: Content of: +#: debian/xml-man/en/mlvirsh.xml:44 +msgid "management user interface for virsh guest domain." +msgstr "" + +# type: Content of: +#: debian/xml-man/en/mlvirsh.xml:49 +msgid "" +"&dhprg; -c URI -r " +"-help --help " +"command" +msgstr "" + +# type: Content of: +#: debian/xml-man/en/mlvirsh.xml:61 +msgid "DESCRIPTION" +msgstr "" + +# type: Content of: <refentry><refsect1><para> +#: debian/xml-man/en/mlvirsh.xml:63 +msgid "This manual page documents briefly the &dhprg; command." +msgstr "" + +# type: Content of: <refentry><refsect1><para> +#: debian/xml-man/en/mlvirsh.xml:65 +msgid "" +"This manual page was written for the &debian; distribution because the " +"original program does not have a manual page." +msgstr "" + +# type: Content of: <refentry><refsect1><para> +#: debian/xml-man/en/mlvirsh.xml:68 +msgid "" +"&dhprg; is an almost complete reimplementation of <command>virsh</command>, " +"which is mostly command compatible (there are a very few commands missing, " +"and some commands have a slightly different syntax, but broadly speaking " +"they are equivalent programs except that one is written in C and the other " +"in OCaml)" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:76 +msgid "-c <replaceable>URI</replaceable>" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:78 +msgid "Hypervisor connection URI." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:82 +msgid "-r" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:84 +msgid "Read-only connection." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:88 +msgid "<replaceable>command</replaceable>" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:90 +msgid "Virsh command." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:94 +msgid "-help" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:95 +msgid "--help" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:97 +msgid "Display an help message." +msgstr "" + +# type: Content of: <refentry><refsect1><title> +#: debian/xml-man/en/mlvirsh.xml:105 +msgid "COMMANDS" +msgstr "" + +# type: Content of: <refentry><refsect1><para> +#: debian/xml-man/en/mlvirsh.xml:107 +msgid "" +"There is an extensive list of possible virsh commands. You can get a list of " +"it by using the special command" +msgstr "" + +# type: Content of: <refentry><refsect1><para><option> +#: debian/xml-man/en/mlvirsh.xml:108 +msgid "help" +msgstr "" + +# type: Content of: <refentry><refsect1><para> +#: debian/xml-man/en/mlvirsh.xml:108 +msgid "" +"without arguments. Using the same command with another command as argument " +"will give you the help for the command." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:114 +msgid "attach-device" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:115 +msgid "Attach device to domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:117 +msgid "autostart" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:118 +msgid "Set whether a domain autostarts at boot." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:121 +msgid "capabilities" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:122 +msgid "Returns capabilities of hypervisor/driver." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:125 +msgid "close" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:126 +msgid "Close an existing hypervisor connection." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:129 +msgid "connect" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:130 +msgid "Open a new hypervisor connection." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:133 +msgid "create" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:134 +msgid "Create a domain from an XML file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:137 +msgid "define" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:138 +msgid "Define (but don't start) a domain from an XML file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:141 +msgid "detach-device" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:142 +msgid "Detach device from domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:145 +msgid "destroy" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:146 +msgid "Destroy a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:149 +msgid "domblkpeek" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:150 +msgid "Peek into a block device of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:153 +msgid "domblkstat" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:154 +msgid "Display the block device statistics for a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:157 +msgid "domid" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:158 +msgid "Print the ID of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:161 +msgid "domifstat" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:162 +msgid "Display the network interface statistics for a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:165 +msgid "dominfo" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:166 +msgid "Print the domain info." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:169 +msgid "dommaxmem" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:170 +msgid "Print the max memory (in kilobytes) of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:173 +msgid "dommaxvcpus" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:174 +msgid "Print the max VCPUs of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:177 +msgid "dommempeek" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:178 +msgid "Peek into memory of a device." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:181 +msgid "domname" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:182 +msgid "Print the name of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:185 +msgid "domostype" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:186 +msgid "Print the OS type of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:189 +msgid "domstate" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:190 +msgid "Print the domain state." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:193 +msgid "domuuid" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:194 +msgid "Print the UUID of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:197 +msgid "dump" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:198 +msgid "Core dump a domain to a file for analysis." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:201 +msgid "dumpxml" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:202 +msgid "Print the XML description of a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:205 +msgid "freecell" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:206 +msgid "Display free memory for machine, NUMA cell or range of cells" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:209 +msgid "get-autostart" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:210 +msgid "Print whether a domain autostarts at boot." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:213 +msgid "hostname" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:214 +msgid "Print the hostname." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:217 +msgid "list" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:218 +msgid "List the running domains." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:221 +msgid "list-defined" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:222 +msgid "List the defined but not running domains." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:225 +msgid "quit" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:226 +msgid "Quit the interactive terminal." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:229 +msgid "maxvcpus" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:230 +msgid "Print the max VCPUs available." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:233 +msgid "net-autostart" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:234 +msgid "Set whether a network autostarts at boot." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:237 +msgid "net-bridgename" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:238 +msgid "Print the bridge name of a network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:241 +msgid "net-create" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:242 +msgid "Create a network from an XML file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:245 +msgid "net-define" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:246 +msgid "Define (but don't start) a network from an XML file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:249 +msgid "net-destroy" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:250 +msgid "Destroy a network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:253 +msgid "net-dumpxml" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:254 +msgid "Print the XML description of a network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:257 +msgid "net-get-autostart" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:258 +msgid "Print whether a network autostarts at boot." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:261 +msgid "net-list" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:262 +msgid "List the active networks." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:265 +msgid "net-list-defined" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:266 +msgid "List the defined but inactive networks." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:269 +msgid "net-name" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:270 +msgid "Print the name of a network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:273 +msgid "net-start" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:274 +msgid "Start a previously defined inactive network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:277 +msgid "net-undefine" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:278 +msgid "Undefine an inactive network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:281 +msgid "net-uuid" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:282 +msgid "Print the UUID of a network." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:285 +msgid "nodeinfo" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:286 +msgid "Print node information." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:289 +msgid "reboot" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:290 +msgid "Reboot a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:293 +msgid "restore" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:294 +msgid "Restore a domain from the named file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:297 +msgid "resume" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:298 +msgid "Resume a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:301 +msgid "save" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:302 +msgid "Save a domain to a file." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:305 +msgid "schedparams" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:306 +msgid "Get the current scheduler parameters for a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:309 +msgid "schedparamset" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:310 +msgid "Set the scheduler parameters for a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:313 +msgid "schedtype" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:314 +msgid "Get the scheduler type." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:317 +msgid "setmem" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:318 +msgid "Set the memory used by the domain (in kilobytes)." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:321 +msgid "setmaxmem" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:322 +msgid "Set the maximum memory used by the domain (in kilobytes)." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:325 +msgid "shutdown" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:326 +msgid "Gracefully shutdown a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:329 +msgid "start" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:330 +msgid "Start a previously defined inactive domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:333 +msgid "suspend" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:334 +msgid "Suspend a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:337 +msgid "type" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:338 +msgid "Print the driver name" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:341 +msgid "undefine" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:342 +msgid "Undefine an inactive domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:345 +msgid "uri" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:346 +msgid "Print the canonical URI." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:349 +msgid "vcpuinfo" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:350 debian/xml-man/en/mlvirsh.xml:354 +msgid "Pin domain VCPU to a list of physical CPUs." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:353 +msgid "vcpupin" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:357 +msgid "vcpus" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:358 +msgid "Set the number of virtual CPUs assigned to a domain." +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option> +#: debian/xml-man/en/mlvirsh.xml:361 +msgid "version" +msgstr "" + +# type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para> +#: debian/xml-man/en/mlvirsh.xml:362 +msgid "Print the driver version" +msgstr "" + +# type: Content of: <refsect1><title> +#: debian/xml-man/en/license.xml:32 +msgid "LICENSE" +msgstr "" + +# type: Content of: <refsect1><para> +#: debian/xml-man/en/license.xml:35 +msgid "" +"This manual page was written by <personname> <firstname>Sylvain</firstname> " +"<surname>Le Gall</surname> </personname> <email>gildor@debian.org</email> " +"for the &debian; system (but may be used by others). Permission is granted " +"to copy, distribute and/or modify this document under the terms of the" +msgstr "" + +# type: Content of: <refsect1><para><acronym> +#: debian/xml-man/en/license.xml:43 +msgid "GNU" +msgstr "" + +# type: Content of: <refsect1><para> +#: debian/xml-man/en/license.xml:43 +msgid "" +"Lesser General Public License, Version 2.1 or any later version published by " +"the Free Software Foundation; considering as source code all the file that " +"enable the production of this manpage." +msgstr "" + +# type: Content of: <refentryinfo><copyright><holder> +#: debian/xml-man/en/refentryinfo.xml:38 +msgid "Sylvain Le Gall" +msgstr "" + +# type: Content of: <refentryinfo><date> +#: debian/xml-man/en/refentryinfo.xml:40 +msgid "June 28, 2008" +msgstr "" --- ocaml-libvirt-0.4.4.1.orig/debian/mk/docbook-manpage.mk +++ ocaml-libvirt-0.4.4.1/debian/mk/docbook-manpage.mk @@ -0,0 +1,126 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2006 Sylvain Le Gall <gildor#debian.org> +# Description: Rules to manage manpages written in XML. +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_docbookxml +_cdbs_rules_docbook_manpage = 1 + +# needed by debian/control:: rule below +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +# needed for po4a-stamp +# TODO: if released in CDBS, change above +include $(CURDIR)/debian/mk/po4a.mk$(_cdbs_makefile_suffix) + +# docbook manpages to build +DOCBOOK_MANPAGE_SOURCES := + +# extra docbook sources to look for (docbook extract to be included in +# other docbook manpage) +DOCBOOK_MANPAGE_EXTRA_SOURCES := + +# version of docbook sources to use (must follow the scheme " (>= version)") +DOCBOOK_MANPAGE_VERSION := + +# add required build dependency for used tools +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), docbook-xml@docbook_version@, docbook-xsl, libxml2-utils, xsltproc + +# xmllint program to use +DOCBOOK_MANPAGE_XMLLINT := xmllint + +# flags for xmllint +DOCBOOK_MANPAGE_XMLLINT_FLAGS := --nonet --noout --postvalid --xinclude + +# xsltproc program to use +DOCBOOK_MANPAGE_XSLTPROC := xsltproc + +# flags for xsltproc +DOCBOOK_MANPAGE_XSLTPROC_FLAGS := --nonet --xinclude --param man.charmap.use.subset 0 + +# XSL stylesheet to transform docbook to manpage +DOCBOOK_MANPAGE_XSLTPROC_XSL := /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl + +# file containing the list of generated files +DOCBOOK_MANPAGE_LIST := $(CURDIR)/debian/docbook-manpage-list + +# compute higher docbook version, if required (no version provided and sources defined) +# and replace it in generated control file. +ifneq ($(DEB_AUTO_UPDATE_DEBIAN_CONTROL),) +debian/control:: + if test -f $(CURDIR)/debian/control && test -f $(CURDIR)/debian/control.in; then \ + DOCBOOK_MANPAGE_VERSION=$(strip $(DOCBOOK_MANPAGE_VERSION)); \ + if test "x$$DOCBOOK_MANPAGE_VERSION" == "x" && \ + test "x$(strip $(DOCBOOK_MANPAGE_SOURCES))" != "x"; then \ + DOCBOOK_ALL_SOURCES="$(DOCBOOK_MANPAGE_SOURCES) $(DOCBOOK_MANPAGE_EXTRA_SOURCES)"; \ + DOCBOOK_MANPAGE_VERSION=`grep -s -e "-//OASIS//DTD DocBook XML V[0-9\.]*//EN" $$DOCBOOK_ALL_SOURCES | \ + sed "s,.*-//OASIS//DTD DocBook XML V\\([0-9\.]*\\)//EN.*,\\1," | \ + sort -r | head -n 1`; \ + if test "x$$DOCBOOK_MANPAGE_VERSION" != "x"; then \ + DOCBOOK_MANPAGE_VERSION=" (>= $$DOCBOOK_MANPAGE_VERSION)"; \ + fi; \ + fi; \ + sed -i "s,@docbook_version@,$$DOCBOOK_MANPAGE_VERSION," $(CURDIR)/debian/control; \ + fi +endif + +# check docbook sources for any problem +%.docbook-manpage-check:: % + $(DOCBOOK_MANPAGE_XMLLINT) $(DOCBOOK_MANPAGE_XMLLINT_FLAGS) $< + echo $@ >> $(DOCBOOK_MANPAGE_LIST) + touch $@ + +# build manpage +%.docbook-manpage-build:: % $(DOCBOOK_MANPAGE_XSLTPROC_XSL) + $(DOCBOOK_MANPAGE_XSLTPROC) \ + $(DOCBOOK_MANPAGE_XSLTPROC_FLAGS) \ + -o $(dir $<) \ + $(DOCBOOK_MANPAGE_XSLTPROC_XSL) \ + $< + echo $@ >> $(DOCBOOK_MANPAGE_LIST) + touch $@ + + +# check all docbook sources and build manpage. +# TODO: find a better solution than recursive call to debian/rules +docbook-manpage: docbook-manpage-stamp +docbook-manpage-stamp:: po4a-stamp + if test "x$(strip $(DOCBOOK_MANPAGE_SOURCES))" != "x" && \ + test "x$(strip $(DOCBOOK_MANPAGE_EXTRA_SOURCES))" != "x"; then \ + $(CURDIR)/debian/rules \ + $(addsuffix .docbook-manpage-check,\ + $(DOCBOOK_MANPAGE_SOURCES) \ + $(DOCBOOK_MANPAGE_EXTRA_SOURCES)) \ + $(addsuffix .docbook-manpage-build, \ + $(DOCBOOK_MANPAGE_SOURCES)); \ + fi + touch $@ + +build: docbook-manpage + +clean:: + -if test -f $(DOCBOOK_MANPAGE_LIST); then \ + $(RM) `cat $(DOCBOOK_MANPAGE_LIST)`; \ + $(RM) $(DOCBOOK_MANPAGE_LIST); \ + fi + -$(RM) docbook-manpage-stamp + +endif --- ocaml-libvirt-0.4.4.1.orig/debian/mk/po4a.mk +++ ocaml-libvirt-0.4.4.1/debian/mk/po4a.mk @@ -0,0 +1,80 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2006 Sylvain Le Gall <gildor#debian.org> +# Description: Rules to manage translation made through po4a. +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_po4a +_cdbs_rules_po4a = 1 + +# needed by debian/control:: rule below +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +# po4a files +PO4A_SOURCES := + +# po4a program to use +PO4A := po4a + +# flags for po4a in clean target +PO4A_CLEAN_FLAGS := --no-translations --rm-backups + +# flags for po4a in build target +PO4A_BUILD_FLAGS:= --rm-backups + +# file containing the list of generated files +PO4A_LIST := $(CURDIR)/debian/po4a-list + +# add required build dependency for used tools +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), po4a + +# generate the translations (rules follow recommendation of po4a author) +%.po4a-build:: % + $(PO4A) $(PO4A_BUILD_FLAGS) $< + echo $@ >> $(PO4A_LIST) + touch $@ + +# call po4a when it is required +# TODO: find a better solution than recursive call to debian/rules +po4a: po4a-stamp +po4a-stamp:: + if test "x$(strip $(PO4A_SOURCES))" != "x"; then \ + $(CURDIR)/debian/rules \ + $(addsuffix .po4a-build,\ + $(PO4A_SOURCES)); \ + fi + touch $@ + +build: po4a + +# update the POT and PO (rules follow recommendation of po4a author) +clean:: + if test -f $(PO4A_LIST); then \ + for i in `grep ".po4a-build" $(PO4A_LIST)`; do \ + $(PO4A) $(PO4A_CLEAN_FLAGS) $${i%%.po4a-build}; \ + done; \ + fi + -if test -f $(PO4A_LIST); then \ + $(RM) `cat $(PO4A_LIST)`; \ + $(RM) $(PO4A_LIST); \ + fi + -$(RM) po4a-stamp + +endif