From 4cb5d17a7f3e9b4a9d10dcb188a29a43601f524d Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Mon, 22 Nov 2021 15:50:18 -0300 Subject: [PATCH] Add debian package for virt/kvm-timer-advance Add debian packaging infrastructure for virt/kvm-timer-advance to build a debian package. Verification: - build-pkgs; - build-image; - Same contents and permissions as RPM; Story: 2009101 Task: 44038 Signed-off-by: Leonardo Fagundes Luz Serrano Change-Id: Ie5574facc36c37764c988809729dd0f30347cb72 --- .../debian/deb_folder/changelog | 5 +++ .../debian/deb_folder/compat | 1 + .../debian/deb_folder/control | 16 +++++++ .../debian/deb_folder/copyright | 44 +++++++++++++++++++ .../debian/deb_folder/kvm-timer-advance.dirs | 1 + .../deb_folder/kvm-timer-advance.install | 2 + .../kvm-timer-advance/debian/deb_folder/rules | 15 +++++++ .../debian/deb_folder/source/format | 1 + virt/kvm-timer-advance/debian/meta_data.yaml | 7 +++ 9 files changed, 92 insertions(+) create mode 100644 virt/kvm-timer-advance/debian/deb_folder/changelog create mode 100644 virt/kvm-timer-advance/debian/deb_folder/compat create mode 100644 virt/kvm-timer-advance/debian/deb_folder/control create mode 100644 virt/kvm-timer-advance/debian/deb_folder/copyright create mode 100644 virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.dirs create mode 100644 virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.install create mode 100755 virt/kvm-timer-advance/debian/deb_folder/rules create mode 100644 virt/kvm-timer-advance/debian/deb_folder/source/format create mode 100644 virt/kvm-timer-advance/debian/meta_data.yaml diff --git a/virt/kvm-timer-advance/debian/deb_folder/changelog b/virt/kvm-timer-advance/debian/deb_folder/changelog new file mode 100644 index 000000000..82a0a2bb4 --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +kvm-timer-advance (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Leonardo Fagundes Luz Serrano Tue, 22 Nov 2021 16:25:51 +0000 diff --git a/virt/kvm-timer-advance/debian/deb_folder/compat b/virt/kvm-timer-advance/debian/deb_folder/compat new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/compat @@ -0,0 +1 @@ +10 diff --git a/virt/kvm-timer-advance/debian/deb_folder/control b/virt/kvm-timer-advance/debian/deb_folder/control new file mode 100644 index 000000000..2895203ed --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/control @@ -0,0 +1,16 @@ +Source: kvm-timer-advance +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper (>= 13), + libsystemd-dev +Standards-Version: 4.1.2 +Homepage: https://www.starlingx.io + +Package: kvm-timer-advance +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + qemu-kvm-tools-ev, + systemd +Description: StarlingX KVM Timer Advance Package + This package handles StarlingX KVM Timer Advance Package diff --git a/virt/kvm-timer-advance/debian/deb_folder/copyright b/virt/kvm-timer-advance/debian/deb_folder/copyright new file mode 100644 index 000000000..23b993cac --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/copyright @@ -0,0 +1,44 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kvm-timer-advance +Upstream-Contact: StarlingX Developers +Source: https://opendev.org/starlingx/integ + +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'. diff --git a/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.dirs b/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.dirs new file mode 100644 index 000000000..86cdf499d --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.dirs @@ -0,0 +1 @@ +etc/kvm_timer_advance diff --git a/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.install b/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.install new file mode 100644 index 000000000..78b41c927 --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/kvm-timer-advance.install @@ -0,0 +1,2 @@ +usr/bin/setup_kvm_timer_advance.sh +usr/lib/systemd/system/kvm_timer_advance_setup.service diff --git a/virt/kvm-timer-advance/debian/deb_folder/rules b/virt/kvm-timer-advance/debian/deb_folder/rules new file mode 100755 index 000000000..421056164 --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +ROOT := $(CURDIR)/debian/tmp + +%: + dh $@ + +override_dh_install: + install -d -m 755 $(ROOT)/etc/kvm_timer_advance + install -p -D -m 755 setup_kvm_timer_advance.sh $(ROOT)/usr/bin/setup_kvm_timer_advance.sh + install -p -D -m 444 kvm_timer_advance_setup.service $(ROOT)/usr/lib/systemd/system/kvm_timer_advance_setup.service + dh_install + +override_dh_fixperms: + dh_fixperms -Xkvm_timer_advance_setup.service diff --git a/virt/kvm-timer-advance/debian/deb_folder/source/format b/virt/kvm-timer-advance/debian/deb_folder/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/virt/kvm-timer-advance/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/virt/kvm-timer-advance/debian/meta_data.yaml b/virt/kvm-timer-advance/debian/meta_data.yaml new file mode 100644 index 000000000..febabf969 --- /dev/null +++ b/virt/kvm-timer-advance/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: kvm-timer-advance +debver: 1.0-1 +src_path: files +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true