void-packages/srcpkgs/vault/template

38 lines
1.3 KiB
Bash

# Template file for 'vault'
pkgname=vault
version=1.2.3
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=b9f909b613d53ae591a5b91a4862c750aaf59e87592b1a74b4c4651c0b5790e3
system_accounts="_vault"
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="fails in yarn when building v8";;
esac
broken="https://build.voidlinux.org/builders/i686_builder/builds/25404/steps/shell_3/logs/stdio"
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
}