config/config-gate/debian/deb_folder/rules
Chuck Short 01a6f9880b debian: Fix config-gate packaging
This commit does several things at once:

- Ensures that the config.service starts
- Ensures that the preset are installed when the
  packages are installed.

Test Plan
PASS Build packaage
PASS Build and Install ISO
PASS Ensure config.service is enabled.

Story: 2009101
Task: 44678

Depends-On: https://review.opendev.org/c/starlingx/integ/+/831950

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: Ice4cb8e1139b73fe63d12253d8d3a86b0fa3dd80
2022-03-08 20:19:15 +00:00

17 lines
395 B
Makefile
Executable File

#!/usr/bin/make -f
#export DH_VERBOSE = 1
%:
dh $@
override_dh_auto_build:
: # Nothing to build
override_dh_auto_install:
$(MAKE) SBINDIR=`pwd`/debian/tmp/usr/sbin \
SYSTEMDDIR=`pwd`/debian/tmp/lib/systemd/system install
override_dh_installsystemd:
dh_installsystemd -pconfig-gate-worker --no-start worker-config-gate.service
dh_installsystemd -pconfig-gate --no-start config.service