# Template file for 'vault'
pkgname=vault
version=0.11.4
revision=1
build_style=go
go_import_path="github.com/hashicorp/${pkgname}"
short_desc="Tool for securely accessing secrets"
maintainer="iaroki <iaroki@protonmail.com>"
license="MPL-2.0"
homepage="https://www.vaultproject.io/"
distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz"
checksum=b8045403cdffd40c86d4de45a340d004e15acb56f537deecf365a82fe69892c0
system_accounts="_vault"
conf_files="/etc/vault.hcl"
make_dirs="/var/lib/vault 0700 _vault _vault"

post_install() {
	vinstall ${FILESDIR}/vault.hcl 644 etc/
	vlicense LICENSE
	vsv vault
}
