From 3884921f23ed944124ef078db927af9041e6a7df Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Wed, 13 Oct 2021 18:18:07 +0000 Subject: [PATCH] Add debian package for stx-ocf-scripts Add debian packaging infrastructure for stx-ocf-scripts to build a debian package. Story: 2009101 Task: 43627 Signed-off-by: Leonardo Fagundes Luz Serrano Change-Id: Id5df95c29f98e2801a32b572d970e65036bc4cd7 --- stx-ocf-scripts/debian/deb_folder/changelog | 5 +++ stx-ocf-scripts/debian/deb_folder/control | 13 ++++++ stx-ocf-scripts/debian/deb_folder/copyright | 44 +++++++++++++++++++ stx-ocf-scripts/debian/deb_folder/rules | 12 +++++ .../debian/deb_folder/source/format | 1 + .../debian/deb_folder/stx-ocf-scripts.install | 2 + stx-ocf-scripts/debian/meta_data.yaml | 7 +++ 7 files changed, 84 insertions(+) create mode 100644 stx-ocf-scripts/debian/deb_folder/changelog create mode 100644 stx-ocf-scripts/debian/deb_folder/control create mode 100644 stx-ocf-scripts/debian/deb_folder/copyright create mode 100755 stx-ocf-scripts/debian/deb_folder/rules create mode 100644 stx-ocf-scripts/debian/deb_folder/source/format create mode 100644 stx-ocf-scripts/debian/deb_folder/stx-ocf-scripts.install create mode 100644 stx-ocf-scripts/debian/meta_data.yaml diff --git a/stx-ocf-scripts/debian/deb_folder/changelog b/stx-ocf-scripts/debian/deb_folder/changelog new file mode 100644 index 00000000..83c3e9ee --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +stx-ocf-scripts (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Leonardo Fagundes Luz Serrano Tue, 21 Sep 2021 19:52:46 +0000 diff --git a/stx-ocf-scripts/debian/deb_folder/control b/stx-ocf-scripts/debian/deb_folder/control new file mode 100644 index 00000000..410e9b72 --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/control @@ -0,0 +1,13 @@ +Source: stx-ocf-scripts +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Rules-Requires-Root: no + +Package: stx-ocf-scripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, openstack-resource-agents +Description: Miscellaneous OCF scripts added by StarlingX + Contains miscellaneous OCF scripts added by StarlingX diff --git a/stx-ocf-scripts/debian/deb_folder/copyright b/stx-ocf-scripts/debian/deb_folder/copyright new file mode 100644 index 00000000..ba4d7e5a --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/copyright @@ -0,0 +1,44 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: stx-ocf-scripts +Upstream-Contact: StarlingX Developers +Source: https://opendev.org/starlingx/ha + +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'. \ No newline at end of file diff --git a/stx-ocf-scripts/debian/deb_folder/rules b/stx-ocf-scripts/debian/deb_folder/rules new file mode 100755 index 00000000..6649579e --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# export DH_VERBOSE = 1 + +ROOT := $(CURDIR)/debian/tmp + +%: + dh $@ + +override_dh_install: + install -d -m 755 ${ROOT}/usr/lib/ocf/resource.d/openstack + install -p -D -m 755 ocf/* ${ROOT}/usr/lib/ocf/resource.d/openstack/ + dh_install diff --git a/stx-ocf-scripts/debian/deb_folder/source/format b/stx-ocf-scripts/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/stx-ocf-scripts/debian/deb_folder/stx-ocf-scripts.install b/stx-ocf-scripts/debian/deb_folder/stx-ocf-scripts.install new file mode 100644 index 00000000..75a60dd0 --- /dev/null +++ b/stx-ocf-scripts/debian/deb_folder/stx-ocf-scripts.install @@ -0,0 +1,2 @@ +/usr/lib/ocf/resource.d/openstack +/usr/lib/ocf/resource.d/openstack/* diff --git a/stx-ocf-scripts/debian/meta_data.yaml b/stx-ocf-scripts/debian/meta_data.yaml new file mode 100644 index 00000000..daedd1d3 --- /dev/null +++ b/stx-ocf-scripts/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: stx-ocf-scripts +debver: 1.0-1 +src_path: src +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true