From ac8b4e94d799dc1831c7c8dde471a8e3d031898a Mon Sep 17 00:00:00 2001 From: Charles Short Date: Wed, 25 Aug 2021 13:47:29 -0400 Subject: [PATCH] Add debian package for cert-alarm Add debian packaging infrastructure for cert-alarm to build a debian package. Story: 2009101 Task: 43087 Signed-off-by: Charles Short Change-Id: I665f36f2d3d2b4664f906e4683fc275b4ad1682a --- .../debian/deb_folder/cert-alarm.dirs | 5 +++ .../debian/deb_folder/cert-alarm.install | 4 ++ sysinv/cert-alarm/debian/deb_folder/changelog | 5 +++ sysinv/cert-alarm/debian/deb_folder/control | 14 ++++++ sysinv/cert-alarm/debian/deb_folder/copyright | 43 +++++++++++++++++++ sysinv/cert-alarm/debian/deb_folder/files | 1 + sysinv/cert-alarm/debian/deb_folder/rules | 14 ++++++ .../debian/deb_folder/source/format | 1 + sysinv/cert-alarm/debian/meta_data.yaml | 7 +++ 9 files changed, 94 insertions(+) create mode 100644 sysinv/cert-alarm/debian/deb_folder/cert-alarm.dirs create mode 100644 sysinv/cert-alarm/debian/deb_folder/cert-alarm.install create mode 100644 sysinv/cert-alarm/debian/deb_folder/changelog create mode 100644 sysinv/cert-alarm/debian/deb_folder/control create mode 100644 sysinv/cert-alarm/debian/deb_folder/copyright create mode 100644 sysinv/cert-alarm/debian/deb_folder/files create mode 100755 sysinv/cert-alarm/debian/deb_folder/rules create mode 100644 sysinv/cert-alarm/debian/deb_folder/source/format create mode 100644 sysinv/cert-alarm/debian/meta_data.yaml diff --git a/sysinv/cert-alarm/debian/deb_folder/cert-alarm.dirs b/sysinv/cert-alarm/debian/deb_folder/cert-alarm.dirs new file mode 100644 index 0000000000..be2a6c6dd6 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/cert-alarm.dirs @@ -0,0 +1,5 @@ +usr/lib/ocf/resource.d +etc/init.d +lib/systemd/system +etc/logrotate.d +etc/syslog-ng/conf.d diff --git a/sysinv/cert-alarm/debian/deb_folder/cert-alarm.install b/sysinv/cert-alarm/debian/deb_folder/cert-alarm.install new file mode 100644 index 0000000000..5fd351cba5 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/cert-alarm.install @@ -0,0 +1,4 @@ +usr/lib/ocf/resource.d/platform/cert-alarm +lib/systemd/system/cert-alarm.service +etc/syslog-ng/conf.d/cert-alarm.conf +etc/logrotate.d/cert-alarm.conf diff --git a/sysinv/cert-alarm/debian/deb_folder/changelog b/sysinv/cert-alarm/debian/deb_folder/changelog new file mode 100644 index 0000000000..78de416878 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +cert-alarm (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Charles Short Tue, 24 Aug 2021 17:20:49 +0000 diff --git a/sysinv/cert-alarm/debian/deb_folder/control b/sysinv/cert-alarm/debian/deb_folder/control new file mode 100644 index 0000000000..d011d22f30 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/control @@ -0,0 +1,14 @@ +Source: cert-alarm +Section: admin +Priority: optional +Maintainer: Starlingx Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Rules-Requires-Root: no + +Package: cert-alarm +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate, rsyslog +Description: Starlingx certificate alarm + Manages the StarlingX's platform system certificate alarm + process as a HA resource. diff --git a/sysinv/cert-alarm/debian/deb_folder/copyright b/sysinv/cert-alarm/debian/deb_folder/copyright new file mode 100644 index 0000000000..4df650cafb --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/copyright @@ -0,0 +1,43 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cert-alarm +Source: https://opendev.org/starlingx/config + +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/sysinv/cert-alarm/debian/deb_folder/files b/sysinv/cert-alarm/debian/deb_folder/files new file mode 100644 index 0000000000..9634b5c181 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/files @@ -0,0 +1 @@ +cert-alarm_1.0_source.buildinfo admin optional diff --git a/sysinv/cert-alarm/debian/deb_folder/rules b/sysinv/cert-alarm/debian/deb_folder/rules new file mode 100755 index 0000000000..bcda41706f --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +ROOT := $(CURDIR)/debian/tmp + +%: + dh $@ + +override_dh_install: + install -m 755 -p -D cert-alarm ${ROOT}/usr/lib/ocf/resource.d/platform/cert-alarm + install -m 644 -p -D cert-alarm.service ${ROOT}/lib/systemd/system/cert-alarm.service + install -m 644 -p -D cert-alarm.syslog ${ROOT}/etc/syslog-ng/conf.d/cert-alarm.conf + install -m 644 -p -D cert-alarm.logrotate ${ROOT}/etc/logrotate.d/cert-alarm.conf + dh_install diff --git a/sysinv/cert-alarm/debian/deb_folder/source/format b/sysinv/cert-alarm/debian/deb_folder/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/sysinv/cert-alarm/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sysinv/cert-alarm/debian/meta_data.yaml b/sysinv/cert-alarm/debian/meta_data.yaml new file mode 100644 index 0000000000..d13029583a --- /dev/null +++ b/sysinv/cert-alarm/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: cert-alarm +debver: 1.0 +src_path: files +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true