Package: libvirt-bin
Version: 0.5.1-2
Severity: wishlist
Tags: patch

Hi,

I think that it would be better to split virsh out from libvirt-bin to
its own packge. Reasoning being libvirtd works fine without local virsh
and that virsh has plenty of uses for remote administering of
hypervisors. On the admin machine you don't necessarily want or need
libvirtd binary at all. One could use virsh on a machine running an
architechture where virtualization is not even supported. In my
environment I only have one machine running virtual machines but several
machines that are used to administer the hypervisor remotely using virsh,
and I hate hate having libvirtd cruft installed on these machines.
                 
The attached patch creates virsh package. Depending your taste, you
might want to make libvirt-bin depend on virsh instead of just
recommending it. Technically, it doesn't require virsh to operate, and
thus it shouldn't depend on the package, but some users may encounter
loss of functionality if virsh suddenly disappears from their system
when upgrading libvirt-bin and not installing all the recommended
packages by default.

If accepted, also maybe libvirt-bin package should be renamed to
libvirtd, as currently libvirtd is the only binary left in the
package...

-- 
Tuomas Jormola <t...@solitudo.net>
Index: debian/control
===================================================================
--- debian/control	(revision 1605)
+++ debian/control	(working copy)
@@ -15,7 +15,7 @@
 Depends: ${shlibs:Depends}, adduser, libvirt0 (>= ${binary:Version}), logrotate
 Enhances: qemu, kvm, xen
 Section: admin
-Recommends: netcat-openbsd, bridge-utils, dnsmasq (>= 2.46-1), iptables, qemu (>= 0.9.1)
+Recommends: virsh, netcat-openbsd, bridge-utils, dnsmasq (>= 2.46-1), iptables, qemu (>= 0.9.1)
 Suggests: policykit
 Description: the programs for the libvirt library
  Libvirt is a C toolkit to interact with the virtualization capabilities
@@ -25,6 +25,20 @@
  .
  This package contains the supporting binaries to use with libvirt
 
+Package: virsh
+Architecture: any
+Depends: ${shlibs:Depends}
+Section: admin
+Conflicts: libvirt-bin (< 0.5.1-3)
+Description: text-based interface for hypervisors managed with libvirtd
+ Libvirt is a C 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 virsh utility which can be used to administer
+ local or remote hypervisors managed with libvirtd.
+
 Package: libvirt0
 Architecture: any
 Depends: ${shlibs:Depends}
Index: debian/virsh.manpages
===================================================================
--- debian/virsh.manpages	(revision 0)
+++ debian/virsh.manpages	(revision 0)
@@ -0,0 +1 @@
+virsh.1
Index: debian/libvirt-bin.install
===================================================================
--- debian/libvirt-bin.install	(revision 1605)
+++ debian/libvirt-bin.install	(working copy)
@@ -1,4 +1,3 @@
-usr/bin/*
 usr/sbin/*
 etc/libvirt/*
 etc/sasl2/*
Index: debian/virsh.install
===================================================================
--- debian/virsh.install	(revision 0)
+++ debian/virsh.install	(revision 0)
@@ -0,0 +1 @@
+usr/bin/virsh
Index: debian/libvirt-bin.manpages
===================================================================
--- debian/libvirt-bin.manpages	(revision 1605)
+++ debian/libvirt-bin.manpages	(working copy)
@@ -1 +0,0 @@
-virsh.1

Reply via email to