From c31114534179991f77356d8abe7a8ca754258c15 Mon Sep 17 00:00:00 2001 From: Matheus Machado Guilhermino Date: Fri, 28 Jan 2022 16:55:05 -0300 Subject: [PATCH] Add centos-debian-compat package to Debian This package was created to direct /ect/init.d/functions to lib/lsb/init-functions This was done to avoid altering files that are relevant to CentOS. Test Plan: PASS: Package installed and ISO built successfully Story: 2009101 Task: 44380 Signed-off-by: Matheus Machado Guilhermino Change-Id: I6738cee99337aab7c6aa669f60a5a134929ac5cf --- .../debian/deb_folder/changelog | 5 ++++ .../debian/deb_folder/control | 14 ++++++++++ .../debian/deb_folder/copyright | 27 +++++++++++++++++++ .../debian/deb_folder/postinst | 6 +++++ centos-debian-compat/debian/deb_folder/rules | 4 +++ centos-debian-compat/debian/meta_data.yaml | 7 +++++ centos-debian-compat/source/.gitignore | 0 debian_pkg_dirs | 1 + 8 files changed, 64 insertions(+) create mode 100644 centos-debian-compat/debian/deb_folder/changelog create mode 100644 centos-debian-compat/debian/deb_folder/control create mode 100644 centos-debian-compat/debian/deb_folder/copyright create mode 100644 centos-debian-compat/debian/deb_folder/postinst create mode 100644 centos-debian-compat/debian/deb_folder/rules create mode 100644 centos-debian-compat/debian/meta_data.yaml create mode 100644 centos-debian-compat/source/.gitignore diff --git a/centos-debian-compat/debian/deb_folder/changelog b/centos-debian-compat/debian/deb_folder/changelog new file mode 100644 index 000000000..eac451468 --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +centos-debian-compat (1.0) unstable; urgency=medium + + * Initial release. + + -- Matheus Guilhermino Thu, 27 Jan 2022 16:35:37 -0400 diff --git a/centos-debian-compat/debian/deb_folder/control b/centos-debian-compat/debian/deb_folder/control new file mode 100644 index 000000000..971c0ccaa --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/control @@ -0,0 +1,14 @@ +Source: centos-debian-compat +Section: admin +Priority: optional +Maintainer: Starlingx Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.4.1 +Homepage: https://www.starlingx.io + +Package: centos-debian-compat +Architecture: all +Depends: + ${misc:Depends} +Description: General compatibility adjustments + Directs from "/etc/init.d/functions" to "/lib/lsb/init-functions". diff --git a/centos-debian-compat/debian/deb_folder/copyright b/centos-debian-compat/debian/deb_folder/copyright new file mode 100644 index 000000000..43c1b831f --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: centos-debian-compat +Source: https://opendev.org/starlingx/integ/ + +Files: * +Copyright: (c) 2013-2021 Wind River Systems, Inc +License: Apache-2 + +Files: debian/* +Copyright: 2021 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'. diff --git a/centos-debian-compat/debian/deb_folder/postinst b/centos-debian-compat/debian/deb_folder/postinst new file mode 100644 index 000000000..1a917706c --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +echo "source /lib/lsb/init-functions" > /etc/init.d/functions + +#DEBHELPER# diff --git a/centos-debian-compat/debian/deb_folder/rules b/centos-debian-compat/debian/deb_folder/rules new file mode 100644 index 000000000..2d33f6ac8 --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/centos-debian-compat/debian/meta_data.yaml b/centos-debian-compat/debian/meta_data.yaml new file mode 100644 index 000000000..cf5921def --- /dev/null +++ b/centos-debian-compat/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: centos-debian-compat +debver: 1.0 +src_path: source +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/centos-debian-compat/source/.gitignore b/centos-debian-compat/source/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 960a52523..e5c43b4f0 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -8,6 +8,7 @@ base/linuxptp base/pf-bb-config base/systemd base/watchdog +centos-debian-compat config/facter config/puppet-5.5.22 config/puppet-modules/openstack/puppet-ceph-3.1.1