From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92CD113835D for ; Thu, 24 Sep 2020 00:09:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C271E0841; Thu, 24 Sep 2020 00:09:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82218E0841 for ; Thu, 24 Sep 2020 00:09:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FF9933D4A6 for ; Thu, 24 Sep 2020 00:09:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99B8137B for ; Thu, 24 Sep 2020 00:09:30 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1600905497.185566bdd2dcc39e874bb4ecb6b844732434262f.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/runc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/runc/runc-1.0.0_rc10-r1.ebuild X-VCS-Directories: app-emulation/runc/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 185566bdd2dcc39e874bb4ecb6b844732434262f X-VCS-Branch: master Date: Thu, 24 Sep 2020 00:09:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cb7b2490-a3ef-4adf-acf5-4a4ff7e87e24 X-Archives-Hash: 6853c6373dde3e41935dac78e2457be3 commit: 185566bdd2dcc39e874bb4ecb6b844732434262f Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Sep 23 23:23:11 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Sep 23 23:58:17 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=185566bd app-emulation/runc: revbump 1.0.0_rc10 install manpages and docs, add selinux useflag Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> app-emulation/runc/runc-1.0.0_rc10-r1.ebuild | 78 ++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/app-emulation/runc/runc-1.0.0_rc10-r1.ebuild b/app-emulation/runc/runc-1.0.0_rc10-r1.ebuild new file mode 100644 index 00000000000..71ec6fbe3a4 --- /dev/null +++ b/app-emulation/runc/runc-1.0.0_rc10-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-vcs-snapshot linux-info + +# update on bump, look for https://github.com/docker\ +# docker-ce/blob//components/engine/hack/dockerfile/install/runc.installer +RUNC_COMMIT="dc9208a3303feef5b3839f4323d9beb36df0a9dd" +CONFIG_CHECK="~USER_NS" +EGO_PN="github.com/opencontainers/${PN}" + +DESCRIPTION="runc container cli tools" +HOMEPAGE="http://runc.io" +SRC_URI="https://github.com/opencontainers/${PN}/archive/v${RUNC_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD-2 BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="apparmor +ambient hardened +kmem +seccomp selinux 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" + +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=( + $(usev ambient) + $(usev apparmor) + $(usev seccomp) + $(usev selinux) + $(usex kmem '' 'nokmem') + ) + + myemakeargs=( + BINDIR="${ED}/usr/bin" + BUILDTAGS="${options[*]}" + COMMIT=${RUNC_COMMIT} + DESTDIR="${ED}" + PREFIX="${ED}/usr" + GOPATH="${S}" + -C "src/${EGO_PN}" + ) + + emake "${myemakeargs[@]}" runc man +} + +src_install() { + emake "${myemakeargs[@]}" install install-man install-bash + + local DOCS=( src/"${EGO_PN}"/{README.md,PRINCIPLES.md,docs/.} ) + einstalldocs +} + +src_test() { + emake "${myemakeargs[@]}" localunittest +}