void-packages/srcpkgs/vault/template

29 lines
860 B
Bash

# Template file for 'vault'
pkgname=vault
version=1.6.1
revision=1
build_style=go
go_import_path="github.com/hashicorp/${pkgname}"
go_build_tags="release"
_git_commit=6d2db3f033e02e70202bef9ec896360062b88b03
go_ldflags="-X ${go_import_path}/sdk/version.GitCommit=${_git_commit}"
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=fb5d96e682a48bfd421b13cdfffd710da0238dbded1988aab822dd5aae75b4c4
system_accounts="_vault"
make_dirs="/var/lib/vault 0700 _vault _vault
/etc/vault 0700 root root"
case "$XBPS_TARGET_MACHINE" in
arm*) go_ldflags="$go_ldflags -linkmode=external";;
esac
post_install() {
vlicense LICENSE
vsv vault
}