Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable compilation and bundling of contrail-openstack-dashboard and c…
…ontrail-ceilometer-plugin Closes-Bug: #1549535 (cherry picked from commit b6f4130) create a new directory liberty with debian files adding contrail-openstack dependency on contrail-openstack-dashboard Closes-Bug: #1549535 Change-Id: I26fcf837e7444502d7bc1c0ce094b5722c29139c (cherry picked from commit 7fbd998) Conflicts: common/debian/contrail-openstack/debian/control.liberty.in Change-Id: Ib4bb2338b51c7687a54567a5b847937190316edd
- Loading branch information
Raj Reddy
committed
Mar 13, 2016
1 parent
97f6d88
commit eacdbd1
Showing
9 changed files
with
95 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
common/debian/contrail-openstack-dashboard/debian/liberty/changelog.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
contrail-openstack-dashboard (BUILDTAG) quantal; urgency=low | ||
|
||
* Initial release. | ||
|
||
-- Rahul Sharma <rahuls@juniper.net> Mon, 10 Feb 2014 21:55:40 +5:30 | ||
|
||
|
1 change: 1 addition & 0 deletions
1
common/debian/contrail-openstack-dashboard/debian/liberty/compat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8 |
11 changes: 11 additions & 0 deletions
11
.../debian/contrail-openstack-dashboard/debian/liberty/contrail-openstack-dashboard.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# vim: set ts=2 et: | ||
|
||
set -e | ||
|
||
if [ "$1" = "configure" ] ; then | ||
if [ -e /usr/share/openstack-dashboard/openstack_dashboard/static ] ; then | ||
cp -L -prf --remove-destination /usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/static/* /usr/share/openstack-dashboard/openstack_dashboard/static | ||
fi | ||
fi | ||
#DEBHELPER# |
11 changes: 11 additions & 0 deletions
11
...on/debian/contrail-openstack-dashboard/debian/liberty/contrail-openstack-dashboard.postrm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# vim: set ts=2 et: | ||
|
||
set -e | ||
|
||
if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then | ||
if [ -e /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/js/contrail.networktopology.js ] ; then | ||
rm -f /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/js/contrail.networktopology.js | ||
fi | ||
fi | ||
#DEBHELPER# |
11 changes: 11 additions & 0 deletions
11
common/debian/contrail-openstack-dashboard/debian/liberty/control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Source: contrail-openstack-dashboard | ||
Section: python | ||
Priority: optional | ||
Maintainer: Rahul Sharma <rahuls@juniper.net> | ||
Standards-Version: 1.1 | ||
Homepage: https://github.com/Juniper/contrail-horizon | ||
|
||
Package: contrail-openstack-dashboard | ||
Architecture: all | ||
Depends: ${python:Depends}, ${misc:Depends}, openstack-dashboard | ||
Description: Openstack Dashboard implementation for Contrail Neutron Plugin. |
5 changes: 5 additions & 0 deletions
5
common/debian/contrail-openstack-dashboard/debian/liberty/copyright
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Name: contrail-openstack-dashboard | ||
Maintainer: Rahul Sharma <rahuls@juniper.net> | ||
License: Apache 2.0 | ||
Files: * | ||
Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. |
41 changes: 41 additions & 0 deletions
41
common/debian/contrail-openstack-dashboard/debian/liberty/rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# This file was originally written by Joey Hess and Craig Small. | ||
# As a special exception, when this file is copied by dh-make into a | ||
# dh-make output file, you may use that output file without restriction. | ||
# This special exception was added by Craig Small in version 0.37 of dh-make. | ||
# Uncomment this to turn on verbose mode. | ||
export DH_VERBOSE=1 | ||
|
||
SPEC_DIR := $(shell pwd) | ||
export SB_TOP := $(shell pwd | sed -re "s/(.*)\/build\/debian\/(.*)/\1/") | ||
export BUILDTIME := $(shell date -u +%y%m%d%H%M) | ||
export buildroot := $(SB_TOP)/build/debian/contrail-openstack-dashboard | ||
export PY_DIST_PATH := /usr/lib/python2.7/dist-packages | ||
|
||
SRC_VER := $(shell cat $(SB_TOP)/controller/src/base/version.info) | ||
|
||
BUILDTAG = | ||
ifdef TAG | ||
BUILDTAG = $(SRC_VER)-$(TAG) | ||
else | ||
BUILDTAG = $(SRC_VER)-$(BUILDTIME) | ||
endif | ||
|
||
%: | ||
dh $@ --destdir=${SB_TOP}/build/debian --with python2 | ||
|
||
override_dh_auto_build: | ||
cat debian/changelog.in | sed 's,BUILDTAG,$(BUILDTAG),g' > debian/changelog | ||
|
||
override_dh_auto_install: | ||
# Setup directories | ||
install -d -m 755 $(buildroot)/debian/contrail-openstack-dashboard/$(PY_DIST_PATH)/contrail_openstack_dashboard | ||
install -d -m 755 $(buildroot)/debian/contrail-openstack-dashboard/$(PY_DIST_PATH)/contrail_openstack_dashboard/openstack_dashboard | ||
cp -a $(buildroot)/*.py $(buildroot)/debian/contrail-openstack-dashboard/$(PY_DIST_PATH)/contrail_openstack_dashboard | ||
cp -a $(buildroot)/openstack_dashboard/ $(buildroot)/debian/contrail-openstack-dashboard/$(PY_DIST_PATH)/contrail_openstack_dashboard/ | ||
|
||
override_dh_shlibdeps: | ||
|
||
override_dh_usrlocal: |