commit:     adc4ff5888f91270724d0371708ceea140603762
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  5 19:08:41 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Oct  5 19:09:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adc4ff58

app-emulation/runc: 1.0.2 bump

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-emulation/runc/Manifest          |  1 +
 app-emulation/runc/runc-1.0.2.ebuild | 78 ++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest
index 256eca2cc2a..e706170bb81 100644
--- a/app-emulation/runc/Manifest
+++ b/app-emulation/runc/Manifest
@@ -1 +1,2 @@
 DIST runc-1.0.0.tar.gz 2366170 BLAKE2B 
1b6455cd45bc51b92c12b3293037446da62957d441124e9b76fd44ce92329e0eb2fde2ef71c6519fc4d58bcbd4ef580f64d71753a6fc06f3f6e347de170bd9c3
 SHA512 
8ddad1e031237c07b6cab5cfe5bdb7b11bf98d5d1064ec06845f36da073fe65a0facc6a28ba5daff71cdcb50cfd5d1cd25e97385b4eddb35b287113c2771365c
+DIST runc-1.0.2.tar.gz 2374156 BLAKE2B 
526520adb7127e46e7258de75e66a15a5aac216a2a2fcb91f4d9c5da393892242c4d93c5f5483ab111bf29eed7d8f0c8c138ae83a22809d72802a981dcda0395
 SHA512 
434abd6d7ad2508c2272b627d8aeeb28ecd8461899bff463e7d2c7abbc0f0cbb2e0bafbfe81fc534fad506b1acb4bda3e05639ecd908bc9d0d2e9356f1e56e26

diff --git a/app-emulation/runc/runc-1.0.2.ebuild 
b/app-emulation/runc/runc-1.0.2.ebuild
new file mode 100644
index 00000000000..52f4e83f045
--- /dev/null
+++ b/app-emulation/runc/runc-1.0.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module linux-info
+
+# update on bump, look for https://github.com/docker\
+# docker-ce/blob/<docker ver OR 
branch>/components/engine/hack/dockerfile/install/runc.installer
+RUNC_COMMIT=52b36a2dd837e8462de8e01458bf02cf9eea47dd
+CONFIG_CHECK="~USER_NS"
+
+DESCRIPTION="runc container cli tools"
+HOMEPAGE="http://runc.io";
+MY_PV="${PV/_/-}"
+SRC_URI="https://github.com/opencontainers/${PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD-2 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="apparmor hardened +kmem +seccomp test"
+
+DEPEND="seccomp? ( sys-libs/libseccomp )"
+
+RDEPEND="
+       ${DEPEND}
+       !app-emulation/docker-runc
+       apparmor? ( sys-libs/libapparmor )
+"
+
+BDEPEND="
+       dev-go/go-md2man
+       test? ( "${RDEPEND}" )
+"
+
+# tests need busybox binary, and portage namespace
+# sandboxing disabled: mount-sandbox pid-sandbox ipc-sandbox
+# majority of tests pass
+RESTRICT+=" test"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_compile() {
+       # Taken from app-emulation/docker-1.7.0-r1
+       export CGO_CFLAGS="-I${ESYSROOT}/usr/include"
+       export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
+               -L${ESYSROOT}/usr/$(get_libdir)"
+
+       # build up optional flags
+       local options=(
+               $(usev apparmor)
+               $(usev seccomp)
+               $(usex kmem '' 'nokmem')
+       )
+
+       myemakeargs=(
+               BUILDTAGS="${options[*]}"
+               COMMIT="${RUNC_COMMIT}"
+       )
+
+       emake "${myemakeargs[@]}" runc man
+}
+
+src_install() {
+       myemakeargs+=(
+               PREFIX="${ED}/usr"
+               BINDIR="${ED}/usr/bin"
+               MANDIR="${ED}/usr/share/man"
+       )
+       emake "${myemakeargs[@]}" install install-man install-bash
+
+       local DOCS=( README.md PRINCIPLES.md docs/. )
+       einstalldocs
+}
+
+src_test() {
+       emake "${myemakeargs[@]}" localunittest
+}

Reply via email to