void-packages/srcpkgs/vault/template
2021-08-30 17:01:26 -05:00

30 lines
923 B
Bash

# Template file for 'vault'
pkgname=vault
version=1.8.1
revision=2
build_style=go
go_import_path="github.com/hashicorp/vault"
go_build_tags="release"
_git_commit=4b0264f28defc05454c31277cfa6ff63695a458d
go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}"
hostmakedepends="git"
depends="libcap-progs"
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/vault/archive/v${version}.tar.gz"
checksum=dbf389458fddeb5f8c567d00b6d17ce054f5b7667c226dbb598aa2c0f9048004
system_accounts="_vault"
make_dirs="/var/lib/vault 0700 _vault _vault
/etc/vault 0700 root root"
broken="FTBFS w/ Go 1.17 - hashicorp/vault#12456"
case "$XBPS_TARGET_MACHINE" in
arm*) go_ldflags="$go_ldflags -linkmode=external";;
esac
post_install() {
vlicense LICENSE
vsv vault
}