ha/service-mgmt-api/debian/deb_folder/rules
Leonardo Fagundes Luz Serrano f58f11ccba Debian: Remove conf files from etc-pmon.d
Removed conf files from /etc/pmon.d/
as they are being moved to another location.

This is part of an effort to allow pmon conf files
to be selected at runtime by kickstarts.

The change is debian-only, since centos support
will be dropped soon.
Centos' pmon conf files remain in /etc/pmon.d/

Test Plan:
PASS - deb doesn't install anything to /etc/pmon.d/
PASS - rpm files unchanged
PASS - AIOSX unlocked-enabled-available
PASS - Standard 2+2 unlocked-enabled-available

Story: 2010211
Task: 46304

Depends-On: https://review.opendev.org/c/starlingx/metal/+/855095

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Ie2f8e73f8664746d0213e98bba17e56d98d93b4f
2022-09-26 13:40:41 +00:00

39 lines
992 B
Makefile
Executable File

#!/usr/bin/make -f
export PYBUILD_NAME=sm-api
ROOT := debian/tmp
PMONDIR := usr/share/starlingx/pmon.d
%:
dh $@ --with python3 --buildsystem=pybuild
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
echo "No tests to run."
endif
override_dh_install:
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp
python3 setup.py bdist_wheel \
--universal \
-d $(CURDIR)/debian/sm-api-wheels/usr/share/python3-wheels
install -d $(ROOT)/etc/sm
install -d $(ROOT)/etc/init.d
install -d $(ROOT)/$(PMONDIR)
install -d $(ROOT)/lib/systemd/system/
install -m 755 -p -D scripts/sm-api $(ROOT)/etc/init.d
install -m 644 -p -D scripts/sm_api.ini $(ROOT)/etc/sm
install -m 644 -p -D scripts/sm-api.conf $(ROOT)/$(PMONDIR)
install -m 644 -p -D scripts/sm-api.service $(ROOT)/lib/systemd/system/
dh_install
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
override_dh_installsystemd:
dh_installsystemd -psm-api sm-api.service