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:
parent
710452d2e5
commit
91c828185b
@ -2,8 +2,7 @@ Source: mtce-compute
|
|||||||
Section: admin
|
Section: admin
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||||
Build-Depends: debhelper-compat (= 13),
|
Build-Depends: debhelper-compat (= 13)
|
||||||
libsystemd-dev
|
|
||||||
Standards-Version: 4.5.1
|
Standards-Version: 4.5.1
|
||||||
Homepage: https://www.starlingx.io
|
Homepage: https://www.starlingx.io
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
etc/goenabled.d/virt-support-goenabled.sh
|
etc/goenabled.d/virt-support-goenabled.sh
|
||||||
etc/init.d/goenabledWorker
|
etc/init.d/goenabledWorker
|
||||||
lib/systemd/system/goenabled-worker.service
|
lib/systemd/system/goenabled-worker.service
|
||||||
|
debian/systemd/00-mtce-compute.preset etc/systemd/system-preset
|
||||||
|
1
mtce-compute/debian/deb_folder/not-installed
Normal file
1
mtce-compute/debian/deb_folder/not-installed
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/share/licenses/mtce-compute-1.0/LICENSE
|
@ -2,17 +2,17 @@
|
|||||||
# export DH_VERBOSE = 1
|
# export DH_VERBOSE = 1
|
||||||
|
|
||||||
export ROOT = debian/tmp
|
export ROOT = debian/tmp
|
||||||
export GODIR = $(ROOT)/etc/goenabled.d
|
|
||||||
export INITDIR = $(ROOT)/etc/init.d
|
|
||||||
export SYSTEMDDIR = $(ROOT)/lib/systemd/system
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
install -m 755 -d $(GODIR)
|
$(MAKE) buildroot=$(ROOT) \
|
||||||
install -m 755 -p -D scripts/virt-support-goenabled.sh $(GODIR)
|
_sysconfdir=/etc \
|
||||||
install -m 755 -d $(INITDIR)
|
_unitdir=/lib/systemd/system \
|
||||||
install -m 755 -p -D scripts/goenabled $(INITDIR)/goenabledWorker
|
_datarootdir=/usr/share \
|
||||||
install -m 755 -d $(SYSTEMDDIR)
|
install
|
||||||
install -m 644 -p -D scripts/goenabled-worker.service $(SYSTEMDDIR)
|
dh_install
|
||||||
|
|
||||||
|
override_dh_installsystemd:
|
||||||
|
dh_installsystemd -pmtce-compute goenabled-worker.service
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
enable goenabled-worker.service
|
Loading…
Reference in New Issue
Block a user