Add debian package for kube-cpusets
Add debian packaging infrastructure for kube-cpusets to build a debian package. Verification: - built pkg - built image - same contents and permissions as RPM Story: 2009101 Task: 43958 Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Change-Id: I84e5fa52023546fea7c41c3a8474037aa9fe5936
This commit is contained in:
parent
821aff9947
commit
bc74326dc0
5
kube-cpusets/debian/deb_folder/changelog
Normal file
5
kube-cpusets/debian/deb_folder/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
kube-cpusets (1.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Thu, 11 Nov 2021 17:23:08 -0300
|
27
kube-cpusets/debian/deb_folder/control
Normal file
27
kube-cpusets/debian/deb_folder/control
Normal file
@ -0,0 +1,27 @@
|
||||
Source: kube-cpusets
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
dh-python,
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
python3-wheel
|
||||
Build-Depends-Indep:
|
||||
python3-prettytable,
|
||||
Standards-Version: 4.1.2
|
||||
Homepage: https://www.starlingx.io
|
||||
|
||||
Package: kube-cpusets
|
||||
Architecture: all
|
||||
Depends: ${python3:Depends}, ${misc:Depends},
|
||||
python3-prettytable,
|
||||
Description: Display kubernetes containers cpusets per numa-node
|
||||
This is the python3 version of the package.
|
||||
|
||||
Package: kube-cpusets-wheels
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
Description: Contains python wheels for kube-cpusets
|
||||
This is the support package for the PEP 427 wheel version of the package,
|
||||
required for using pip inside a virtual environment.
|
45
kube-cpusets/debian/deb_folder/copyright
Normal file
45
kube-cpusets/debian/deb_folder/copyright
Normal file
@ -0,0 +1,45 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: kube-cpusets
|
||||
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Source: https://opendev.org/starlingx/utilities
|
||||
|
||||
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'.
|
||||
|
2
kube-cpusets/debian/deb_folder/kube-cpusets.install
Normal file
2
kube-cpusets/debian/deb_folder/kube-cpusets.install
Normal file
@ -0,0 +1,2 @@
|
||||
usr/bin/kube-cpusets
|
||||
usr/lib/python*/dist-packages/*
|
18
kube-cpusets/debian/deb_folder/rules
Executable file
18
kube-cpusets/debian/deb_folder/rules
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export PYBUILD_NAME=kube-cpusets
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp
|
||||
|
||||
python3 setup.py bdist_wheel \
|
||||
--universal \
|
||||
-d $(CURDIR)/debian/kube-cpusets-wheels/usr/share/python3-wheels
|
||||
|
||||
dh_install
|
||||
|
||||
override_dh_python3:
|
||||
dh_python3 --shebang=/usr/bin/python3
|
1
kube-cpusets/debian/deb_folder/source/format
Normal file
1
kube-cpusets/debian/deb_folder/source/format
Normal file
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
1
kube-cpusets/debian/deb_folder/source/options
Normal file
1
kube-cpusets/debian/deb_folder/source/options
Normal file
@ -0,0 +1 @@
|
||||
extend-diff-ignore = "^[^/]*[.]egg-info/"
|
7
kube-cpusets/debian/meta_data.yaml
Normal file
7
kube-cpusets/debian/meta_data.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
debname: kube-cpusets
|
||||
debver: 1.0-1
|
||||
src_path: kube-cpusets
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
Loading…
Reference in New Issue
Block a user