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:
Chuck Short 2022-03-10 14:38:44 +00:00
parent 710452d2e5
commit f3142a0383
5 changed files with 13 additions and 8 deletions

View File

@ -2,8 +2,7 @@ Source: mtce-storage
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

View File

@ -1,2 +1,3 @@
etc/init.d/goenabledStorage etc/init.d/goenabledStorage
lib/systemd/system/goenabled-storage.service lib/systemd/system/goenabled-storage.service
debian/systemd/00-mtce-storage.preset etc/systemd/systemd-preset

View File

@ -0,0 +1 @@
usr/share/licenses/mtce-storage-1.0/LICENSE

View File

@ -2,14 +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 SYSTEMDDIR = $(ROOT)/lib/systemd/system
%: %:
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)/goenabledStorage _sysconfdir=/etc \
install -m 755 -d $(SYSTEMDDIR) _unitdir=/lib/systemd/system \
install -m 644 -p -D scripts/goenabled-storage.service $(SYSTEMDDIR) _datarootdir=/usr/share \
install
dh_install
override_dh_installsystemd:
dh_installsystemd -pmtce-storage --no-enable

View File

@ -0,0 +1 @@
disable goenabled-storage.service