etcd: build with vendored libraries

Also xlintify.
This commit is contained in:
Đoàn Trần Công Danh 2020-09-12 07:57:27 +07:00
parent abd8ca7bd7
commit 14e9f69570
1 changed files with 7 additions and 6 deletions

View File

@ -1,15 +1,13 @@
# Template file for 'etcd'
pkgname=etcd
version=3.4.4
revision=1
revision=2
build_style=go
go_import_path="github.com/coreos/etcd"
go_package="${go_import_path} ${go_import_path}/etcdctl"
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"
go_mod_mode="default"
homepage="https://coreos.com/etcd/docs/latest/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=46bcd0d034fe9cc6ae86a9f2a72bdc78761ca99bfd5ae4b96b24e4ad93fc627e
@ -17,7 +15,10 @@ conf_files="/etc/sv/etcd/conf"
system_accounts="etcd"
make_dirs="/var/lib/etcd 0755 etcd etcd"
post_extract() {
ln -s $wrksrc vendor/$go_import_path
}
post_install() {
vlicense LICENSE
vsv etcd
}