31 lines
981 B
Bash
31 lines
981 B
Bash
# Template file for 'vault'
|
|
pkgname=vault
|
|
version=1.15.0
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/hashicorp/vault"
|
|
go_build_tags="release"
|
|
_git_commit=b9b773f1628260423e6cc9745531fd903cae853f
|
|
go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}"
|
|
depends="libcap-progs"
|
|
short_desc="Manage Secrets and Protect Sensitive Data"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="BUSL-1.1"
|
|
homepage="https://www.vaultproject.io/"
|
|
distfiles="https://github.com/hashicorp/vault/archive/v${version}.tar.gz"
|
|
checksum=833e82773b4281a080e89cf429c512cc43c2bc77dd61a6a49b3ed43c6b43917f
|
|
system_accounts="_vault"
|
|
make_dirs="/var/lib/vault 0700 _vault _vault
|
|
/etc/vault 0750 root _vault"
|
|
repository=nonfree
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) broken="/usr/lib/go/pkg/tool/linux_386/link: mapping output file failed: cannot allocate memory";;
|
|
arm*) go_ldflags="$go_ldflags -linkmode=external";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv vault
|
|
}
|