mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
coreos/coreos-cloudinit: 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
1d9b0523c7
commit
71f9fe1779
@ -1,20 +1,20 @@
|
|||||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=4
|
EAPI=5
|
||||||
CROS_WORKON_PROJECT="coreos/coreos-cloudinit"
|
CROS_WORKON_PROJECT="coreos/coreos-cloudinit"
|
||||||
CROS_WORKON_LOCALNAME="coreos-cloudinit"
|
CROS_WORKON_LOCALNAME="coreos-cloudinit"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
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
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64 ~arm64"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="ca6f97d050bb51ae37aa1d91996e7fb6a66687c4" # tag v1.4.1
|
CROS_WORKON_COMMIT="ca6f97d050bb51ae37aa1d91996e7fb6a66687c4" # tag v1.4.1
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64 arm64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inherit coreos-doc cros-workon systemd toolchain-funcs udev
|
|
||||||
|
|
||||||
DESCRIPTION="coreos-cloudinit"
|
DESCRIPTION="coreos-cloudinit"
|
||||||
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
||||||
SRC_URI=""
|
SRC_URI=""
|
||||||
@ -23,27 +23,23 @@ LICENSE="Apache-2.0"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.2
|
DEPEND="!<coreos-base/coreos-init-0.0.1-r69"
|
||||||
!<coreos-base/coreos-init-0.0.1-r69"
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
>=sys-apps/shadow-4.1.5.1
|
>=sys-apps/shadow-4.1.5.1
|
||||||
"
|
"
|
||||||
|
|
||||||
src_compile() {
|
src_prepare() {
|
||||||
# setup CFLAGS and LDFLAGS for separate build target
|
coreos-go_src_prepare
|
||||||
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
|
||||||
export CGO_LDFLAGS="-L${ROOT}/usr/lib"
|
GOPATH+=":${S}/third_party"
|
||||||
|
|
||||||
if gcc-specs-pie; then
|
if gcc-specs-pie; then
|
||||||
CGO_LDFLAGS+=" -fno-PIC"
|
CGO_LDFLAGS+=" -fno-PIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./build || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin ${S}/bin/coreos-cloudinit
|
dobin ${GOBIN}/coreos-cloudinit
|
||||||
udev_dorules units/*.rules
|
udev_dorules units/*.rules
|
||||||
systemd_dounit units/*.mount
|
systemd_dounit units/*.mount
|
||||||
systemd_dounit units/*.path
|
systemd_dounit units/*.path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user