2016-02-29 10:06:16 +00:00
|
|
|
# Template file for 'etcd'
|
|
|
|
pkgname=etcd
|
2017-07-08 18:36:19 +00:00
|
|
|
version=3.2.2
|
2017-06-10 08:05:09 +00:00
|
|
|
revision=1
|
2016-02-29 10:06:16 +00:00
|
|
|
build_style=go
|
|
|
|
short_desc="Distributed reliable key-value store"
|
2017-04-06 16:52:20 +00:00
|
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
2016-02-29 10:06:16 +00:00
|
|
|
license="Apache-2.0"
|
2017-05-02 07:44:37 +00:00
|
|
|
hostmakedepends="git glide"
|
2016-02-29 10:06:16 +00:00
|
|
|
go_import_path="github.com/coreos/etcd"
|
|
|
|
homepage="https://coreos.com/etcd/docs/latest/"
|
|
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
2017-07-08 18:36:19 +00:00
|
|
|
checksum=dcbc38efb19c1a6238de01b8c2ced45209eec4f5c92239f2bc03a3c0db684e90
|
2016-02-29 10:06:16 +00:00
|
|
|
conf_files="/etc/sv/etcd/conf"
|
|
|
|
system_accounts="etcd"
|
|
|
|
make_dirs="/var/lib/etcd 0755 etcd etcd"
|
|
|
|
|
2017-05-03 13:17:41 +00:00
|
|
|
do_build() {
|
|
|
|
if [[ "${go_get}" != "yes" ]]; then
|
|
|
|
local path="${GOPATH}/src/${go_import_path}"
|
|
|
|
mkdir -p "$(dirname ${path})"
|
|
|
|
ln -fs $PWD "${path}"
|
|
|
|
fi
|
2017-05-03 10:13:04 +00:00
|
|
|
|
2017-05-02 07:44:37 +00:00
|
|
|
glide install
|
2017-05-03 13:17:41 +00:00
|
|
|
go_package=${go_package:-$go_import_path}
|
|
|
|
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
|
|
|
|
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_import_path}/etcdctl
|
2016-02-29 10:06:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vsv etcd
|
|
|
|
}
|