mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
Merge pull request #1547 from jonboulle/steveeJ-rkt-0.8
app-emulation/rkt: bump to 0.8.1 release
This commit is contained in:
commit
769d688335
@ -1,3 +1 @@
|
||||
DIST pxe-444.5.0.img 114147963 SHA256 26aaee080c50e8ccb0aca81e22f7b64307e31ca0f5b4d8aa989a2381bb56879c SHA512 aad9983e90fc1c0924df505c91a2a9912cec8083fa3ec7b9b67d6de82daf4b420de638d7bde5f129770815d6fbac53913c6a80e254b3777981787730bafb4e08 WHIRLPOOL 1e373a8728a01bf6e53b2760d24187a19aec9d32f05f04de8557f6fec01f652d577781f447463188a50070aaf31f48b2c67317989d89d9c114920b0e0cd8edaf
|
||||
DIST rkt-pxe-709.0.0.img 148919232 SHA256 d0df52bee7134fdeb6bc4d973e7ff651979894c0895423e2e9a0dd35279e7c3b SHA512 dc2f70eb29ebfe32b66201fc7fe3a343eee66feb2ad5fa1635bb4a979252440e378d28496f567e8a7761942a9e42e1f846626626e81ec9be38f4980cd4a8db99 WHIRLPOOL 72960971ad2e97e13305b0c21496b306c43185aee94c369d2ce3aad522701926a9cb0fbbd250b789f4beadbda3f872ea1a007943545279c0d904c673cc32fd93
|
||||
DIST rkt-pxe-738.1.0.img 151780780 SHA256 805a4c491281553c8927f3dd1a7bec50cca29209d0a7264870e7155d794ecbe6 SHA512 7774cc64dfa874f08f48cba0c15103e9eca86ffd87dcb24f765a9b56074e72f6862a663a4007a0a7dd296740ae91bf4edf7290fa35659b0b1572fe2f5dad3256 WHIRLPOOL 5973a6036d650c576bb0bd365c8c9ea35776501c1fd2baf1d7c00d06496fab35e9c796096ef89b095e7a922e2062dce6c0d1c85cd3101022e0aca84277d18cb9
|
||||
DIST rkt-pxe-794.1.0.img 185121072 SHA256 d513e27d2412d8fdaa2456786703346f10c24a62480d2036ca5c31b3d5a0df16 SHA512 f36324e9736bb0c533706c45d4146bed2efcb3ee2cb842c3624a62399835808c0df2aef56495a12b30f67c47fd84e93e34b10c57e4aa6d0450402d5e21c6f88c WHIRLPOOL 099851022b11aa29d004bbcef316a7cceeb5efa43f8069cdf1858888e7550f938fd9f9ec53eb63c313b5c1b93b0569f578a50fc5bae28b4d30c451a2ffd2adba
|
||||
|
@ -1,7 +0,0 @@
|
||||
[Unit]
|
||||
Description=Garbage Collection for rkt
|
||||
|
||||
[Service]
|
||||
Environment=GRACE_PERIOD=24h
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/rkt gc --grace-period=${GRACE_PERIOD}
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=Periodic Garbage Collection for rkt
|
||||
|
||||
[Timer]
|
||||
OnActiveSec=0s
|
||||
OnUnitActiveSec=12h
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,57 +0,0 @@
|
||||
# Copyright (c) 2015 CoreOS, Inc.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
CROS_WORKON_PROJECT="coreos/rkt"
|
||||
CROS_WORKON_LOCALNAME="rkt"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="40ced98c320c056e343fe9c3eaeb90a4ff248936" # v0.5.5
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
# Must be in sync with stage1/rootfs/usr_from_coreos/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="App Container runtime"
|
||||
HOMEPAGE="https://github.com/coreos/rkt"
|
||||
SRC_URI="${IMG_URL} -> pxe-${IMG_RELEASE}.img"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.3
|
||||
app-arch/cpio
|
||||
sys-fs/squashfs-tools"
|
||||
RDEPEND="!app-emulation/rocket"
|
||||
|
||||
src_unpack() {
|
||||
local cache="${S}/stage1/rootfs/usr_from_coreos/cache"
|
||||
|
||||
cros-workon_src_unpack
|
||||
|
||||
mkdir -p "${cache}" || die
|
||||
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() {
|
||||
RKT_STAGE1_IMAGE=/usr/share/rkt/stage1.aci CGO_ENABLED=0 ./build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${S}/bin/rkt"
|
||||
|
||||
insinto /usr/share/rkt
|
||||
doins "${S}/bin/stage1.aci"
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}-gc.service
|
||||
systemd_dounit "${FILESDIR}"/${PN}-gc.timer
|
||||
}
|
@ -14,16 +14,16 @@ CROS_WORKON_PROJECT="coreos/rkt"
|
||||
CROS_WORKON_LOCALNAME="rkt"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
PXE_VERSION="738.1.0"
|
||||
|
||||
elif [[ "${PV}" == "0.7.0" ]]; then
|
||||
else
|
||||
KEYWORDS="amd64"
|
||||
PXE_VERSION="709.0.0"
|
||||
CROS_WORKON_COMMIT="9579f4bf57851a1a326c81ec2ab0ed2fdfab8d24"
|
||||
CROS_WORKON_COMMIT="a4b17f07700afd4e24be0153ca4fc73c35e14c31" # v0.8.1
|
||||
fi
|
||||
|
||||
PXE_VERSION="794.1.0"
|
||||
PXE_SYSTEMD_VERSION="222"
|
||||
PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz"
|
||||
PXE_FILE="${PN}-pxe-${PXE_VERSION}.img"
|
||||
|
||||
@ -43,13 +43,13 @@ DEPEND=">=dev-lang/go-1.4.1
|
||||
sys-fs/squashfs-tools
|
||||
dev-perl/Capture-Tiny
|
||||
rkt_stage1_src? (
|
||||
>=sys-apps/systemd-220
|
||||
>=sys-apps/systemd-222
|
||||
app-shells/bash
|
||||
)"
|
||||
RDEPEND="!app-emulation/rocket
|
||||
actool? ( !app-emulation/actool )
|
||||
rkt_stage1_host? (
|
||||
>=sys-apps/systemd-220
|
||||
~sys-apps/systemd-222
|
||||
app-shells/bash
|
||||
)"
|
||||
|
||||
@ -62,14 +62,12 @@ src_configure() {
|
||||
|
||||
if use rkt_stage1_host; then
|
||||
myeconfargs+=( --with-stage1="host" )
|
||||
fi
|
||||
if use rkt_stage1_src; then
|
||||
elif use rkt_stage1_src; then
|
||||
myeconfargs+=( --with-stage1="src" )
|
||||
fi
|
||||
if use rkt_stage1_coreos; then
|
||||
elif use rkt_stage1_coreos; then
|
||||
myeconfargs+=( --with-stage1="coreos" )
|
||||
mkdir -p "${BUILDDIR}/tmp/usr_from_coreos/" || die
|
||||
cp "${DISTDIR}/${PXE_FILE}" "${BUILDDIR}/tmp/usr_from_coreos/pxe.img" || die
|
||||
myeconfargs+=( --with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}" )
|
||||
myeconfargs+=( --with-coreos-local-pxe-image-systemd-version=v"${PXE_SYSTEMD_VERSION}" )
|
||||
fi
|
||||
|
||||
# Go's 6l linker does not support PIE, disable so cgo binaries
|
||||
@ -100,8 +98,8 @@ src_install() {
|
||||
insinto /usr/share/rkt/
|
||||
doins "${S}/${BUILDDIR}/bin/stage1.aci"
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}-gc.service
|
||||
systemd_dounit "${FILESDIR}"/${PN}-gc.timer
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.service
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.timer
|
||||
systemd_enable_service multi-user.target ${PN}-gc.timer
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.service
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.socket
|
||||
|
Loading…
x
Reference in New Issue
Block a user