void-packages/srcpkgs/etcd/template
Leah Neukirchen 171e60e498 etcd: rehash.
2017-04-13 00:09:18 +02:00

29 lines
735 B
Bash

# Template file for 'etcd'
pkgname=etcd
version=3.1.5
revision=1
build_style=go
short_desc="Distributed reliable key-value store"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
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=d9019b45df696f1dae286a511bd28b03751e37343c752380318e2a13ac994318
conf_files="/etc/sv/etcd/conf"
system_accounts="etcd"
make_dirs="/var/lib/etcd 0755 etcd etcd"
pre_build() {
sed -i '/SupportPackageIsVersion3/d' etcdserver/etcdserverpb/rpc.pb.go
}
post_build() {
go get -x ${go_import_path}/etcdctl
}
post_install() {
vlicense LICENSE
vsv etcd
}