From 58e8cc958bf49432e76d5713f9356b7fe045f9db Mon Sep 17 00:00:00 2001 From: Noel Cower Date: Tue, 13 Aug 2019 16:05:15 -0700 Subject: [PATCH] vault: update to 1.2.2. Adds support for building the UI. Due the yarn dependency, this may restrict building on some architectures. --- srcpkgs/vault/template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template index c7d6e7cbaf6..54536a64296 100644 --- a/srcpkgs/vault/template +++ b/srcpkgs/vault/template @@ -1,19 +1,29 @@ # Template file for 'vault' pkgname=vault -version=1.2.0 +version=1.2.2 revision=1 build_style=go go_import_path="github.com/hashicorp/${pkgname}" +go_build_tags="ui release" +_git_commit=e16495da552c996068e05574cddf69875199f949 +go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}" conf_files="/etc/vault.hcl" make_dirs="/var/lib/vault 0700 _vault _vault" +hostmakedepends="git nodejs-lts python yarn" short_desc="Tool for securely accessing secrets" maintainer="iaroki " license="MPL-2.0" homepage="https://www.vaultproject.io/" distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz" -checksum=9ec2b23d7f6fd16909dd409a15e0da52235ac4f0c7e1903e6cfb5de9308cab4d +checksum=3f9b20dc97813ccc019fadf370f322362890feb65cb3a633783bf039ffc6aabe system_accounts="_vault" +pre_build() { + vsed -i Makefile -e "s@(find \. -name '\*\.go' | grep -v pb\.go | grep -v vendor)@(find . -name '*.go' | grep -v pb.go | grep -v vendor | grep -v ./_build-)@" + local depbin="${wrksrc}/_build-depbin" + GOOS= GOARCH= CGO_ENABLED=0 PATH="$depbin:$PATH" GOBIN="$depbin" make bootstrap ember-dist static-assets +} + post_install() { vinstall ${FILESDIR}/vault.hcl 644 etc/ vlicense LICENSE