-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related-Bug: #1463208 - Moving Server Manager Client CLI to Cliff Fra…
…mework This check-in: - Added packaging scripts - Packaging pip installable .tar.gz package - Packaging additional wrapper debian for above .tar.gz Patch 2: - Added scripts to package with server-manager-installer package - Debian can be installed with or without installer - Setup script changes to include cliff client Change-Id: I275416207e090f420e1edfaafd95313b31b50899
- Loading branch information
nitishkrishna
committed
Sep 22, 2015
1 parent
a23c731
commit 0b570f0
Showing
9 changed files
with
127 additions
and
0 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
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
6 changes: 6 additions & 0 deletions
6
common/debian/contrail-server-manager-cliff-client/debian/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,6 @@ | ||
contrail-server-manager-cliff-client (BUILDTAG) nitishk; urgency=low | ||
|
||
[nitishk ] | ||
* debian/changelog: changelog | ||
|
||
-- nitishk <nitishk@juniper.net> Mon Jul 13 14:20:51 PDT 2015 |
1 change: 1 addition & 0 deletions
1
common/debian/contrail-server-manager-cliff-client/debian/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 |
21 changes: 21 additions & 0 deletions
21
common/debian/contrail-server-manager-cliff-client/debian/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,21 @@ | ||
Source: contrail-server-manager-cliff-client | ||
Maintainer: nitishk <nitishk@juniper.net> | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 1.0 | ||
Build-Depends: debhelper (>= 8) | ||
|
||
Package: contrail-server-manager-cliff-client | ||
Architecture: all | ||
Maintainer: nitishk <nitishk@juniper.net> | ||
Depends: python, | ||
python-pip, | ||
python-cliff, | ||
python-configparser, | ||
python-pyparsing, | ||
python-pbr, | ||
python-six, | ||
python-pycurl | ||
Section: contrail-server-manager-cliff-client | ||
Priority: extra | ||
Description: Contrail Server Manager Cliff Client Package |
5 changes: 5 additions & 0 deletions
5
common/debian/contrail-server-manager-cliff-client/debian/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-server-manager-cliff-client | ||
Maintainer: nitishk <nitishk@juniper.net> | ||
License: Commercial | ||
Files: * | ||
Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. |
8 changes: 8 additions & 0 deletions
8
common/debian/contrail-server-manager-cliff-client/debian/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,8 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
|
||
echo "running post install" | ||
|
||
/opt/contrail/bin/setup_server_manager_client.sh |
55 changes: 55 additions & 0 deletions
55
common/debian/contrail-server-manager-cliff-client/debian/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,55 @@ | ||
#!/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\/contrail-server-manager-cliff-client//g") | ||
export BUILDTIME := $(shell date -u +%y%m%d%H%M) | ||
export src_path := $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/ | ||
export build_root := $(SB_TOP)/build/debian/contrail-server-manager-cliff-client/debian/contrail-server-manager-cliff-client | ||
export _pyver := 2.7 | ||
export _pysitepkg := /lib/python${_pyver}/site-packages | ||
export python_sitelib := /usr/local/lib/python${_pyver}/dist-packages | ||
export _contrailopt := /opt/contrail | ||
__python ?= /usr/bin/python | ||
|
||
SRC_VER := $(shell cat $(SB_TOP)/controller/src/base/version.info) | ||
CONTRAIL_SKU := $(shell cat $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/contrail_sku.txt) | ||
BUILDTAG = | ||
ifdef TAG | ||
BUILDTAG = $(SRC_VER)-$(TAG) | ||
else | ||
BUILDTAG = $(SRC_VER)-$(BUILDTIME) | ||
endif | ||
|
||
%: | ||
dh $@ --tmpdir=${build_root} --destdir=${SB_TOP}/build/debian | ||
|
||
override_dh_auto_build: | ||
cat debian/changelog.in | sed 's,BUILDTAG,$(BUILDTAG),g' > debian/changelog | ||
rm -rf $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/dist | ||
rm -rf $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/servermanagercli.egg-info | ||
(cd $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/ && ${__python} setup.py sdist) | ||
|
||
override_dh_auto_install: | ||
# Cleanup directories | ||
rm -rf $(build_root) | ||
mkdir -p $(build_root) | ||
mkdir -p $(build_root)$(_contrailopt) | ||
mkdir -p $(build_root)$(_contrailopt)/bin | ||
# Install directories | ||
install -d -m 755 $(build_root)$(_contrailopt) | ||
install -d -m 755 $(build_root)$(_contrailopt)/bin | ||
# Copy/install files | ||
(cd $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/dist/ && tar zxf servermanagercli-$(BUILDTAG)-$(CONTRAIL_SKU).tar.gz) | ||
(cd $(SB_TOP)/tools/contrail-server-manager/src/smgr_cliff_client/dist/servermanagercli-$(BUILDTAG)-$(CONTRAIL_SKU) && ${__python} setup.py install --root=$(build_root) --install-scripts ${_contrailopt}/bin/) | ||
override_dh_shlibdeps: | ||
|
||
override_dh_usrlocal: | ||
|