diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/fleet/fleet-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/fleet/fleet-9999.ebuild index 4e5282c10f..dec1444e42 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/fleet/fleet-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/fleet/fleet-9999.ebuild @@ -1,20 +1,20 @@ # Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=5 CROS_WORKON_PROJECT="coreos/fleet" CROS_WORKON_LOCALNAME="fleet" CROS_WORKON_REPO="git://github.com" +COREOS_GO_PACKAGE="github.com/coreos/fleet" +inherit coreos-doc cros-workon coreos-go systemd if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="dc1d8e82dc07151297d8a2396dcf52e703d48f20" # tag v0.10.1 - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi -inherit coreos-doc cros-workon systemd - DESCRIPTION="fleet" HOMEPAGE="https://github.com/coreos/fleet" SRC_URI="" @@ -23,18 +23,15 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.3" - src_compile() { - ./build || die + go_build "${COREOS_GO_PACKAGE}/fleetd" + go_build "${COREOS_GO_PACKAGE}/fleetctl" } src_install() { - dobin ${S}/bin/fleetd + dobin ${GOBIN}/* dosym ./fleetd /usr/bin/fleet - dobin ${S}/bin/fleetctl - systemd_dounit "${FILESDIR}"/${PN}.service systemd_dounit "${FILESDIR}"/${PN}.socket diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild index 417e5104ed..05a1664139 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild @@ -1,20 +1,20 @@ # Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=5 CROS_WORKON_PROJECT="coreos/locksmith" CROS_WORKON_LOCALNAME="locksmith" CROS_WORKON_REPO="git://github.com" +COREOS_GO_PACKAGE="github.com/coreos/locksmith" +inherit cros-workon systemd coreos-go if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="bee1358eb3a65387333ee3adc8a3fdfc0feac656" # v0.3.0 git tag - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi -inherit cros-workon systemd - DESCRIPTION="locksmith" HOMEPAGE="https://github.com/coreos/locksmith" SRC_URI="" @@ -23,20 +23,12 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.2" - src_compile() { - # work around gentoo hardened gcc incompatibilities with cgo - # see https://bugs.gentoo.org/show_bug.cgi?id=493328 - if gcc-specs-pie; then - GOLDFLAGS="-extldflags -fno-PIC" - fi - - GOLDFLAGS=${GOLDFLAGS} ./build || die + go_build "${COREOS_GO_PACKAGE}/locksmithctl" } src_install() { - dobin ${S}/bin/locksmithctl + dobin ${GOBIN}/locksmithctl dodir /usr/lib/locksmith dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/mayday/mayday-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/mayday/mayday-9999.ebuild index 630e4a9af0..50a62f227d 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/mayday/mayday-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/mayday/mayday-9999.ebuild @@ -12,10 +12,10 @@ COREOS_GO_PACKAGE="github.com/coreos/mayday" inherit coreos-go cros-workon if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="eaff09119f3a5b911908e4d3200272034466fe5d" # v0.1.0 - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi DESCRIPTION="mayday" @@ -26,13 +26,11 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.2" - src_compile() { go_build "${COREOS_GO_PACKAGE}/cmd" } src_install() { - newbin ${WORKDIR}/gopath/bin/cmd mayday + newbin ${GOBIN}/cmd mayday } diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild index c41bf27495..dfa19ee569 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild @@ -23,13 +23,8 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.3" - -src_compile() { - go_build "${COREOS_GO_PACKAGE}" -} - src_install() { + # Put sdnotify-proxy into its well-know location. exeinto /usr/libexec doexe ${GOBIN}/sdnotify-proxy } diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/updateservicectl/updateservicectl-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/updateservicectl/updateservicectl-9999.ebuild index b0071c21e9..330d832fe4 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/updateservicectl/updateservicectl-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/updateservicectl/updateservicectl-9999.ebuild @@ -5,16 +5,16 @@ EAPI=5 CROS_WORKON_PROJECT="coreos/updateservicectl" CROS_WORKON_LOCALNAME="updateservicectl" CROS_WORKON_REPO="git://github.com" +COREOS_GO_PACKAGE="github.com/coreos/updateservicectl" +inherit cros-workon coreos-go if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="f9a7976a09697a15c41a1affb4866790ef714332" # tag v1.3.0 - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi -inherit cros-workon - DESCRIPTION="CoreUpdate Management CLI" HOMEPAGE="https://github.com/coreos/updateservicectl" SRC_URI="" @@ -23,13 +23,9 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.2" RDEPEND="!app-admin/updatectl" -src_compile() { - ./build || die -} - -src_install() { - dobin bin/updateservicectl +src_prepare() { + coreos-go_src_prepare + GOPATH+=":${S}/Godeps/_workspace" } diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/actool/actool-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/actool/actool-9999.ebuild index 9e2e568caf..4b11b10ef1 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/actool/actool-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/actool/actool-9999.ebuild @@ -4,16 +4,15 @@ EAPI=5 CROS_WORKON_PROJECT="appc/spec" CROS_WORKON_REPO="git://github.com" -# name of directory git repo is checked out into by manifest CROS_WORKON_LOCALNAME="appc-spec" COREOS_GO_PACKAGE="github.com/appc/spec" inherit coreos-go cros-workon if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="9a448f73b7fa765a60eade4bcca41e18bfe613aa" # v0.5.1 - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi DESCRIPTION="App Container builder and validator" @@ -24,8 +23,6 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.3" - src_compile() { go_build "${COREOS_GO_PACKAGE}/actool" } diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild index 0e4ebfd620..6e3288c010 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild @@ -1,20 +1,20 @@ # Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=5 CROS_WORKON_PROJECT="coreos/coreos-cloudinit" CROS_WORKON_LOCALNAME="coreos-cloudinit" CROS_WORKON_REPO="git://github.com" +COREOS_GO_PACKAGE="github.com/coreos/coreos-cloudinit" +inherit coreos-doc cros-workon systemd toolchain-funcs udev coreos-go if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" else CROS_WORKON_COMMIT="ca6f97d050bb51ae37aa1d91996e7fb6a66687c4" # tag v1.4.1 - KEYWORDS="amd64" + KEYWORDS="amd64 arm64" fi -inherit coreos-doc cros-workon systemd toolchain-funcs udev - DESCRIPTION="coreos-cloudinit" HOMEPAGE="https://github.com/coreos/coreos-cloudinit" SRC_URI="" @@ -23,27 +23,23 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -DEPEND=">=dev-lang/go-1.2 - !