2016-02-29 11:06:16 +01:00
|
|
|
# Template file for 'etcd'
|
|
|
|
pkgname=etcd
|
2017-04-12 22:33:59 +02:00
|
|
|
version=3.1.5
|
|
|
|
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"
|
2016-07-02 10:18:26 +02:00
|
|
|
hostmakedepends="git"
|
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-04-13 00:09:18 +02:00
|
|
|
checksum=d9019b45df696f1dae286a511bd28b03751e37343c752380318e2a13ac994318
|
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"
|
|
|
|
|
2016-11-12 13:24:25 +01:00
|
|
|
pre_build() {
|
|
|
|
sed -i '/SupportPackageIsVersion3/d' etcdserver/etcdserverpb/rpc.pb.go
|
|
|
|
}
|
|
|
|
|
2016-02-29 11:06:16 +01:00
|
|
|
post_build() {
|
|
|
|
go get -x ${go_import_path}/etcdctl
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vsv etcd
|
|
|
|
}
|