Use YAML+templates to define deb pkg builds 53/43253/19
authorAkshita Jha <zenith158@gmail.com>
Fri, 5 Aug 2016 17:26:17 +0000 (22:56 +0530)
committerDaniel Farrell <dfarrell@redhat.com>
Mon, 29 Aug 2016 17:16:28 +0000 (17:16 +0000)
commit7cd9edf42f51d76fd3a47d703658cb57fb2e7d9d
tree27171cee642a2544927eb91f032ff576b4742774
parent772a793cfa657c3b09d4f264501545937ab5a0fe
Use YAML+templates to define deb pkg builds

Adds deb pkg building helper script

The build.py script uses templates/build_debianfiles.py to
generate debian files for ODL .deb packages. To execute script:

  $ build.py -v <version_major> <version_minor> <version_patch> \
                <pkg_version>

build_debianfile.py reads build_vars.yaml and uses Jinja2 templates to
create debian files specific to a build.

The directory `templates` contains jinja2 templates for files
debian/control, debian/rules, debian/changelog. These files change
dynamically for every build. The other files are mostly the same for all
builds.

Also installs Python dependencies for build scripts in Vagrant env and
adds information in README.markdown for building Debs.

Change-Id: Iabba1d808c4fbb4a5832556c30dca4f9de13aaa4
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
19 files changed:
deb/README.markdown
deb/Vagrantfile
deb/build.py [new file with mode: 0755]
deb/build_vars.yaml [new file with mode: 0755]
deb/opendaylight/debian/README.Debian [deleted file]
deb/opendaylight/debian/changelog [deleted file]
deb/opendaylight/debian/control [deleted file]
deb/opendaylight/debian/opendaylight.service [deleted file]
deb/templates/__init__.py [new file with mode: 0644]
deb/templates/build_debianfiles.py [new file with mode: 0644]
deb/templates/changelog_template [new file with mode: 0644]
deb/templates/compat [moved from deb/opendaylight/debian/compat with 100% similarity]
deb/templates/control_template [new file with mode: 0644]
deb/templates/karaf [moved from deb/opendaylight/debian/karaf with 100% similarity]
deb/templates/opendaylight.install [moved from deb/opendaylight/debian/opendaylight.install with 100% similarity]
deb/templates/opendaylight.postinst [moved from deb/opendaylight/debian/opendaylight.postinst with 100% similarity]
deb/templates/opendaylight.postrm [moved from deb/opendaylight/debian/opendaylight.postrm with 100% similarity]
deb/templates/opendaylight.upstart [moved from deb/opendaylight/debian/opendaylight.upstart with 100% similarity]
deb/templates/rules_template [moved from deb/opendaylight/debian/rules with 59% similarity, mode: 0644]