There are 2 duplicated LICESE files in mtce-control, mtce-compute, and mtce-storage. Additionally, LICENSE was not placed in the root directory of src RPM, so this patch is made as an enhancement or fix. After this change, license file location and code structure in all 4 modules (mtce-common, mtce-compute, mtce-storage and mtce-control) will be the same. Test method: make a clean build and check src RPM and binary RPM to assure there is only one LICENSE in correct place. Story: 2004186 Task: 27676 Change-Id: Id71a7450e8b45438c5d15976ae8e853b9ba8f4f5 Signed-off-by: Yong Hu <yong.hu@intel.com>
26 lines
938 B
Makefile
Executable File
26 lines
938 B
Makefile
Executable File
SOURCE1 = goenabled
|
|
SOURCE2 = goenabled-storage.service
|
|
SOURCE3 = LICENSE
|
|
|
|
local_etc_pmond = $(_sysconfdir)/pmond.d
|
|
local_etc_goenabledd = $(_sysconfdir)/goenabled.d
|
|
local_etc_servicesd = $(_sysconfdir)/services.d
|
|
|
|
.PHONY: default
|
|
|
|
install:
|
|
# Storage-Only Init Scripts
|
|
install -m 755 -p -D scripts/$(SOURCE1) $(buildroot)/$(_sysconfdir)/init.d/goenabledStorage
|
|
# Storage-Only Process Monitor Config files
|
|
install -m 755 -d $(buildroot)/$(local_etc_pmond)
|
|
# Storage-Only Go Enabled Tests
|
|
install -m 755 -d $(buildroot)/$(local_etc_goenabledd)
|
|
# Storage-Only Services
|
|
install -m 755 -d $(buildroot)/$(local_etc_servicesd)/storage
|
|
# Install systemd dir
|
|
install -m 644 -p -D scripts/$(SOURCE2) $(buildroot)/$(_unitdir)/goenabled-storage.service
|
|
# for license
|
|
install -m 755 -d $(buildroot)/$(_datarootdir)/licenses/mtce-storage-1.0
|
|
install -p -D -m 600 $(SOURCE3) $(buildroot)/$(_datarootdir)/licenses/mtce-storage-1.0/LICENSE
|
|
|