From 75ddbe2409bf608a6757b72d90f4cb1d464cbbd5 Mon Sep 17 00:00:00 2001 From: Luan Nunes Utimura Date: Fri, 6 Jan 2023 14:09:25 -0300 Subject: [PATCH] Debian: Add build structure for utilities/pci-irq-affinity-agent This change adds the necessary files for the pci-irq-affinity-agent package to be built for Debian. Test Plan: PASS: Build pci-irq-affinity-agent package PASS: Build stx-pci-irq-affinity-agent image Story: 2010072 Task: 47091 Signed-off-by: Luan Nunes Utimura Change-Id: I7972ea7e8beb1e869bb38cef533d782db64eaa8c --- debian_pkg_dirs | 1 + debian_stable_wheels.inc | 1 + .../debian/deb_folder/changelog | 5 +++ .../debian/deb_folder/control | 21 ++++++++++ .../debian/deb_folder/copyright | 39 +++++++++++++++++++ .../pci-irq-affinity-agent-wheels.install | 1 + .../debian/deb_folder/rules | 18 +++++++++ .../debian/deb_folder/source/format | 1 + .../debian/meta_data.yaml | 7 ++++ 9 files changed, 94 insertions(+) create mode 100644 debian_stable_wheels.inc create mode 100644 utilities/pci-irq-affinity-agent/debian/deb_folder/changelog create mode 100644 utilities/pci-irq-affinity-agent/debian/deb_folder/control create mode 100644 utilities/pci-irq-affinity-agent/debian/deb_folder/copyright create mode 100644 utilities/pci-irq-affinity-agent/debian/deb_folder/pci-irq-affinity-agent-wheels.install create mode 100755 utilities/pci-irq-affinity-agent/debian/deb_folder/rules create mode 100644 utilities/pci-irq-affinity-agent/debian/deb_folder/source/format create mode 100644 utilities/pci-irq-affinity-agent/debian/meta_data.yaml diff --git a/debian_pkg_dirs b/debian_pkg_dirs index cf8528ff..a8f48c38 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -11,6 +11,7 @@ utilities/k8s-coredump utilities/logmgmt utilities/namespace-utils utilities/nfscheck +utilities/pci-irq-affinity-agent utilities/platform-util utilities/stx-extensions utilities/update-motd diff --git a/debian_stable_wheels.inc b/debian_stable_wheels.inc new file mode 100644 index 00000000..6a92a851 --- /dev/null +++ b/debian_stable_wheels.inc @@ -0,0 +1 @@ +pci-irq-affinity-agent-wheels diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/changelog b/utilities/pci-irq-affinity-agent/debian/deb_folder/changelog new file mode 100644 index 00000000..ba98b634 --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +pci-irq-affinity-agent (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Luan Nunes Utimura Thu, 05 Jan 2023 18:07:44 +0000 diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/control b/utilities/pci-irq-affinity-agent/debian/deb_folder/control new file mode 100644 index 00000000..cac6ce91 --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/control @@ -0,0 +1,21 @@ +Source: pci-irq-affinity-agent +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13), + dh-python, + python3-all, + python3-setuptools, + python3-systemd, + python3-wheel +Standards-Version: 4.5.1 +Homepage: https://www.starlingx.io + +Package: pci-irq-affinity-agent-wheels +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + python3-wheel +Description: StarlingX PCI Interrupt Affinity Agent Wheels + Contains python wheels for pci-irq-affinity-agent. diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/copyright b/utilities/pci-irq-affinity-agent/debian/deb_folder/copyright new file mode 100644 index 00000000..d0b8d1ec --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pci-irq-affinity-agent +Source: https://opendev.org/starlingx/utilities + +Files: * +Copyright: (c) 2013-2023 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'. + +Files: debian/* +Copyright: 2023 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'. diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/pci-irq-affinity-agent-wheels.install b/utilities/pci-irq-affinity-agent/debian/deb_folder/pci-irq-affinity-agent-wheels.install new file mode 100644 index 00000000..b33828b5 --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/pci-irq-affinity-agent-wheels.install @@ -0,0 +1 @@ +usr/share/python-wheels/*.whl diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/rules b/utilities/pci-irq-affinity-agent/debian/deb_folder/rules new file mode 100755 index 00000000..5a08b9b5 --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +# export DH_VERBOSE=1 + +export PYBUILD_NAME=pci-irq-affinity-agent +export ROOT=debian/tmp + +export DATA_DIR=$(ROOT)/usr/share + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_install: + python3 setup.py bdist_wheel --universal -d $(DATA_DIR)/python-wheels + + dh_install + +override_dh_python3: + dh_python3 --shebang=/usr/bin/python3 diff --git a/utilities/pci-irq-affinity-agent/debian/deb_folder/source/format b/utilities/pci-irq-affinity-agent/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/utilities/pci-irq-affinity-agent/debian/meta_data.yaml b/utilities/pci-irq-affinity-agent/debian/meta_data.yaml new file mode 100644 index 00000000..ccae67f7 --- /dev/null +++ b/utilities/pci-irq-affinity-agent/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: pci-irq-affinity-agent +debver: 1.0-1 +src_path: pci_irq_affinity +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true