debian: Simplifying mtce-compute packaging

- Ensure that the service is started when the package
  is installed.
- Ensure that the service dependencies are started
  when the package is installed.
- Simplify debian/rules to use the Makefile in order
  to install the files that are needed.

Test Plan
PASS Build package and ISO
PASS Boot and check for goenabled-compute.service

Story: 2009101
Task: 43023

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I5f931ff1318f32c6c74782cbda2a9517b9c4efe5
This commit is contained in:
Chuck Short 2022-03-10 14:10:00 +00:00
parent 710452d2e5
commit 91c828185b
5 changed files with 13 additions and 11 deletions

View File

@ -2,8 +2,7 @@ Source: mtce-compute
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
libsystemd-dev
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io

View File

@ -1,3 +1,4 @@
etc/goenabled.d/virt-support-goenabled.sh
etc/init.d/goenabledWorker
lib/systemd/system/goenabled-worker.service
debian/systemd/00-mtce-compute.preset etc/systemd/system-preset

View File

@ -0,0 +1 @@
usr/share/licenses/mtce-compute-1.0/LICENSE

View File

@ -2,17 +2,17 @@
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export GODIR = $(ROOT)/etc/goenabled.d
export INITDIR = $(ROOT)/etc/init.d
export SYSTEMDDIR = $(ROOT)/lib/systemd/system
%:
dh $@
override_dh_auto_install:
install -m 755 -d $(GODIR)
install -m 755 -p -D scripts/virt-support-goenabled.sh $(GODIR)
install -m 755 -d $(INITDIR)
install -m 755 -p -D scripts/goenabled $(INITDIR)/goenabledWorker
install -m 755 -d $(SYSTEMDDIR)
install -m 644 -p -D scripts/goenabled-worker.service $(SYSTEMDDIR)
$(MAKE) buildroot=$(ROOT) \
_sysconfdir=/etc \
_unitdir=/lib/systemd/system \
_datarootdir=/usr/share \
install
dh_install
override_dh_installsystemd:
dh_installsystemd -pmtce-compute goenabled-worker.service

View File

@ -0,0 +1 @@
enable goenabled-worker.service