metal/mtce-control/debian/deb_folder/rules
Chuck Short 3cdebf7c62 debian: Simplify mtce-control 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-control.service

Story: 2009101
Task: 43023

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I3863042357257ffbcfaf8084da2f44853e0b6264
2022-03-10 19:02:35 +00:00

19 lines
336 B
Makefile

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
%:
dh $@
override_dh_auto_install:
$(MAKE) buildroot=$(ROOT) \
_sysconfdir=/etc \
_unitdir=/lib/systemd/system \
_datarootdir=/usr/share \
install
dh_install
override_dh_installsystemd:
dh_installsystemd -pmtce-control --name hbsAgent hbsAgent.service