--- vm-builder-0.12.4+r444.orig/MANIFEST +++ vm-builder-0.12.4+r444/MANIFEST @@ -0,0 +1,85 @@ +AUTHORS +NEWS +setup.py +ubuntu-vm-builder +ubuntu-vm-builder.1 +vmbuilder +vmbuilder.1 +VMBuilder/__init__.py +VMBuilder/disk.py +VMBuilder/distro.py +VMBuilder/exception.py +VMBuilder/frontend.py +VMBuilder/hypervisor.py +VMBuilder/log.py +VMBuilder/util.py +VMBuilder/vcsversion.py +VMBuilder/vm.py +VMBuilder/contrib/__init__.py +VMBuilder/contrib/cli.py +VMBuilder/plugins/__init__.py +VMBuilder/plugins/ec2/__init__.py +VMBuilder/plugins/ec2/templates/ec2_version.tmpl +VMBuilder/plugins/ec2/templates/landscape_client.tmpl +VMBuilder/plugins/ec2/templates/sshd_config.tmpl +VMBuilder/plugins/ec2/templates/sudoers.tmpl +VMBuilder/plugins/firstscripts/__init__.py +VMBuilder/plugins/firstscripts/templates/firstbootrc.tmpl +VMBuilder/plugins/firstscripts/templates/firstloginrc.tmpl +VMBuilder/plugins/kvm/__init__.py +VMBuilder/plugins/kvm/vm.py +VMBuilder/plugins/libvirt/__init__.py +VMBuilder/plugins/libvirt/templates/libvirtxml.tmpl +VMBuilder/plugins/libvirt/templates/libvirtxml_fsimage.tmpl +VMBuilder/plugins/network/__init__.py +VMBuilder/plugins/postinst/__init__.py +VMBuilder/plugins/ubuntu/__init__.py +VMBuilder/plugins/ubuntu/dapper.py +VMBuilder/plugins/ubuntu/distro.py +VMBuilder/plugins/ubuntu/edgy.py +VMBuilder/plugins/ubuntu/feisty.py +VMBuilder/plugins/ubuntu/gutsy.py +VMBuilder/plugins/ubuntu/hardy.py +VMBuilder/plugins/ubuntu/intrepid.py +VMBuilder/plugins/ubuntu/jaunty.py +VMBuilder/plugins/ubuntu/karmic.py +VMBuilder/plugins/ubuntu/lucid.py +VMBuilder/plugins/ubuntu/suite.py +VMBuilder/plugins/ubuntu/templates/51_update-motd-hardy.tmpl +VMBuilder/plugins/ubuntu/templates/51_update-motd.tmpl +VMBuilder/plugins/ubuntu/templates/dapper_fstab.tmpl +VMBuilder/plugins/ubuntu/templates/dapper_fstab_fsimage.tmpl +VMBuilder/plugins/ubuntu/templates/devicemap.tmpl +VMBuilder/plugins/ubuntu/templates/etc_hosts.tmpl +VMBuilder/plugins/ubuntu/templates/initctl-stub.tmpl +VMBuilder/plugins/ubuntu/templates/interfaces.tmpl +VMBuilder/plugins/ubuntu/templates/is-compat-env.tmpl +VMBuilder/plugins/ubuntu/templates/kernelimg.tmpl +VMBuilder/plugins/ubuntu/templates/locale.tmpl +VMBuilder/plugins/ubuntu/templates/nostart-policy-rc.d.tmpl +VMBuilder/plugins/ubuntu/templates/sources.list.tmpl +VMBuilder/plugins/ubuntu/templates/sudoers.tmpl +VMBuilder/plugins/ubuntu/templates/timezone.tmpl +VMBuilder/plugins/ubuntu/templates/upstart.tmpl +VMBuilder/plugins/ubuntu/templates/xen-ld-so-conf.tmpl +VMBuilder/plugins/virtualbox/__init__.py +VMBuilder/plugins/virtualbox/vm.py +VMBuilder/plugins/virtualbox/templates/vm_deploy_script.tmpl +VMBuilder/plugins/vmware/__init__.py +VMBuilder/plugins/vmware/vm.py +VMBuilder/plugins/vmware/templates/esxi.vmx.tmpl +VMBuilder/plugins/vmware/templates/flat.vmdk.tmpl +VMBuilder/plugins/vmware/templates/vmware.tmpl +VMBuilder/plugins/xen/__init__.py +VMBuilder/plugins/xen/vm.py +VMBuilder/tests/__init__.py +VMBuilder/tests/base_test.py +VMBuilder/tests/disk_tests.py +VMBuilder/tests/network_tests.py +VMBuilder/tests/plugin_tests.py +VMBuilder/tests/ubuntu_tests.py +VMBuilder/tests/util_tests.py +examples/ec2-amd64-part-file.txt +examples/ec2-firstboot.sh +examples/ec2-firstlogin.sh +examples/ec2-i386-part-file.txt --- vm-builder-0.12.4+r444.orig/Makefile +++ vm-builder-0.12.4+r444/Makefile @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +test: clean stamp + @nosetests --verbose + +stamp: + @touch $@ + +build: + @python setup.py bdist_egg sdist + +coverage: + @nosetests --quiet --with-coverage --cover-package VMBuilder + +report: + @nosetests --quiet --with-coverage --cover-package VMBuilder --cover-html --cover-html-dir coverage-report + +clean: + @rm -rf stamp .coverage coverage-report --- vm-builder-0.12.4+r444.orig/MANIFEST.in +++ vm-builder-0.12.4+r444/MANIFEST.in @@ -0,0 +1,7 @@ +include VMBuilder/plugins/*/templates/*.tmpl +include AUTHORS +include NEWS +include examples/* +include ubuntu-vm-builder +include ubuntu-vm-builder.1 +include vmbuilder.1 --- vm-builder-0.12.4+r444.orig/VMBuilder/vcsversion.py +++ vm-builder-0.12.4+r444/VMBuilder/vcsversion.py @@ -5,7 +5,7 @@ """ version_info = {'branch_nick': u'0.12', - 'build_date': '2010-05-28 08:51:13 +0000', + 'build_date': '2010-05-28 08:51:20 +0000', 'clean': None, 'date': '2010-05-18 13:43:12 +0200', 'revision_id': 'soren@linux2go.dk-20100518114312-9knzsw8j3hitv1h2', --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder-ec2.install +++ vm-builder-0.12.4+r444/debian/python-vm-builder-ec2.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/ec2 --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder.install +++ vm-builder-0.12.4+r444/debian/python-vm-builder.install @@ -0,0 +1,14 @@ +debian/tmp/etc +debian/tmp/usr/bin/vmbuilder +debian/tmp/usr/lib/python*/*-packages/VMBuilder/*.py +debian/tmp/usr/lib/python*/*-packages/VMBuilder/contrib +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/*.py +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/firstscripts +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/kvm +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/libvirt +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/network +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/postinst +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/ubuntu +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/virtualbox +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/vmware +debian/tmp/usr/lib/python*/*-packages/VMBuilder/plugins/xen --- vm-builder-0.12.4+r444.orig/debian/ubuntu-vm-builder.manpages +++ vm-builder-0.12.4+r444/debian/ubuntu-vm-builder.manpages @@ -0,0 +1 @@ +ubuntu-vm-builder.1 --- vm-builder-0.12.4+r444.orig/debian/pycompat +++ vm-builder-0.12.4+r444/debian/pycompat @@ -0,0 +1 @@ +2 --- vm-builder-0.12.4+r444.orig/debian/changelog +++ vm-builder-0.12.4+r444/debian/changelog @@ -0,0 +1,12 @@ +vm-builder (0.12.4+r444-0ubuntu0ppa1) lucid; urgency=low + + * Automated PPA build. + + -- Soren Hansen Fri, 28 May 2010 08:51:17 +0000 + +vm-builder (0.12.3+r443-0ubuntu0ppa1) lucid; urgency=low + + * Automated PPA build. + + -- Soren Hansen Sun, 23 May 2010 11:37:47 +0000 + --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder-ec2.docs +++ vm-builder-0.12.4+r444/debian/python-vm-builder-ec2.docs @@ -0,0 +1 @@ +examples --- vm-builder-0.12.4+r444.orig/debian/control +++ vm-builder-0.12.4+r444/debian/control @@ -0,0 +1,76 @@ +Source: vm-builder +Section: utils +Priority: optional +Maintainer: Soren Hansen +Build-Depends: cdbs, + debhelper (>= 5.0.38), + python-all (>= 2.3.5-11), + python-central (>= 0.5.6), + python-epydoc, + quilt +Standards-Version: 3.8.3 +XS-Python-Version: >= 2.5 +XS-Upstream-Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-virt/vmbuilder/trunk + +Package: python-vm-builder +Architecture: all +Depends: ${misc:Depends}, + ${python:Depends}, + qemu-kvm | qemu-kvm-extras, + debootstrap (>= 1.0.9), + parted, + kpartx, + ubuntu-keyring, + python-cheetah, + rsync +Recommends: python-libvirt, + devscripts +XB-Python-Version: ${python:Versions} +Description: VM builder + Script that automates the process of creating a ready to use Linux based VM. + The currently supported hypervisors are: + . + * KVM + * Xen + * VMWare + . + The currently supported distros are: + . + * Ubuntu Dapper, Gutsy, Hardy, Intrepid, Jaunty, and Karmic. + . + You can pass command line options to add extra packages, remove packages, + choose which version of Ubuntu, which mirror etc. On recent hardware + with plenty of RAM, tmpdir in /dev/shm or using a tmpfs, and a local mirror, + you can bootstrap a vm in less than a minute. + +Package: ubuntu-vm-builder +Architecture: all +Depends: ${misc:Depends}, + ${python:Depends}, + python-vm-builder +XB-Python-Version: ${python:Versions} +Description: Ubuntu VM builder + Script which automates the process of creating a ready to use VM based on + Ubuntu. You can pass command line options to add extra packages, remove + packages, choose which version of Ubuntu, which mirror to use etc. + . + On recent hardware with plenty of RAM, tmpdir in /dev/shm or using a tmpfs, + and a local mirror, you can bootstrap a vm in less than a minute. + +Package: python-vm-builder-ec2 +Architecture: all +Depends: ${misc:Depends}, + ${python:Depends}, + python-vm-builder, + ec2-ami-tools, + python-boto +XB-Python-Version: ${python:Versions} +Description: EC2 Ubuntu VM builder + Ubuntu vmbuilder module that automates the process of create a ready to use + EC2 image (AMI) based on Ubuntu. You can pass command line options to add + extra packages, remove packages, choose which version of Ubuntu, which + mirror to use etc. + . + VMBuilder module to build, upload and register EC2 images. You will + need to have an Amazon EC2 account in order to use this package. + --- vm-builder-0.12.4+r444.orig/debian/rules +++ vm-builder-0.12.4+r444/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM = pycentral +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +# For when we add the extra package +#DEB_DH_INSTALL_SOURCEDIR = debian/tmp + +#makebuilddir/python-vm-builder:: +# if test -d .bzr; then if ! bzr diff -q > /dev/null; then echo 'ERROR! Uncommitted changes!!!' ; /bin/false ; fi; fi + +build/python-vm-builder:: doc-stamp + +doc-stamp: + epydoc --no-private VMBuilder + touch $@ + +cleanbuilddir/python-vm-builder:: + rm -rf html doc-stamp --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder.manpages +++ vm-builder-0.12.4+r444/debian/python-vm-builder.manpages @@ -0,0 +1 @@ +vmbuilder.1 --- vm-builder-0.12.4+r444.orig/debian/compat +++ vm-builder-0.12.4+r444/debian/compat @@ -0,0 +1 @@ +5 --- vm-builder-0.12.4+r444.orig/debian/watch +++ vm-builder-0.12.4+r444/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://launchpad.net/vmbuilder/+download http://launchpad.net/vmbuilder/.*/VMBuilder-(.+).tar.gz --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder.docs +++ vm-builder-0.12.4+r444/debian/python-vm-builder.docs @@ -0,0 +1 @@ +html --- vm-builder-0.12.4+r444.orig/debian/ubuntu-vm-builder.install +++ vm-builder-0.12.4+r444/debian/ubuntu-vm-builder.install @@ -0,0 +1,2 @@ +ubuntu-vm-builder usr/bin +debian/python-vm-builder.py usr/share/apport/package-hooks --- vm-builder-0.12.4+r444.orig/debian/copyright +++ vm-builder-0.12.4+r444/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Soren Hansen on +Thu, 28 Aug 2008 05:14:27 +0200 + +It lives at https://launchpad.net/vmbuilder + +Copyright: + Copyright (C) 2007-2008 Canonical Ltd. + +Authors: + Soren Hansen + +License: + 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 3 of the License, 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, see . + +For the full license, see '/usr/share/common-licenses/GPL-3'. + +The same license and copyright applies to the Debian packaging. --- vm-builder-0.12.4+r444.orig/debian/python-vm-builder.py +++ vm-builder-0.12.4+r444/debian/python-vm-builder.py @@ -0,0 +1,19 @@ +#!/usr/bin/python + +'''VMBuilder Apport interface + +Copyright (C) 2010 Canonical Ltd. +Author: Chuck Short + +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 of the Licenes, or (at your option) any later version. See http://www.gnu.org/copyleft/gpl.html for the full text of the license. +''' + +import os +import subprocess +from apport.hookutils import * + +def add_info(report, ui): + attach_related_packages(report, ['qemu-kvm', 'debootstrap', 'parted', 'kpartx', 'ubuntu-keyring', 'rsync']) + + ui.information("Please attach the command line that you used to generate your virtual machine") +