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:
Brandon Philips 2013-05-27 13:47:59 -07:00
parent 0fac1a19c3
commit 04eef31b35
2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@
# #
EAPI=2 EAPI=2
CROS_WORKON_PROJECT="xiangli-cmu/etcd-client" CROS_WORKON_PROJECT="coreos/etcd-client"
CROS_WORKON_LOCALNAME="etcd-client" CROS_WORKON_LOCALNAME="etcd-client"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd inherit toolchain-funcs cros-workon systemd
@ -26,10 +26,10 @@ GOPKG="${PN}"
src_compile() { src_compile() {
export GOPATH="${S}" export GOPATH="${S}"
go install "${PN}" go get
go build -o ${PN} || die
} }
src_install() { src_install() {
dobin ${S}/etcd-client dobin ${S}/${PN} || die
} }

View File

@ -6,7 +6,7 @@
# #
EAPI=2 EAPI=2
CROS_WORKON_PROJECT="xiangli-cmu/etcd" CROS_WORKON_PROJECT="coreos/etcd"
CROS_WORKON_LOCALNAME="etcd" CROS_WORKON_LOCALNAME="etcd"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd inherit toolchain-funcs cros-workon systemd
@ -26,12 +26,12 @@ GOPKG="${PN}"
src_compile() { src_compile() {
export GOPATH="${S}" export GOPATH="${S}"
go install "${PN}" go get
go build -o ${PN}
} }
src_install() { src_install() {
dosbin ${S}/etcd dosbin ${S}/${PN}
systemd_dounit "${FILESDIR}"/${PN}.service systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service systemd_enable_service multi-user.target ${PN}.service
} }