58e8cc958b
Adds support for building the UI. Due the yarn dependency, this may restrict building on some architectures.
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'vault'
|
|
pkgname=vault
|
|
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=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
|
|
vsv vault
|
|
}
|