Merge pull request #312 from euanh/ubuntu-sm

xcp-sm: Update rules and script to work on Ubuntu
Merge pull request #313 from euanh/ubuntu-sm

xcp-sm: Update to 0.9.6, with fixes for iSCSI volumes on Ubuntu
Remove hardwired url patterns from inputs
Override repositories with environment variables
Extract variables
Rename variables

The same environment variables could be used for both deb and rpm packages:

PKG_REPO_LOCATION
SRC_REPO_LOCATION
Fix bad variable name
Templated debian preferences

If the repo location is an URL, the debian preference file need to refer
to the hostname.
Merge pull request #316 from matelakat/install-from-url

Enable URL based installation
makemake: Fix Pylint naming warnings

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Separate toplevel code into functions

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Switch from os.listdir() to glob.glob() to read SPEC dir

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Remove some unnecessary duplicate iterations over the specs

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Remove further unnecessary traversals of the spec list

This change substantially alters the order in which rules appear
in the Makefile.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Extract package name to RPM name mapping into functions

This reintroduces an extra traversal over the specs, but this whole
mess should go away shortly.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Start on a test suite

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Regenerate dependencies automatically in the makefile

makemake.py is now known as specdep.py

Signed-off-by: Euan Harris <euan.harris@citrix.com>