void-packages/srcpkgs/consul/template

23 lines
768 B
Bash

# Template file for 'consul'
pkgname=consul
version=1.15.2
revision=4
build_style=go
go_import_path="github.com/hashicorp/consul"
_git_commit=5e08e229dbdaed5adf3ca99afe9df247c51507da
go_ldflags="-X ${go_import_path}/version.GitCommit=${_git_commit} -X ${go_import_path}/version.GitDescribe=v${version}"
short_desc="Distributed solution to connect and configure applications"
maintainer="iaroki <iaroki@protonmail.com>"
license="MPL-2.0"
homepage="https://www.consul.io/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=ce5e6666c9bd3ee8dcd60b2ed6e082ab9893fda3c0a2218add649c197f34f2f3
system_accounts="_consul"
make_dirs="/etc/consul.d 0755 root _consul
/var/lib/consul 0750 _consul _consul"
post_install() {
vlicense LICENSE
vsv consul
}