vault: update to 1.5.4

This commit is contained in:
Michael Aldridge 2020-10-18 02:10:52 -07:00
parent 52856a530b
commit 33c24c0800
4 changed files with 22 additions and 30 deletions

13
srcpkgs/vault/INSTALL Normal file
View File

@ -0,0 +1,13 @@
case "${ACTION}" in
post)
# Set CAP_IPC_LOCK capability or exit gracefully if we cannot
# set the capability due to invalid permissions (fakeroot
# install).
set +e
setcap 'cap_ipc_lock=+ep' /usr/bin/vault
if [ $? -ne 0 ]; then
echo "ERROR: failed to set cap_ipc_lock capability on vault."
exit 0
fi
;;
esac

View File

@ -1,8 +0,0 @@
storage "file" {
path = "/var/lib/vault"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}

View File

@ -1,3 +1,3 @@
#!/bin/sh
exec chpst -u _vault vault server -config=/etc/vault.hcl
exec chpst -u _vault vault server -config=/etc/vault/

View File

@ -1,37 +1,24 @@
# Template file for 'vault'
pkgname=vault
version=1.2.3
version=1.5.4
revision=1
build_style=go
go_import_path="github.com/hashicorp/${pkgname}"
go_build_tags="ui release"
go_build_tags="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>"
hostmakedepends="git"
short_desc="Manage Secrets and Protect Sensitive Data"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MPL-2.0"
homepage="https://www.vaultproject.io/"
distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz"
checksum=b9f909b613d53ae591a5b91a4862c750aaf59e87592b1a74b4c4651c0b5790e3
checksum=99e3145a9b6f5ee6429b997f3e1f35f648d07c617ff6aef7041f91fcf34e1582
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
}
make_dirs="/var/lib/vault 0700 _vault _vault
/etc/vault 0700 root root"
post_install() {
vinstall ${FILESDIR}/vault.hcl 644 etc/
vlicense LICENSE
vsv vault
}