Add debian build directory for controllerconfig

Add debian build directory to build controllerconfig
Debian package.

Story: 2009101
Task: 43023

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ic3726005faaa3d1686e583c17c809d946f78d60f
This commit is contained in:
Charles Short 2021-08-25 13:18:15 -04:00
parent 488b4e717c
commit 10c4a075f6
12 changed files with 165 additions and 40 deletions

View File

@ -1,31 +0,0 @@
Source: controllerconfig
Priority: optional
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
Build-Depends: python-setuptools,
python-all,
debhelper,
dh-python,
python-pip,
python-wheel
Standards-Version: 3.9.6
Package: controllerconfig
Architecture: all
Depends: ${misc:Depends},
${python:Depends},
python-pyudev,
psmisc,
systemd,
python-cryptography,
python-keyring,
python-netifaces,
python-iso8601,
python-pysnmp4,
python-netaddr,
python-six,
python-yaml,
python-oslo-utils,
tsconfig,
sysinv,
fm-api
Description: This package contains the controllerconfig project.

View File

@ -0,0 +1,5 @@
controllerconfig (1.0-1) unstable; urgency=medium
* Initial release.
-- Chuck Short <charles.short@windriver.com> Sun, 08 Aug 2021 16:22:25 -0400

View File

@ -0,0 +1,50 @@
Source: controllerconfig
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
dh-python,
python3-setuptools,
python3-all,
python3-wheel
Build-Depends-Indep:
python3-netaddr,
python3-keyring,
python3-pyudev,
python3-psycopg2,
python3-six,
python3-iso8601,
python3-netifaces,
python3-cryptography,
python3-oslo.utils,
python3-oslo.log,
python3-yaml,
tsconfig
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: controllerconfig
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends},
python3-netaddr,
python3-keyring,
python3-pyudev,
python3-psycopg2,
python3-six,
python3-iso8601,
python3-netifaces,
python3-cryptography,
python3-oslo.utils,
python3-yaml,
python3-oslo.log,
tsconfig
Description: Controller node configuration
Support scripts for controller node upgrade and configuration
Package: controllerconfig-wheels
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-wheel
Description: Controller node configuration - python wheel
Support scripts for controller node upgrade and configuration
.
This package contains the python wheel.

View File

@ -0,0 +1,6 @@
etc/upgrade.d
etc/init.d
etc/goenabled.d
usr/sbin
lib/systemd/system

View File

@ -0,0 +1,6 @@
usr/bin/*
etc/goenabled.d/*
usr/lib/python*/dist-packages/*
etc/init.d/*
etc/upgrade.d/*
lib/systemd/system/*

View File

@ -0,0 +1,3 @@
init.d-script-does-not-implement-required-option
init.d-script-missing-dependency-on-local_fs
omitted-systemd-service-for-init.d-script

View File

@ -0,0 +1,42 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: controllerconfig
Source: https://opendev.org/starlingx/nova
Files: *
Copyright: (c) 2013-2021 Wind River Systems, Inc
(c) Others (See individual files for more details)
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2021 Wind River Systems, Inc
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,44 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=controllerconfig
ROOT := $(CURDIR)/debian/tmp
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
python3 setup.py install -f --install-layout=deb --root=$(ROOT)
python3 setup.py bdist_wheel --universal -d $(CURDIR)/debian/controllerconfig-wheels/usr/share/python-wheels
install -d -m 755 $(ROOT)/usr/bin
install -p -D -m 700 scripts/openstack_update_admin_password $(ROOT)/usr/bin/openstack_update_admin_password
install -p -D -m 700 scripts/upgrade_swact_migration.py $(ROOT)/usr/bin/upgrade_swact_migration.py
install -p -D -m 755 scripts/image-backup.sh $(ROOT)/usr/bin/image-backup.sh
install -d -m 755 $(ROOT)/etc/goenabled.d/
install -p -D -m 700 scripts/config_goenabled_check.sh $(ROOT)/etc/goenabled.d/config_goenabled_check.sh
install -d -m 755 $(ROOT)/etc/init.d
install -p -D -m 755 scripts/controller_config $(ROOT)/etc/init.d/controller_config
install -d -m 755 $(ROOT)/etc/upgrade.d
install -p -D -m 755 upgrade-scripts/* $(ROOT)/etc/upgrade.d
install -d -m 755 $(ROOT)/lib/systemd/system
install -p -D -m 664 scripts/controllerconfig.service $(ROOT)/lib/systemd/system/controllerconfig.service
dh_install
override_dh_fixperms:
dh_fixperms \
-X/usr/bin/openstack_update_admin_password \
-X/usr/bin/image-backup.sh \
-Xupgrade_swact_migration.py \
-Xconfig_goenabled_check.sh \
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
stestr run || true
endif
override_dh_installsystemd:
dh_installsystemd --name controllerconfig
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

View File

@ -0,0 +1,7 @@
---
debname: controllerconfig
debver: 1.0
src_path: controllerconfig
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

View File

@ -1,9 +0,0 @@
#!/usr/bin/make -f
export PYBUILD_INSTALL_ARGS=--install-data=/usr/share --prefix=/usr --single-version-externally-managed
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_test:
echo "skipping test"