vault: update to 1.5.4
This commit is contained in:
parent
52856a530b
commit
33c24c0800
|
@ -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
|
|
@ -1,8 +0,0 @@
|
||||||
storage "file" {
|
|
||||||
path = "/var/lib/vault"
|
|
||||||
}
|
|
||||||
|
|
||||||
listener "tcp" {
|
|
||||||
address = "127.0.0.1:8200"
|
|
||||||
tls_disable = 1
|
|
||||||
}
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec chpst -u _vault vault server -config=/etc/vault.hcl
|
exec chpst -u _vault vault server -config=/etc/vault/
|
||||||
|
|
|
@ -1,37 +1,24 @@
|
||||||
# Template file for 'vault'
|
# Template file for 'vault'
|
||||||
pkgname=vault
|
pkgname=vault
|
||||||
version=1.2.3
|
version=1.5.4
|
||||||
revision=1
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/hashicorp/${pkgname}"
|
go_import_path="github.com/hashicorp/${pkgname}"
|
||||||
go_build_tags="ui release"
|
go_build_tags="release"
|
||||||
_git_commit=e16495da552c996068e05574cddf69875199f949
|
_git_commit=e16495da552c996068e05574cddf69875199f949
|
||||||
go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}"
|
go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}"
|
||||||
conf_files="/etc/vault.hcl"
|
hostmakedepends="git"
|
||||||
make_dirs="/var/lib/vault 0700 _vault _vault"
|
short_desc="Manage Secrets and Protect Sensitive Data"
|
||||||
hostmakedepends="git nodejs-lts python yarn"
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||||
short_desc="Tool for securely accessing secrets"
|
|
||||||
maintainer="iaroki <iaroki@protonmail.com>"
|
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
homepage="https://www.vaultproject.io/"
|
homepage="https://www.vaultproject.io/"
|
||||||
distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=b9f909b613d53ae591a5b91a4862c750aaf59e87592b1a74b4c4651c0b5790e3
|
checksum=99e3145a9b6f5ee6429b997f3e1f35f648d07c617ff6aef7041f91fcf34e1582
|
||||||
system_accounts="_vault"
|
system_accounts="_vault"
|
||||||
|
make_dirs="/var/lib/vault 0700 _vault _vault
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
/etc/vault 0700 root root"
|
||||||
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() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/vault.hcl 644 etc/
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vsv vault
|
vsv vault
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue