25 lines
649 B
Bash
25 lines
649 B
Bash
# Template file for 'etcd'
|
|
pkgname=etcd
|
|
version=3.0.1
|
|
revision=1
|
|
build_style=go
|
|
short_desc="Distributed reliable key-value store"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
license="Apache-2.0"
|
|
hostmakedepends="git"
|
|
go_import_path="github.com/coreos/etcd"
|
|
homepage="https://coreos.com/etcd/docs/latest/"
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
|
checksum=29ccdf960a3bdb72bff3f9082c2ce14a909fe9156e3309afd7288cb3e050dd2d
|
|
conf_files="/etc/sv/etcd/conf"
|
|
system_accounts="etcd"
|
|
make_dirs="/var/lib/etcd 0755 etcd etcd"
|
|
|
|
post_build() {
|
|
go get -x ${go_import_path}/etcdctl
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv etcd
|
|
}
|