File add_suse_capabilities.patch of Package virt-v2v

The following modifications are required to adds conversion capabilities to
the virt-v2v.db for SLES and openSUSE through:

  - Adding virtio capabilities for SLES10/11 and openSUSE 10/11/12.
  - Designating the rpm containing the cirrus video driver in SLES/openSUSE

This patch also adds the following SUSE examples to /etc/virt-v2v.conf:

  - A 'user-install' example for SLES 11.
  - Sample network conversion using SUSE naming defaults (br0 -> default).

---
 virt-v2v.conf |    8 ++++++++
 virt-v2v.db   |   33 +++++++++++++++++++++------------
 2 files changed, 29 insertions(+), 12 deletions(-)

diff -Nurp a/v2v/virt-v2v.conf b/v2v/virt-v2v.conf
--- a/v2v/virt-v2v.conf	2013-09-14 13:00:17.148819499 -0600
+++ b/v2v/virt-v2v.conf	2013-09-14 13:00:41.118810452 -0600
@@ -40,12 +40,20 @@ configuration data in /var/lib/virt-v2v/
   <capability os='linux' distro='rhel' major='6' name='user-install'>
     <dep name='mypackage'/>
   </capability>
+
+  <capability os='linux' distro='sles' major='11' name='user-install'>
+    <dep name='mypackage'/>
+  </capability>
   -->
 
   <!-- Networks -->
   <!-- Mappings for the defaults in Xen, ESX and libvirt/KVM
        to the default in libvirt/KVM -->
   <!--
+  <network type='bridge' name='br0'>
+    <network type='network' name='default'/>
+  </network>
+
   <network type='bridge' name='xenbr1'>
     <network type='network' name='default'/>
   </network>
diff -Nurp a/v2v/virt-v2v.db b/v2v/virt-v2v.db
--- a/v2v/virt-v2v.db	2013-09-14 13:00:25.755817235 -0600
+++ b/v2v/virt-v2v.db	2013-09-14 13:00:32.478814644 -0600
@@ -11,39 +11,54 @@ the modifications or additions to /etc/v
   <!-- Capabilities -->
   <!-- RHEL 6 has always supported virtio -->
   <capability os='linux' distro='rhel' major='6' name='virtio'/>
-
   <capability os='linux' distro='rhel' major='5' name='virtio'>
     <dep name='kernel' minversion='2.6.18-128.el5'/>
     <dep name='lvm2' minversion='2.02.40-6.el5'/>
     <dep name='selinux-policy-targeted' minversion='2.4.6-203.el5'
          ifinstalled='yes'/>
   </capability>
-
   <capability os='linux' distro='rhel' major='4' name='virtio'>
     <dep name='kernel' minversion='2.6.9-89.EL'/>
   </capability>
-
   <!-- RHEL 5+ packages the cirrus driver in xorg-x11-drv-cirrus -->
   <capability os='linux' distro='rhel' major='6' name='cirrus'>
     <dep name='xorg-x11-drv-cirrus'/>
   </capability>
-
   <capability os='linux' distro='rhel' major='5' name='cirrus'>
     <dep name='xorg-x11-drv-cirrus'/>
   </capability>
-
   <!-- RHEL 4 bundles the cirrus driver with the main X package -->
   <capability os='linux' distro='rhel' major='4' name='cirrus'/>
 
   <!-- All current versions of Fedora support VirtIO -->
   <capability os='linux' distro='fedora' name='virtio'/>
-
   <!-- All current versions of fedora package the cirrus driver in
        xorg-x11-drv-cirrus -->
   <capability os='linux' distro='fedora' name='cirrus'>
     <dep name='xorg-x11-drv-cirrus'/>
   </capability>
 
+  <!-- SLES 11 has always supported virtio -->
+  <capability os='linux' distro='sles' major='11' name='virtio'/>
+  <capability os='linux' distro='sles' major='10' name='virtio'>
+    <dep name='kernel' minversion='2.6.16.60-0.85.1'/>
+  </capability>
+  <!-- SLES packages the cirrus driver in xorg-x11-driver-video -->
+  <capability os='linux' distro='sles' name='cirrus'>
+    <dep name='xorg-x11-driver-video'/>
+  </capability>
+
+  <!-- openSUSE 11/12 has always supported virtio -->
+  <capability os='linux' distro='opensuse' major='12' name='virtio'/>
+  <capability os='linux' distro='opensuse' major='11' name='virtio'/>
+  <capability os='linux' distro='opensuse' major='10' name='virtio'>
+    <dep name='kernel' minversion='2.6.25.5-1.1'/>
+  </capability>
+  <!-- openSUSE packages the cirrus driver in xorg-x11-driver-video -->
+  <capability os='linux' distro='opensuse' name='cirrus'>
+    <dep name='xorg-x11-driver-video'/>
+  </capability>
+
   <!-- RHEL clones: copied from above with distro altered -->
   <!-- CentOS -->
   <capability os='linux' distro='centos' major='6' name='virtio'/>
@@ -83,12 +98,6 @@ the modifications or additions to /etc/v
   </capability>
   <capability os='linux' distro='scientificlinux' major='4' name='cirrus'/>
 
-  <!-- All current versions of fedora package the cirrus driver in
-       xorg-x11-drv-cirrus -->
-  <capability os='linux' distro='fedora' name='cirrus'>
-    <dep name='xorg-x11-drv-cirrus'/>
-  </capability>
-
   <!-- This is a place-holder for the 'user-custom' capability, which allows
        the user to install custom packages during linux conversions. Don't edit
        this entry; instead add a more specific match rule containing custom
openSUSE Build Service is sponsored by