vault: update to 1.2.2.

Adds support for building the UI. Due the yarn dependency, this may
restrict building on some architectures.
This commit is contained in:
Noel Cower 2019-08-13 16:05:15 -07:00 committed by Helmut Pozimski
parent 869ef3ef2d
commit 58e8cc958b

View file

@ -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 <iaroki@protonmail.com>"
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