Add Debian packaging for mtce packages

Some of the code used TRUE instead of true which did not compile
for Debian. These instances were changed to true.
Some #define constants generated narrowing errors because their
values are negative in a 32 bit integer. These values were
explicitly casted to int in the case statements causing the errors.

Story: 2009101
Task: 43426

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: Iffc4305660779010969e0c506d4ef46e1ebc2c71
This commit is contained in:
Tracey Bogue
2021-09-23 13:39:46 -05:00
parent 366b68d3c7
commit 0551c665cb
50 changed files with 847 additions and 30 deletions

View File

@@ -0,0 +1,5 @@
mtce-compute (1.0-1) unstable; urgency=medium
* Initial release.
-- Tracey Bogue <tracey.bogue@windriver.com> Mon, 12 Oct 2021 12:34:42 +0000

View File

@@ -0,0 +1,15 @@
Source: mtce-compute
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
libsystemd-dev
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io
Package: mtce-compute
Architecture: any
Depends: ${misc:Depends}, qemu
Description: StarlingX Compute Node Maintenance Package
This package contains maintenance support files for the compute-only
node type.

View File

@@ -0,0 +1,41 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mtce-compute
Source: https://opendev.org/starlingx/metal
Files: *
Copyright: (c) 2013-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'.
# 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,3 @@
etc/goenabled.d/virt-support-goenabled.sh
etc/init.d/goenabledWorker
lib/systemd/system/goenabled-worker.service

View File

@@ -0,0 +1,18 @@
#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export GODIR = $(ROOT)/etc/goenabled.d
export INITDIR = $(ROOT)/etc/init.d
export SYSTEMDDIR = $(ROOT)/lib/systemd/system
%:
dh $@
override_dh_auto_install:
install -m 755 -d $(GODIR)
install -m 755 -p -D scripts/virt-support-goenabled.sh $(GODIR)
install -m 755 -d $(INITDIR)
install -m 755 -p -D scripts/goenabled $(INITDIR)/goenabledWorker
install -m 755 -d $(SYSTEMDDIR)
install -m 644 -p -D scripts/goenabled-worker.service $(SYSTEMDDIR)

View File

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