void-packages/srcpkgs/etcd/template
2018-06-01 12:03:12 +02:00

27 lines
701 B
Bash

# Template file for 'etcd'
pkgname=etcd
version=3.3.6
revision=1
build_style=go
short_desc="Distributed reliable key-value store"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0"
hostmakedepends="git glide"
go_import_path="github.com/coreos/etcd"
go_package="${go_import_path} ${go_import_path}/etcdctl"
homepage="https://coreos.com/etcd/docs/latest/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=fdb970a6b9e60b5cfbbb81fc459d7a1e1e49cb66b05b3c4e7c37ca9d7d6d152e
conf_files="/etc/sv/etcd/conf"
system_accounts="etcd"
make_dirs="/var/lib/etcd 0755 etcd etcd"
pre_build() {
cd $GOSRCPATH
glide install
}
post_install() {
vlicense LICENSE
vsv etcd
}