mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 23:11:07 +02:00
app-emulation/rkt: remove old ebuild + IUSE flag
This commit is contained in:
parent
5f724cd4f1
commit
f92366d8ec
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=yes
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=yes
|
||||
|
||||
inherit autotools-utils flag-o-matic systemd toolchain-funcs
|
||||
inherit cros-workon
|
||||
|
||||
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
|
||||
KEYWORDS="amd64"
|
||||
PXE_VERSION="709.0.0"
|
||||
CROS_WORKON_COMMIT="9579f4bf57851a1a326c81ec2ab0ed2fdfab8d24"
|
||||
fi
|
||||
|
||||
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"
|
||||
|
||||
SRC_URI="rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )"
|
||||
|
||||
DESCRIPTION="A CLI for running app containers, and an implementation of the App
|
||||
Container Spec."
|
||||
HOMEPAGE="https://github.com/coreos/rkt"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc examples +rkt_stage1_coreos rkt_stage1_host rkt_stage1_src +actool systemd"
|
||||
REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_host rkt_stage1_src )"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4.1
|
||||
app-arch/cpio
|
||||
sys-fs/squashfs-tools
|
||||
dev-perl/Capture-Tiny
|
||||
rkt_stage1_src? (
|
||||
~sys-apps/systemd-222
|
||||
app-shells/bash
|
||||
)"
|
||||
RDEPEND="!app-emulation/rocket
|
||||
actool? ( !app-emulation/actool )
|
||||
rkt_stage1_host? (
|
||||
~sys-apps/systemd-222
|
||||
app-shells/bash
|
||||
)"
|
||||
|
||||
BUILDDIR="build-${P}"
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-stage1-image-path="/usr/share/rkt/stage1.aci"
|
||||
)
|
||||
|
||||
if use rkt_stage1_host; then
|
||||
myeconfargs+=( --with-stage1="host" )
|
||||
elif use rkt_stage1_src; then
|
||||
myeconfargs+=( --with-stage1="src" )
|
||||
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
|
||||
fi
|
||||
|
||||
# Go's 6l linker does not support PIE, disable so cgo binaries
|
||||
# which use 6l+gcc for linking can be built correctly.
|
||||
if gcc-specs-pie; then
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
export CC=$(tc-getCC)
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export BUILDDIR
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
use examples && dodoc -r examples
|
||||
use actool && dobin "${S}/${BUILDDIR}/bin/actool"
|
||||
|
||||
dobin "${S}/${BUILDDIR}/bin/rkt"
|
||||
|
||||
insinto /usr/share/rkt/
|
||||
doins "${S}/${BUILDDIR}/bin/stage1.aci"
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}-gc.service
|
||||
systemd_dounit "${FILESDIR}"/${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
|
||||
systemd_enable_service sockets.target ${PN}-metadata.socket
|
||||
}
|
@ -35,7 +35,7 @@ HOMEPAGE="https://github.com/coreos/rkt"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc examples +rkt_stage1_coreos rkt_stage1_host rkt_stage1_src +actool systemd"
|
||||
IUSE="doc examples +rkt_stage1_coreos rkt_stage1_host rkt_stage1_src +actool"
|
||||
REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_host rkt_stage1_src )"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user