etcd: template cleanup
This commit is contained in:
parent
1867444faa
commit
4d24a86708
1 changed files with 4 additions and 11 deletions
|
@ -1,13 +1,14 @@
|
||||||
# Template file for 'etcd'
|
# Template file for 'etcd'
|
||||||
pkgname=etcd
|
pkgname=etcd
|
||||||
version=3.2.10
|
version=3.2.10
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
short_desc="Distributed reliable key-value store"
|
short_desc="Distributed reliable key-value store"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
hostmakedepends="git glide"
|
hostmakedepends="git glide"
|
||||||
go_import_path="github.com/coreos/etcd"
|
go_import_path="github.com/coreos/etcd"
|
||||||
|
go_package="${go_import_path} ${go_import_path}/etcdctl"
|
||||||
homepage="https://coreos.com/etcd/docs/latest/"
|
homepage="https://coreos.com/etcd/docs/latest/"
|
||||||
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
||||||
checksum=86b7afd78b3a409b23ddf9d889b74c4edecf0fec1148f83bf025911705895f08
|
checksum=86b7afd78b3a409b23ddf9d889b74c4edecf0fec1148f83bf025911705895f08
|
||||||
|
@ -15,17 +16,9 @@ conf_files="/etc/sv/etcd/conf"
|
||||||
system_accounts="etcd"
|
system_accounts="etcd"
|
||||||
make_dirs="/var/lib/etcd 0755 etcd etcd"
|
make_dirs="/var/lib/etcd 0755 etcd etcd"
|
||||||
|
|
||||||
do_build() {
|
pre_build() {
|
||||||
if [[ "${go_get}" != "yes" ]]; then
|
cd $GOSRCPATH
|
||||||
local path="${GOPATH}/src/${go_import_path}"
|
|
||||||
mkdir -p "$(dirname ${path})"
|
|
||||||
ln -fs $PWD "${path}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
glide install
|
glide install
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Reference in a new issue