707340e521
Add debian packaging infrastructure for fm-doc to build a debian package. Test Plan: PASS: Package installed and ISO built successfully Story: 2009101 Task: 44088 Signed-off-by: Ramon Gazoni Lacerda <Ramon.GazoniLacerda@windriver.com> Change-Id: If98aa5c561012e31ab67589e7d62486c58be8e4c
35 lines
917 B
Makefile
Executable File
35 lines
917 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
export DH_VERBOSE = 1
|
|
|
|
export ROOT = $(CURDIR)/debian/tmp
|
|
export CGCS_DOC_DEPLOY_DIR = $(ROOT)/opt/deploy/cgcs_doc
|
|
export CGCS_DOC_DIR = /opt/deploy/cgcs_doc
|
|
export FM_DIR = $(ROOT)/etc/fm
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_install:
|
|
|
|
install -d $(CGCS_DOC_DEPLOY_DIR)
|
|
install -m 644 events.yaml $(CGCS_DOC_DEPLOY_DIR)
|
|
install -m 755 checkEventYaml $(CGCS_DOC_DEPLOY_DIR)
|
|
install -m 644 parseEventYaml.py $(CGCS_DOC_DEPLOY_DIR)
|
|
install -m 644 check_missing_alarms.py $(CGCS_DOC_DEPLOY_DIR)
|
|
|
|
install -d $(FM_DIR)
|
|
install -m 744 events.yaml $(FM_DIR)
|
|
|
|
cd $(CGCS_DOC_DEPLOY_DIR)
|
|
cp $(CGCS_DOC_DIR)/fmAlarm.h /usr/lib/python3/dist-packages/fm_api/constants.py .
|
|
|
|
sed -i 's/python/python3/g' checkEventYaml
|
|
./checkEventYaml
|
|
|
|
rm constants.py* fmAlarm.h*
|
|
cd -
|
|
|
|
# Prevents dh_fixperms from changing the permissions defined in this file
|
|
override_dh_fixperms:
|
|
dh_fixperms --exclude etc/fm/events.yaml
|