mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-15 22:31:59 +01:00
app-emulation/runc: import 0.1.0 from upstream portage
This commit is contained in:
parent
4d513924eb
commit
406a5ac977
1
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/Manifest
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST runc-0.1.0.tar.gz 496358 SHA256 681d6d89541ae2e06757f999a242a1f97bbcb1ad6e10f4cdee287ec4a9d2bff9 SHA512 8a9ff02b0161eda0a730194b0fbf7ad76e8f379992e74061ef49302da3492fd0c53f06db9153ded4d934d67bbf6f4291d6154254f1b924ef73c97c44cd14ffcf WHIRLPOOL 81f488a4f1e23e8704a9fa8404965b2f12f74a875ba8e67dc15de93f43b075dc538cd0d89c7a1187cb74ac6320317b5985855945fb8bf8f749d6736df47b844a
|
||||
20
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/metadata.xml
vendored
Normal file
20
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/metadata.xml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<longdescription lang="en">
|
||||
runc is a CLI tool for spawning and running containers according
|
||||
to the OCF (Open Container Format) specification.
|
||||
</longdescription>
|
||||
<maintainer type="person">
|
||||
<email>cardoe@gentoo.org</email>
|
||||
<name>Doug Goldstein</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="apparmor">
|
||||
Enable AppArmor support.
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">opencontainers/runc</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
48
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/runc-0.1.0.ebuild
vendored
Normal file
48
sdk_container/src/third_party/coreos-overlay/app-emulation/runc/runc-0.1.0.ebuild
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="runc container cli tools"
|
||||
HOMEPAGE="http://runc.io"
|
||||
|
||||
GITHUB_URI="github.com/opencontainers/runc"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://${GITHUB_URI}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://${GITHUB_URI}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="+seccomp"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4:="
|
||||
RDEPEND="seccomp? ( sys-libs/libseccomp )"
|
||||
|
||||
src_compile() {
|
||||
# Taken from app-emulation/docker-1.7.0-r1
|
||||
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
||||
export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
|
||||
|
||||
# Setup GOPATH so things build
|
||||
rm -rf .gopath
|
||||
mkdir -p .gopath/src/"$(dirname "${GITHUB_URI}")"
|
||||
ln -sf ../../../.. .gopath/src/"${GITHUB_URI}"
|
||||
export GOPATH="${PWD}/.gopath:${PWD}/vendor"
|
||||
|
||||
# build up optional flags
|
||||
local options=( $(usex seccomp "seccomp") )
|
||||
|
||||
emake BUILDTAGS="${options[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin runc
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user