Packaging virt-manager for Ubuntu

Last week I attended a Xen course on SLES10 (SP1 RC5). We used virt-manager. I looked for it in Ubuntu but wasn’t able to find it. Instead I found this request for packaging virt-manager for Ubuntu.

I have been trying to do it myself but it isn’t as easy as I thought… I have never really tried packaging anything before (apart from my wallpapers which doesn’t really have any dependencies or make files).

Virtual Machine Manager has the following dependancies (taken from virt-manager homepage):

python >= 2.4
pygtk2 >= 1.99.12-6
gnome-python2-gconf >= 1.99.11-7
libvirt-python >= 0.2.1
dbus-python >= 0.61
gnome-python-desktop >= 2.15.4
libxml2-python >= 2.6.23
vte >= 0.12.2
virtinst >= 0.103.0

Identified corespondent packages in Ubuntu:

python                  Version: 2.5.1-0ubuntu3
python-gtk2             Version: 2.10.4-0ubuntu3
python-gconf            Version: 2.18.0-0ubuntu1
python-libvirt          Version: 0.1.8-0ubuntu2
python-dbus             Version: 0.80.2-1ubuntu2
python-gnome2-desktop   Version: 2.18.0-0ubuntu3
python-libxml2          Version: 2.6.27.dfsg-1ubuntu3
libvte9                 Version: 1:0.16.1-0ubuntu1

virtinst (downloadable from `virt-manager`'s homepage)

I guess virtinst would need packaging as well… download virtinst. The version of phyton-libvirt isn’t new enough either.

I have been looking at a Ubuntu packaging guide but have already run into trouble (even before getting to phyton-libvirt):

...
checking for PYGTK2... configure: error: Package requirements (pygtk-2.0 >= 1.99.11) were not met:

No package 'pygtk-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYGTK2_CFLAGS
and PYGTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make: *** [config.status] Error 1