diff options
author | William Hubbs <williamh@gentoo.org> | 2021-06-10 16:53:13 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2021-06-10 16:53:13 -0500 |
commit | a17208eaff0d8fefee0ad5eb5b217af17f613d10 (patch) | |
tree | 5ee9f285e7e50a49a605e59e7f76b2ee07f7674c /app-emulation/runc/runc-1.0.0_rc95.ebuild | |
parent | app-emulation/docker-proxy: 0.8.0_p20210525 bump (diff) | |
download | gentoo-a17208eaff0d8fefee0ad5eb5b217af17f613d10.tar.gz gentoo-a17208eaff0d8fefee0ad5eb5b217af17f613d10.tar.bz2 gentoo-a17208eaff0d8fefee0ad5eb5b217af17f613d10.zip |
app-emulation/runc: 1.0.0_rc95 bump
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-emulation/runc/runc-1.0.0_rc95.ebuild')
-rw-r--r-- | app-emulation/runc/runc-1.0.0_rc95.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/app-emulation/runc/runc-1.0.0_rc95.ebuild b/app-emulation/runc/runc-1.0.0_rc95.ebuild new file mode 100644 index 000000000000..316f720fc29c --- /dev/null +++ b/app-emulation/runc/runc-1.0.0_rc95.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=ff819c7e9184c13b7c2607fe6c30ae19403a7aff +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 ~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 +} |