
Updating portieris for auto chart version incrementation. Restructuring debian packaging, and separating portieris-certs into a new package. Test Plan: PASS Validate each chart builds from a clean build env PASS Validate application tarball is created correctly PASS Validate chart version increments by 1 for each change PASS Validate application cycle (upload/apply/remove/delete) for AIO-SX Story: 2010929 Task: 50225 Change-Id: I8e6ce77b779f6c7ef4d4bad60f77e13cba53d867 Signed-off-by: Tae Park <tae.park@windriver.com>
23 lines
664 B
Makefile
Executable File
23 lines
664 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
|
export PATCH_VERSION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
|
export PORTIERIS_BASE_VERSION = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
|
|
export PORTIERIS_VERSION = $(PORTIERIS_BASE_VERSION).$(PATCH_VERSION)
|
|
|
|
export ROOT = debian/tmp
|
|
export CHART_FOLDER = $(ROOT)/usr/lib/helm
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
|
|
make CHART_VERSION=$(PORTIERIS_VERSION) portieris-certs
|
|
|
|
override_dh_auto_install:
|
|
# Install the app tar file.
|
|
install -d -m 755 $(CHART_FOLDER)
|
|
install -p -D -m 755 portieris-certs*.tgz $(CHART_FOLDER)
|