mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 07:51:03 +02:00
app-admin/fleet: Update for arm64
Convert to coreos-go eclass and add arm64 keywords. Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
cca31382df
commit
59d2d9fddd
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user