void-packages/srcpkgs/vault/template
2022-01-07 01:11:52 -06:00

29 lines
875 B
Bash

# Template file for 'vault'
pkgname=vault
version=1.9.2
revision=1
build_style=go
go_import_path="github.com/hashicorp/vault"
go_build_tags="release"
_git_commit=aca76f63357041a43b49f3e8c11d67358496959f
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=84a2506d8d0e0757a3229012328904b5e1e13c39c7766d431ffa9c32bce51fae
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
}