diff options
author | 2017-10-12 21:00:11 +0200 | |
---|---|---|
committer | 2017-10-12 21:01:27 +0200 | |
commit | af336f33263b2109bd833b9a343741e31974d673 (patch) | |
tree | 94b053ab462c990927dece2d65c55c57604656b5 /app-emulation/runc/runc-1.0.0_rc4.ebuild | |
parent | www-client/qupzilla: 2.2.0 version bump (diff) | |
download | gentoo-af336f33263b2109bd833b9a343741e31974d673.tar.gz gentoo-af336f33263b2109bd833b9a343741e31974d673.tar.bz2 gentoo-af336f33263b2109bd833b9a343741e31974d673.zip |
app-emulation/runc: Version bump to 1.0.0_rc4
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'app-emulation/runc/runc-1.0.0_rc4.ebuild')
-rw-r--r-- | app-emulation/runc/runc-1.0.0_rc4.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-emulation/runc/runc-1.0.0_rc4.ebuild b/app-emulation/runc/runc-1.0.0_rc4.ebuild new file mode 100644 index 000000000000..886cd2b77286 --- /dev/null +++ b/app-emulation/runc/runc-1.0.0_rc4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN="github.com/opencontainers/${PN}" + +if [[ ${PV} == *9999 ]]; then + inherit golang-build golang-vcs +else + MY_PV="${PV/_/-}" + EGIT_COMMIT="v${MY_PV}" + RUNC_COMMIT="2e7cfe0" # 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-build golang-vcs-snapshot +fi + +DESCRIPTION="runc container cli tools" +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/docker-runc +" + +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="${S}"\ + emake BUILDTAGS="${options[*]}" \ + COMMIT="${RUNC_COMMIT}" -C src/${EGO_PN} +} + +src_install() { + pushd src/${EGO_PN} || die + dobin runc + dodoc README.md PRINCIPLES.md + popd || die +} |