2016-02-29 11:06:16 +01:00
|
|
|
# Template file for 'etcd'
|
|
|
|
pkgname=etcd
|
2017-05-02 09:44:37 +02:00
|
|
|
version=3.1.7
|
2017-04-12 22:33:59 +02:00
|
|
|
revision=1
|
2016-02-29 11:06:16 +01:00
|
|
|
build_style=go
|
|
|
|
short_desc="Distributed reliable key-value store"
|
2017-04-06 18:52:20 +02:00
|
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
2016-02-29 11:06:16 +01:00
|
|
|
license="Apache-2.0"
|
2017-05-02 09:44:37 +02:00
|
|
|
hostmakedepends="git glide"
|
2016-02-29 11:06:16 +01: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-05-02 09:44:37 +02:00
|
|
|
checksum=41cbfc6744c76aa1735e11c82e6f6ff03c88dc88810938cf6eb80930dc994b2a
|
2016-02-29 11:06:16 +01:00
|
|
|
conf_files="/etc/sv/etcd/conf"
|
|
|
|
system_accounts="etcd"
|
|
|
|
make_dirs="/var/lib/etcd 0755 etcd etcd"
|
|
|
|
|
2017-05-03 15:17:41 +02: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 12:13:04 +02:00
|
|
|
|
2017-05-02 09:44:37 +02:00
|
|
|
glide install
|
2017-05-03 15:17:41 +02: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 11:06:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vsv etcd
|
|
|
|
}
|