Add debian package for sysinv-fpga-agent

Add debian packaging infrastructure for sysinv-fpga-agent
so we can create a debian packaging from it.

Also update the directory structure due to the limitations
of the STX tool. Update the centos build information to
reflect the new directory structure.

Story: 2009101
Task: 43089

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Idd85bd198cfd44b08f545122d2a6210f24801008
This commit is contained in:
Charles Short 2021-08-25 14:23:45 -04:00
parent 767278b5cb
commit 30c8c1423b
10 changed files with 110 additions and 0 deletions

View File

@ -1,4 +1,5 @@
controllerconfig controllerconfig
sysinv/cgts-client sysinv/cgts-client
sysinv/sysinv-fpga-agent
sysinv/sysinv sysinv/sysinv
tsconfig tsconfig

View File

@ -0,0 +1,5 @@
sysinv-fpga-agent (1.0-1) unstable; urgency=medium
* Initial release.
-- Charles Short <charles.short@windriver.com> Tue, 24 Aug 2021 14:37:44 -0400

View File

@ -0,0 +1,13 @@
Source: sysinv-fpga-agent
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: sysinv-fpga-agent
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate, rsyslog
Description: StarlingX FPGA agent monitor
Startup Scripts for StarlingX FPGA agent monitor

View File

@ -0,0 +1,43 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: sysinv-fpga-agent
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,22 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
ROOT := $(CURDIR)/debian/tmp
%:
dh $@
override_dh_install:
install -p -D -m 755 sysinv-fpga-agent ${ROOT}/etc/init.d/sysinv-fpga-agent
install -p -D -m 644 sysinv-fpga-agent.conf ${ROOT}/etc/pmon.d/sysinv-fpga-agent.conf
install -p -D -m 644 sysinv-fpga-agent.service ${ROOT}/lib/systemd/system/sysinv-fpga-agent.service
install -p -D -m 644 sysinv-conf-watcher.service ${ROOT}/lib/systemd/system/sysinv-conf-watcher.service
install -p -D -m 644 sysinv-conf-watcher.path ${ROOT}/lib/systemd/system/sysinv-conf-watcher.path
dh_install
override_dh_usrlocal:
# do nothing
override_dh_installsystemd:
dh_installsystemd --name=sysinv-fpga-agent.service
dh_installsystemd --name=sysinv-fpga-watcher.service

View File

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

View File

@ -0,0 +1,2 @@
etc/init.d
etc/pmond.d

View File

@ -0,0 +1,5 @@
etc/init.d/sysinv-fpga-agent
etc/pmon.d/sysinv-fpga-agent.conf
lib/systemd/system/sysinv-fpga-agent.service
lib/systemd/system/sysinv-conf-watcher.service
lib/systemd/system/sysinv-conf-watcher.path

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -x
PKG_BUILD_NAME=$1
PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME})
STX_BASE=$(realpath ${MY_REPO}/stx)
SRC=$(realpath ${STX_BASE}/config/sysinv/sysinv-fpga-agent)
mkdir ${PKG_BUILD_NAME}
pushd ${PKG_BUILD_NAME} || exit
cp -pr ${SRC}/{LICENSE,sysinv-*} ${PKG_BUILD_ROOT}/

View File

@ -0,0 +1,7 @@
---
debname: sysinv-fpga-agent
debver: 1.0
dl_hook: dl_hook
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true