crowbar/crowbar — pull request #1689 by VictorLowther (2013-02-06 21:16:54+00:00)
Title: First pass at adding native package support to Crowbar [2/2]

This pull request adds basic support for generating RPM and Deb files

The main place this is added is to package_barclamp.sh. To use it,
pass the --deb and --rpm flags to package_barclamp.sh, and it will
generate installable .deb and .rpm packages along with the package
cache tarballs.

The generated packages have a semi-useless version numbering scheme
based the current time that we will definitly want to replace with
something semantic at some point. The utility that generates the
specfiles and debian control metadata knows how to dependency-order
the packages based on intra barclamp dependencies, and I also added a
required_pkgs section to the gems and rpms sections of the
crowbar.yml, and we also know how to include those dependencies in the
generated packages.

I also added the ability to build an ISO using OS native packages, but
the install process does not know how to use native barclamp packages
yet.

Next steps:

1: Get a "working" admin node.
2: Work on automatically translating gems -> RPM packages/debs.
3: Fix all the assumptions about bundler that will break when that happens.

build_crowbar.sh | 23 ++++--
package_barclamp.sh | 92 +++++++++++++++--------
packaging/deb/debian/README | 6 ++
packaging/deb/debian/compat | 1 +
packaging/deb/debian/control.erb | 17 +++++
packaging/deb/debian/copyright | 66 ++++++++++++++++
packaging/deb/debian/dirs | 2 +
packaging/deb/debian/rules.erb | 30 ++++++++
packaging/make-pkg | 124 +++++++++++++++++++++++++++++++
packaging/rpm/crowbar-barclamp.spec.erb | 70 +++++++++++++++++
10 files changed, 397 insertions(+), 34 deletions(-)

Crowbar-Pull-ID: 5b598c8110f085ef576877b660248715e65e9054

Crowbar-Release: development