void-packages/srcpkgs/consul/template

24 lines
788 B
Bash

# Template file for 'consul'
pkgname=consul
version=1.16.2
revision=2
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="BUSL-1.1"
homepage="https://www.consul.io/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=0dacc7eeacd19a687e20fa83ae88444d2a5336a9150cfc116d39a39b31d5829d
system_accounts="_consul"
make_dirs="/etc/consul.d 0755 root _consul
/var/lib/consul 0750 _consul _consul"
repository=nonfree
post_install() {
vlicense LICENSE
vsv consul
}