mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 06:21:08 +02:00
Merge pull request #1135 from marineam/rocket
rocket: general cleanup and install stage1.aci
This commit is contained in:
commit
b388a1ccb8
1
sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/Manifest
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST pxe-444.5.0.img 114147963 SHA256 26aaee080c50e8ccb0aca81e22f7b64307e31ca0f5b4d8aa989a2381bb56879c SHA512 aad9983e90fc1c0924df505c91a2a9912cec8083fa3ec7b9b67d6de82daf4b420de638d7bde5f129770815d6fbac53913c6a80e254b3777981787730bafb4e08 WHIRLPOOL 1e373a8728a01bf6e53b2760d24187a19aec9d32f05f04de8557f6fec01f652d577781f447463188a50070aaf31f48b2c67317989d89d9c114920b0e0cd8edaf
|
@ -1,10 +1,7 @@
|
|||||||
#
|
# Copyright (c) 2015 CoreOS, Inc.
|
||||||
# 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
|
||||||
# $Header:$
|
|
||||||
#
|
|
||||||
|
|
||||||
EAPI=4
|
EAPI=5
|
||||||
CROS_WORKON_PROJECT="coreos/rocket"
|
CROS_WORKON_PROJECT="coreos/rocket"
|
||||||
CROS_WORKON_LOCALNAME="rocket"
|
CROS_WORKON_LOCALNAME="rocket"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
CROS_WORKON_REPO="git://github.com"
|
||||||
@ -17,30 +14,41 @@ else
|
|||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Must be in sync with stage1/rootfs/usr/cache.sh
|
||||||
|
IMG_RELEASE="444.5.0"
|
||||||
|
IMG_URL="http://stable.release.core-os.net/amd64-usr/${IMG_RELEASE}/coreos_production_pxe_image.cpio.gz"
|
||||||
|
|
||||||
DESCRIPTION="rocket"
|
DESCRIPTION="rocket"
|
||||||
HOMEPAGE="https://github.com/coreos/rocket"
|
HOMEPAGE="https://github.com/coreos/rocket"
|
||||||
SRC_URI=""
|
SRC_URI="${IMG_URL} -> pxe-${IMG_RELEASE}.img"
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
DEPEND="
|
DEPEND=">=dev-lang/go-1.2
|
||||||
>=dev-lang/go-1.2
|
app-arch/cpio
|
||||||
dev-util/go-bindata
|
sys-fs/squashfs-tools"
|
||||||
"
|
RDEPEND=""
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
|
local cache="${S}/stage1/rootfs/usr/cache"
|
||||||
|
|
||||||
cros-workon_src_unpack
|
cros-workon_src_unpack
|
||||||
${S}/stage1/rootfs/usr/cache.sh
|
|
||||||
mv cache ${S}/stage1/rootfs/usr/
|
mkdir -p "${cache}" || die
|
||||||
GOPATH=${S}/gopath go get github.com/appc/spec/...
|
cp "${DISTDIR}/pxe-${IMG_RELEASE}.img" "${cache}/pxe.img" || die
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: Use or adapt coreos-go.eclass so we have half a chance of
|
||||||
|
# cross-compiling builds working
|
||||||
src_compile() {
|
src_compile() {
|
||||||
./build
|
RKT_STAGE1_IMAGE=/usr/share/rkt/stage1.aci ./build || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin ${S}/bin/rkt
|
dobin "${S}/bin/rkt"
|
||||||
|
|
||||||
|
insinto /usr/share/rkt
|
||||||
|
doins "${S}/bin/stage1.aci"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user