From 9ce981bc35d25ef4673d5c4d723e9eb5b49b9da0 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Mon, 11 Sep 2023 13:30:02 -0400 Subject: [PATCH] Add apt-ostree Debian package Apt-ostree is a hybrid image/package management system that leverages Ostree. Test Plan PASS Build/install Debian package. PASS Build ISO PASS Run install PASS Run apt-ostree version. Story: 2010867 Task: 48556 Depends-On: https://review.opendev.org/c/starlingx/tools/+/894566 Change-Id: I2bd6104660e4b384b5bc7d83d09332ef68888438 Signed-off-by: Charles Short --- apt-ostree/debian/deb_folder/changelog | 5 +++ apt-ostree/debian/deb_folder/control | 43 +++++++++++++++++++++ apt-ostree/debian/deb_folder/copyright | 42 ++++++++++++++++++++ apt-ostree/debian/deb_folder/rules | 11 ++++++ apt-ostree/debian/deb_folder/source/format | 1 + apt-ostree/debian/deb_folder/source/options | 1 + apt-ostree/debian/meta_data.yaml | 11 ++++++ debian_iso_image.inc | 3 ++ debian_pkg_dirs | 1 + 9 files changed, 118 insertions(+) create mode 100644 apt-ostree/debian/deb_folder/changelog create mode 100644 apt-ostree/debian/deb_folder/control create mode 100644 apt-ostree/debian/deb_folder/copyright create mode 100755 apt-ostree/debian/deb_folder/rules create mode 100644 apt-ostree/debian/deb_folder/source/format create mode 100644 apt-ostree/debian/deb_folder/source/options create mode 100644 apt-ostree/debian/meta_data.yaml diff --git a/apt-ostree/debian/deb_folder/changelog b/apt-ostree/debian/deb_folder/changelog new file mode 100644 index 00000000..aeaca561 --- /dev/null +++ b/apt-ostree/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +apt-ostree (0.1-1) UNRELEASED; urgency=medium + + * Initial release. + + -- Chuck Short Tue, 25 Jul 2023 10:51:26 -0400 diff --git a/apt-ostree/debian/deb_folder/control b/apt-ostree/debian/deb_folder/control new file mode 100644 index 00000000..4d597288 --- /dev/null +++ b/apt-ostree/debian/deb_folder/control @@ -0,0 +1,43 @@ +Source: apt-ostree +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + dh-sequence-python3, + python3-setuptools, + python3-all, + python3-pbr, + python3-click, + python3-oslotest +Standards-Version: 4.6.2 +Homepage: https://opendev.org/starlingx/apt-ostree + +Package: python3-apt-ostree +Architecture: all +Depends: + ${python3:Depends}, + ${misc:Depends}, + python3-apt, + python3-click, + python3-rich, + bubblewrap, + reprepro, +Suggests: + python-apt-ostree-doc, +Description: Hybrid Image/Package management system + Hybrid image/package management system. + . + This package installs the library for Python 3. + +Package: python-apt-ostree-doc +Section: doc +Architecture: all +Depends: + ${sphinxdoc:Depends}, + ${misc:Depends}, +Description: Hybrid Image/package management system documentation + Hybrid package management system. + . + This is the common documentation package. diff --git a/apt-ostree/debian/deb_folder/copyright b/apt-ostree/debian/deb_folder/copyright new file mode 100644 index 00000000..fd1d3c1d --- /dev/null +++ b/apt-ostree/debian/deb_folder/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: apt-ostree +Source: https://opendev.org/starlingx/apt-ostree + +Files: * +Copyright: (c) 2023 Wind River Systems, Inc + 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: 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/apt-ostree/debian/deb_folder/rules b/apt-ostree/debian/deb_folder/rules new file mode 100755 index 00000000..2834c844 --- /dev/null +++ b/apt-ostree/debian/deb_folder/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +# See debhelper(7) (uncomment to enable). +# Output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=apt-ostree + +%: + dh $@ --buildsystem=pybuild + diff --git a/apt-ostree/debian/deb_folder/source/format b/apt-ostree/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/apt-ostree/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/apt-ostree/debian/deb_folder/source/options b/apt-ostree/debian/deb_folder/source/options new file mode 100644 index 00000000..cb61fa52 --- /dev/null +++ b/apt-ostree/debian/deb_folder/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/apt-ostree/debian/meta_data.yaml b/apt-ostree/debian/meta_data.yaml new file mode 100644 index 00000000..a69d635d --- /dev/null +++ b/apt-ostree/debian/meta_data.yaml @@ -0,0 +1,11 @@ +--- +debname: apt-ostree +debver: 0.1 +dl_path: + name: apt-ostree-0.1.tar.gz + url: https://opendev.org/starlingx/apt-ostree/archive/master.tar.gz + sha256sum: fce21e398e487332eb9f8d6260f4a3a69b24b0b1f529fbdaea3fdbda39e512ad + md5sum: 2dcd6c491696109a0fc267318917bef0 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/debian_iso_image.inc b/debian_iso_image.inc index f202fab4..c8701f4c 100644 --- a/debian_iso_image.inc +++ b/debian_iso_image.inc @@ -1,5 +1,8 @@ # List of packages to be included/installed in ISO +#apt-ostree +python3-apt-ostree + #cgcs-patch cgcs-patch-agent cgcs-patch-controller diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 27986947..7cf3eea2 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -1,3 +1,4 @@ +apt-ostree enable-dev-patch patch-alarm software