integ/kubernetes/helm/debian/deb_folder/rules
Tracey Bogue f98b1a5b40 Add Debian packaging for helm and chartmuseum
These packages require the following files in a local mirror:
* chartmuseum-0.12.0.tar.gz
* chartmuseum-v0.12.0-amd64
* helm-v3.2.1-linux-amd64.tar.gz

Story: 2009101
Task: 43715

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: I85c854f1fb62efa993a030fe06105bb2c0751165
2021-11-02 06:48:57 -05:00

26 lines
688 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export SBINDIR = $(ROOT)/usr/sbin
export SUDOERDIR = $(ROOT)/etc/sudoers.d
export HELM_VERSION = 3.2.1
export HELM_EXECUTABLE = linux-amd64/helm
export HELM_PKG = helm-v$(HELM_VERSION)-linux-amd64.tar.gz
%:
dh $@
override_dh_auto_build:
# Extract the third party helm package downloaded in dl_hook.
tar xfz $(HELM_PKG)
override_dh_auto_install:
install -d -m 755 $(SBINDIR)
install -p -D -m 755 $(HELM_EXECUTABLE) $(SBINDIR)
install -p -D -m 755 helm-upload $(SBINDIR)
install -p -D -m 755 helmv2-cli.sh $(SBINDIR)/helmv2-cli
install -d -m 755 $(SUDOERDIR)
install -p -D -m 440 helm.sudo $(SUDOERDIR)/helm