void-packages/srcpkgs/vault/template
2022-03-19 19:27:30 -05:00

29 lines
875 B
Bash

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