debian: Simplify mtce-storage packaging
- Ensure that the service is not 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-storage.service is not enabled. Story: 2009101 Task: 43023 Signed-off-by: Chuck Short <charles.short@windriver.com> Change-Id: Id9929f3ff096e319759420ef518a67aa06bc381d
This commit is contained in:
parent
710452d2e5
commit
f3142a0383
@ -2,8 +2,7 @@ Source: mtce-storage
|
||||
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
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
etc/init.d/goenabledStorage
|
||||
lib/systemd/system/goenabled-storage.service
|
||||
debian/systemd/00-mtce-storage.preset etc/systemd/systemd-preset
|
||||
|
1
mtce-storage/debian/deb_folder/not-installed
Normal file
1
mtce-storage/debian/deb_folder/not-installed
Normal file
@ -0,0 +1 @@
|
||||
usr/share/licenses/mtce-storage-1.0/LICENSE
|
@ -2,14 +2,17 @@
|
||||
# export DH_VERBOSE = 1
|
||||
|
||||
export ROOT = debian/tmp
|
||||
export INITDIR = $(ROOT)/etc/init.d
|
||||
export SYSTEMDDIR = $(ROOT)/lib/systemd/system
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_install:
|
||||
install -m 755 -d $(INITDIR)
|
||||
install -m 755 -p -D scripts/goenabled $(INITDIR)/goenabledStorage
|
||||
install -m 755 -d $(SYSTEMDDIR)
|
||||
install -m 644 -p -D scripts/goenabled-storage.service $(SYSTEMDDIR)
|
||||
$(MAKE) buildroot=$(ROOT) \
|
||||
_sysconfdir=/etc \
|
||||
_unitdir=/lib/systemd/system \
|
||||
_datarootdir=/usr/share \
|
||||
install
|
||||
dh_install
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd -pmtce-storage --no-enable
|
||||
|
@ -0,0 +1 @@
|
||||
disable goenabled-storage.service
|
Loading…
Reference in New Issue
Block a user