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
This commit is contained in:
parent
710452d2e5
commit
3cdebf7c62
@ -2,8 +2,7 @@ Source: mtce-control
|
|||||||
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,5 @@
|
|||||||
etc/init.d/goenabledControl
|
etc/init.d/goenabledControl
|
||||||
etc/init.d/hbsAgent
|
etc/init.d/hbsAgent
|
||||||
etc/pmon.d/hbsAgent.conf
|
etc/pmon.d/hbsAgent.conf
|
||||||
|
lib/systemd/system/hbsAgent.service
|
||||||
|
debian/systemd/00-mtce-control.preset etc/systemd/system-preset
|
||||||
|
1
mtce-control/debian/deb_folder/not-installed
Normal file
1
mtce-control/debian/deb_folder/not-installed
Normal file
@ -0,0 +1 @@
|
|||||||
|
/usr/share/licenses/mtce-control-1.0/LICENSE
|
@ -2,18 +2,17 @@
|
|||||||
# export DH_VERBOSE = 1
|
# export DH_VERBOSE = 1
|
||||||
|
|
||||||
export ROOT = debian/tmp
|
export ROOT = debian/tmp
|
||||||
export INITDIR = $(ROOT)/etc/init.d
|
|
||||||
export PMONDIR = $(ROOT)/etc/pmon.d
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
install -m 755 -d $(INITDIR)
|
$(MAKE) buildroot=$(ROOT) \
|
||||||
install -m 755 -p -D scripts/goenabled $(INITDIR)/goenabledControl
|
_sysconfdir=/etc \
|
||||||
install -m 755 -p -D scripts/hbsAgent $(INITDIR)
|
_unitdir=/lib/systemd/system \
|
||||||
install -m 755 -d $(PMONDIR)
|
_datarootdir=/usr/share \
|
||||||
install -m 644 -p -D scripts/hbsAgent.conf $(PMONDIR)
|
install
|
||||||
|
dh_install
|
||||||
|
|
||||||
override_dh_installsystemd:
|
override_dh_installsystemd:
|
||||||
dh_installsystemd --name hbsAgent
|
dh_installsystemd -pmtce-control --name hbsAgent hbsAgent.service
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
enable hbsAgent.service
|
Loading…
Reference in New Issue
Block a user