From b23d4c84c2f24f5c53c44b460752fcead2d1c8e7 Mon Sep 17 00:00:00 2001 From: Andre Fernando Zanella Kantek Date: Tue, 24 May 2022 11:43:55 -0300 Subject: [PATCH] Debian: add package k8s-cni-cache-cleanup build files This change adds the package k8s-cni-cache-cleanup to StarlingX's Debian build Test Plan: PASS build Debian ISO PASS install AIO-SX Debian ISO PASS Check package k8s-cni-cache-cleanup is present PASS Check presence of script /usr/local/sbin/k8s-cni-cache-cleanup Story: 2009965 Task: 45461 Signed-off-by: Andre Fernando Zanella Kantek Change-Id: I277937ad1be326f75c3b5fc01a30e775a7b9ca0a --- debian_pkg_dirs | 1 + .../debian/deb_folder/changelog | 5 ++++ .../debian/deb_folder/control | 13 +++++++++ .../debian/deb_folder/copyright | 27 +++++++++++++++++++ .../deb_folder/k8s-cni-cache-cleanup.dirs | 1 + .../deb_folder/k8s-cni-cache-cleanup.install | 1 + .../k8s-cni-cache-cleanup.lintian-overrides | 2 ++ .../debian/deb_folder/rules | 25 +++++++++++++++++ .../debian/deb_folder/source/format | 1 + .../debian/meta_data.yaml | 7 +++++ 10 files changed, 83 insertions(+) create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/changelog create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/control create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/copyright create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.dirs create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.install create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.lintian-overrides create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/rules create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/source/format create mode 100644 kubernetes/k8s-cni-cache-cleanup/debian/meta_data.yaml diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 30b3f485d..b9a5b9b75 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -53,6 +53,7 @@ kubernetes/crictl kubernetes/docker-distribution kubernetes/etcd kubernetes/helm +kubernetes/k8s-cni-cache-cleanup kubernetes/k8s-pod-recovery kubernetes/kubernetes-1.21.8 kubernetes/kubernetes-unversioned diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/changelog b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/changelog new file mode 100644 index 000000000..590d45086 --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +k8s-cni-cache-cleanup (1.0-1) unstable; urgency=medium + + * Initial release + + -- Andre Kantek Wed, 24 May 2022 08:50:58 -0300 diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/control b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/control new file mode 100644 index 000000000..a787c4316 --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/control @@ -0,0 +1,13 @@ +Source: k8s-cni-cache-cleanup +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.4.1 +Homepage: https://www.starlingx.io + +Package: k8s-cni-cache-cleanup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: StarlingX k8s-cni-cache-cleanup script + Package with k8s-cni-cache-cleanup script diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/copyright b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/copyright new file mode 100644 index 000000000..90cd8adca --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: k8s-cni-cache-cleanup +Source: https://opendev.org/starlingx/config-files + +Files: * +Copyright: (c) 2013-2022 Wind River Systems, Inc +License: Apache-2 + +Files: debian/* +Copyright: 2022 Wind River Systems, Inc +License: Apache-2 + +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'. \ No newline at end of file diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.dirs b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.dirs new file mode 100644 index 000000000..058d91b05 --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.dirs @@ -0,0 +1 @@ +usr/local/sbin \ No newline at end of file diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.install b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.install new file mode 100644 index 000000000..b1f82841d --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.install @@ -0,0 +1 @@ +usr/local/sbin/k8s-cni-cache-cleanup diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.lintian-overrides b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.lintian-overrides new file mode 100644 index 000000000..184f14509 --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/k8s-cni-cache-cleanup.lintian-overrides @@ -0,0 +1,2 @@ +file-in-usr-local +dir-in-usr-local diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/rules b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/rules new file mode 100644 index 000000000..a8b3801ed --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# Copyright (c) 2022 Wind River Systems, Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +#export DH_VERBOSE = 1 + +DEBIAN_DESTDIR := $(CURDIR)/debian/tmp + +%: + dh $@ + +override_dh_auto_test: + echo + +override_dh_auto_install: + echo + +override_dh_install: + install -d ${DEBIAN_DESTDIR}/usr/local/sbin + install -m 755 k8s-cni-cache-cleanup ${DEBIAN_DESTDIR}/usr/local/sbin/k8s-cni-cache-cleanup + dh_install + +override_dh_usrlocal: + echo diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/source/format b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/kubernetes/k8s-cni-cache-cleanup/debian/meta_data.yaml b/kubernetes/k8s-cni-cache-cleanup/debian/meta_data.yaml new file mode 100644 index 000000000..8e1a4b2cd --- /dev/null +++ b/kubernetes/k8s-cni-cache-cleanup/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: k8s-cni-cache-cleanup +debver: 1.0-1 +src_path: centos/files +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true