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 <charles.short@windriver.com>
Change-Id: I665f36f2d3d2b4664f906e4683fc275b4ad1682a
This commit is contained in:
Charles Short 2021-08-25 13:47:29 -04:00
parent ac3971e337
commit ac8b4e94d7
9 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,5 @@
usr/lib/ocf/resource.d
etc/init.d
lib/systemd/system
etc/logrotate.d
etc/syslog-ng/conf.d

View File

@ -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

View File

@ -0,0 +1,5 @@
cert-alarm (1.0-1) unstable; urgency=medium
* Initial release.
-- Charles Short <charles.short@windriver.com> Tue, 24 Aug 2021 17:20:49 +0000

View File

@ -0,0 +1,14 @@
Source: cert-alarm
Section: admin
Priority: optional
Maintainer: Starlingx Developers <starlingx-discuss@lists.starlingx.io>
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.

View File

@ -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'.

View File

@ -0,0 +1 @@
cert-alarm_1.0_source.buildinfo admin optional

View File

@ -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

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,7 @@
---
debname: cert-alarm
debver: 1.0
src_path: files
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true