Add Debian packaging for fm-mgr and fm-rest-api

Story: 2009101
Task: 43369

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: I6631aeb142ce2c9ccfb78cdc8e340c98b9115ce0
changes/71/810071/9
Tracey Bogue 1 year ago
parent a88cc50dab
commit 3c943a5a78
  1. 2
      debian_pkg_dirs
  2. 14
      fm-mgr/debian/control
  3. 5
      fm-mgr/debian/deb_folder/changelog
  4. 15
      fm-mgr/debian/deb_folder/control
  5. 41
      fm-mgr/debian/deb_folder/copyright
  6. 4
      fm-mgr/debian/deb_folder/fm-mgr.install
  7. 14
      fm-mgr/debian/deb_folder/rules
  8. 1
      fm-mgr/debian/deb_folder/source/format
  9. 7
      fm-mgr/debian/meta_data.yaml
  10. 6
      fm-mgr/debian/rules
  11. 6
      fm-mgr/sources/fminit
  12. 15
      fm-rest-api/debian/control
  13. 5
      fm-rest-api/debian/deb_folder/changelog
  14. 36
      fm-rest-api/debian/deb_folder/control
  15. 41
      fm-rest-api/debian/deb_folder/copyright
  16. 4
      fm-rest-api/debian/deb_folder/fm-rest-api.install
  17. 34
      fm-rest-api/debian/deb_folder/rules
  18. 1
      fm-rest-api/debian/deb_folder/source/format
  19. 7
      fm-rest-api/debian/meta_data.yaml
  20. 7
      fm-rest-api/debian/rules

@ -1,3 +1,5 @@
fm-api
python-fmclient
fm-common
fm-mgr
fm-rest-api

@ -1,14 +0,0 @@
Source: fm-mgr
Priority: optional
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper (>=9),
uuid-dev,
libsystemd-dev,
fm-common-dev
Standards-Version: 3.9.6
Package: fm-mgr
Architecture: any
Pre-Depends: ${misc:Depends},
${shlibs:Depends}
Description: This package contains StarlingX fm-mgr project.

@ -0,0 +1,5 @@
fm-mgr (1.0-1) unstable; urgency=medium
* Initial release.
-- Tracey Bogue <tracey.bogue@windriver.com> Fri, 17 Sep 2021 14:52:21 +0000

@ -0,0 +1,15 @@
Source: fm-mgr
Priority: optional
Section: libs
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13)
Build-Depends-Indep: uuid-dev, libsystemd-dev, fm-common-dev
Standards-Version: 4.5.1
Rules-Requires-Root: no
Package: fm-mgr
Section: libs
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: StarlingX Fault Manager
This package contains StarlingX fm-mgr project.

@ -0,0 +1,41 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: fm-mgr
Source: https://opendev.org/starlingx/fault
Files: *
Copyright: (c) 2013-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'.
# 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'.

@ -0,0 +1,4 @@
usr/bin/fmManager
etc/init.d/fminit
etc/logrotate.d/fm.logrotate
usr/lib/systemd/system/fminit.service lib/systemd/system

@ -0,0 +1,14 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export ROOT=debian/tmp
%:
dh $@
override_dh_auto_install:
make DESTDIR=${ROOT} \
BINDIR=/usr/bin \
LIBDIR=/usr/lib \
SYSCONFDIR=/etc \
install

@ -0,0 +1,7 @@
---
debname: fm-mgr
debver: 1.0
src_path: sources
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

@ -1,6 +0,0 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_usrlocal:

@ -10,8 +10,8 @@
#
### BEGIN INIT INFO
# Provides: fminit
# Required-Start:
# Required-Stop:
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Fault Manager
@ -104,7 +104,7 @@ case "$1" in
$0 restart
;;
*)
force-reload | *)
echo "usage: $0 { start | stop | status | restart | condrestart | status }"
;;
esac

@ -1,15 +0,0 @@
Source: fm-rest-api
Priority: optional
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
Build-Depends: python-setuptools,
python-all,
debhelper,
dh-python,
fm-common-dev
Standards-Version: 3.9.6
Package: fm-rest-api
Architecture: all
Depends: ${misc:Depends},
${python:Depends}
Description: This package contains the fm-rest-api project.

@ -0,0 +1,5 @@
fm-rest-api (1.0-1) unstable; urgency=medium
* Initial release.
-- Tracey Bogue <tracey.bogue@windriver.com> Mon, 20 Sep 2021 09:57:21 +0000

@ -0,0 +1,36 @@
Source: fm-rest-api
Priority: optional
Section: libs
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
dh-python,
python3-all,
python3-dev,
python3-fm-api,
python3-keystoneauth1,
python3-keystonemiddleware,
python3-oslo.config,
python3-oslo.db,
python3-oslo.log,
python3-oslo.messaging,
python3-oslo.middleware,
python3-oslo.policy,
python3-oslo.versionedobjects,
python3-pecan,
python3-setuptools,
python3-sqlalchemy,
python3-wsme,
tsconfig
Standards-Version: 4.5.1
Rules-Requires-Root: no
Package: fm-rest-api
Section: libs
Architecture: any
Depends: ${python3:Depends},
${misc:Depends},
python3-eventlet,
python3-webob,
python3-paste
Description: Fault Management Openstack REST API
This package contains the Openstack REST API for fault management.

@ -0,0 +1,41 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: fm-rest-api
Source: https://opendev.org/starlingx/fault
Files: *
Copyright: (c) 2013-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'.
# 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'.

@ -0,0 +1,4 @@
etc/fm/fm.conf
etc/pmon.d/fm-api.conf
etc/init.d
lib/systemd/system

@ -0,0 +1,34 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=fm-rest-api
export ROOT=debian/tmp
export FMCONFDIR=$(ROOT)/etc/fm
export PMONDDIR=$(ROOT)/etc/pmon.d
export INITDIR=$(ROOT)/etc/init.d
export UNITDIR=$(ROOT)/lib/systemd/system
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_install:
install -d -m 755 $(UNITDIR)
install -p -D -m 644 scripts/fm-api.service $(UNITDIR)/fm-api.service
install -d -m 755 $(INITDIR)
install -p -D -m 755 scripts/fm-api $(INITDIR)/fm-api
install -d -m 755 $(PMONDDIR)
install -p -D -m 644 fm-api-pmond.conf $(PMONDDIR)/fm-api.conf
oslo-config-generator --config-file fm/config-generator.conf --output-file fm.conf.sample
install -d -m 755 $(FMCONFDIR)
install -p -D -m 600 fm.conf.sample $(FMCONFDIR)/fm.conf
dh_auto_install
override_dh_fixperms:
dh_fixperms -Xfm.conf
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# (tbogue) FIXME
PYTHONDIR=$(CURDIR) stestr run || true
endif

@ -0,0 +1,7 @@
---
debname: fm-rest-api
debver: 1.0
src_path: fm
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

@ -1,7 +0,0 @@
#!/usr/bin/make -f
export PYBUILD_INSTALL_ARGS=--install-data=/usr/share --prefix=/usr
%:
dh $@ --with python2 --buildsystem=pybuild
Loading…
Cancel
Save