mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-14 00:16:59 +02:00
fix(app-admin/etcd*): fixups to get these building
Minor fixups to the packaging to get everything working on these.
This commit is contained in:
parent
0fac1a19c3
commit
04eef31b35
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
EAPI=2
|
||||
CROS_WORKON_PROJECT="xiangli-cmu/etcd-client"
|
||||
CROS_WORKON_PROJECT="coreos/etcd-client"
|
||||
CROS_WORKON_LOCALNAME="etcd-client"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit toolchain-funcs cros-workon systemd
|
||||
@ -26,10 +26,10 @@ GOPKG="${PN}"
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${S}"
|
||||
go install "${PN}"
|
||||
go get
|
||||
go build -o ${PN} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${S}/etcd-client
|
||||
dobin ${S}/${PN} || die
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
EAPI=2
|
||||
CROS_WORKON_PROJECT="xiangli-cmu/etcd"
|
||||
CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit toolchain-funcs cros-workon systemd
|
||||
@ -26,12 +26,12 @@ GOPKG="${PN}"
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${S}"
|
||||
go install "${PN}"
|
||||
go get
|
||||
go build -o ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin ${S}/etcd
|
||||
dosbin ${S}/${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_enable_service multi-user.target ${PN}.service
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user