
To guarantee the helm chart version is incremented when a helm chart change is submitted, a top level hierarchy for helm charts to differentiate between upstream and custom charts: helm-charts/{custom,upstream}, has been created. For auditd app, only the "helm-charts/custom" directory fits this app where the tarball is platform owned. Test Plan: PASS - Successfully built packages generating the helm chart and the application tarball. PASS - Verified that the app tarball version was incremented by 1. PASS - Verified basic application lifecycle operations: upload/apply/remove/delete. PASS - Verified the auditd container is running and the audit logs are updated with new events that can be viewed on the host. Story: 2010929 Task: 50330 Change-Id: If72f6c765139a60117a56b898c5c11d71c735597 Signed-off-by: Carmen Rata <carmen.rata@windriver.com>
29 lines
688 B
Makefile
Executable File
29 lines
688 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export ROOT = debian/tmp
|
|
export APP_FOLDER = $(ROOT)/usr/lib/helm
|
|
|
|
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
|
export RELEASE = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
|
|
export REVISION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
|
export CHART_VERSION = $(RELEASE).$(REVISION)
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# Create the TGZ file.
|
|
mkdir -p build
|
|
mv Makefile audit build
|
|
|
|
# Build the chart
|
|
cd build && make CHART_VERSION=$(CHART_VERSION) audit
|
|
|
|
override_dh_auto_install:
|
|
install -d -m 755 $(APP_FOLDER)
|
|
install -p -D -m 755 build/audit*.tgz $(APP_FOLDER)
|
|
|
|
override_dh_auto_test:
|
|
|