# Template file for 'etcd'
pkgname=etcd
version=3.4.24
revision=1
build_style=go
go_import_path="github.com/etcd-io/etcd"
go_package="${go_import_path} ${go_import_path}/etcdctl"
go_mod_mode=off
short_desc="Distributed reliable key-value store"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0"
homepage="https://coreos.com/etcd/docs/latest/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=cc490495ffc04ced61a7f549dffd4f9a2e62723245c66432394659361d6ab659
conf_files="/etc/sv/etcd/conf"
system_accounts="etcd"
make_dirs="/var/lib/etcd 0755 etcd etcd"

post_install() {
	vsv etcd
}
