From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-emulation/docker-runc/Manifest | 3 ++ .../docker-runc-1.0.0_rc4_p20180122.ebuild | 59 ++++++++++++++++++++++ app-emulation/docker-runc/metadata.xml | 19 +++++++ 3 files changed, 81 insertions(+) create mode 100644 app-emulation/docker-runc/Manifest create mode 100644 app-emulation/docker-runc/docker-runc-1.0.0_rc4_p20180122.ebuild create mode 100644 app-emulation/docker-runc/metadata.xml (limited to 'app-emulation/docker-runc') diff --git a/app-emulation/docker-runc/Manifest b/app-emulation/docker-runc/Manifest new file mode 100644 index 000000000000..addca968b4b3 --- /dev/null +++ b/app-emulation/docker-runc/Manifest @@ -0,0 +1,3 @@ +DIST docker-runc-1.0.0_rc4_p20180122.tar.gz 1184954 BLAKE2B faf07c06c12301588d9adb1bfd31d562b31cd1119f1247b06afb2d6eba077c37a8871bd32d48e20b79f1b91fd052ec54fe6da5ac8c51713c9757e1967db563c3 SHA512 c7b24ca6212ce500d1d4c3a1776be5ca116d4f005d71e5fe8f2228c26f039058f3dd1071e9e39aa9c93272a49f7ff2ac86e2fbbcf6115cc3de65a370127d8ea5 +EBUILD docker-runc-1.0.0_rc4_p20180122.ebuild 1384 BLAKE2B 26d60b88bbe9531176778c5fefe93a1e85ff16daff027e62bc4d145bf420f4541beee801e2daee2b96fc7aab92f234678d792be36741061be31acfaa1ac31300 SHA512 b485d24d174207b511afb878056564922f9c3fbfe0b18967dccd705930f3dd1f43b4f615abd325f30a7cde3d663d16546d5edb48d45748e953b929350504ac90 +MISC metadata.xml 627 BLAKE2B af677935e5cb5c43d3b0e4d8a204bcfb14f4b77dc386fd2a756923457ae88cdc33fd85a84879b7908662c3c1b20ce0ba5598ae708d764bd36a071e32d9beb2c8 SHA512 1038519441e238a48dafd9a0827d931cc3ca2618e57f7f1300bdc138e6bc2b768ae47f936456bf2aa5c434e617b628344aa4071fe805e698671d5f74ffb10163 diff --git a/app-emulation/docker-runc/docker-runc-1.0.0_rc4_p20180122.ebuild b/app-emulation/docker-runc/docker-runc-1.0.0_rc4_p20180122.ebuild new file mode 100644 index 000000000000..cf7b91c52a95 --- /dev/null +++ b/app-emulation/docker-runc/docker-runc-1.0.0_rc4_p20180122.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN="github.com/opencontainers/${PN/docker-}" + +if [[ ${PV} == *9999 ]]; then + inherit golang-vcs +else + MY_PV="${PV/_/-}" + EGIT_COMMIT="9f9c96235cc97674e935002fc3d78361b696a69e" + RUNC_COMMIT="9f9c962" # Change this when you update the ebuild + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm ~ppc64" + inherit golang-vcs-snapshot +fi + +DESCRIPTION="runc container cli tools (docker fork)" +HOMEPAGE="http://runc.io" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+ambient apparmor hardened +seccomp" + +RDEPEND=" + apparmor? ( sys-libs/libapparmor ) + seccomp? ( sys-libs/libseccomp ) + !app-emulation/runc +" + +S=${WORKDIR}/${P}/src/${EGO_PN} + +RESTRICT="test" + +src_prepare() { + default + sed -i -e "s/git rev-parse.*\$/echo gentoo)/" -e "/COMMIT :=/d" -e "/COMMIT_NO :=/d" Makefile || die +} + +src_compile() { + # Taken from app-emulation/docker-1.7.0-r1 + export CGO_CFLAGS="-I${ROOT}/usr/include" + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '') + -L${ROOT}/usr/$(get_libdir)" + + # build up optional flags + local options=( + $(usex ambient 'ambient' '') + $(usex apparmor 'apparmor' '') + $(usex seccomp 'seccomp' '') + ) + + GOPATH="${WORKDIR}/${P}" emake BUILDTAGS="${options[*]}" \ + COMMIT="${RUNC_COMMIT}" +} + +src_install() { + dobin runc +} diff --git a/app-emulation/docker-runc/metadata.xml b/app-emulation/docker-runc/metadata.xml new file mode 100644 index 000000000000..9fe8126b58a3 --- /dev/null +++ b/app-emulation/docker-runc/metadata.xml @@ -0,0 +1,19 @@ + + + + + runc is a CLI tool for spawning and running containers according + to the OCF (Open Container Format) specification. + + + mrueg@gentoo.org + Manuel RĂ¼ger + + + Enable support for ambient capability + Enable AppArmor support + + + docker/runc + + -- cgit v1.2.3