public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-runc/
Date: Fri, 24 Feb 2017 10:27:19 +0000 (UTC)	[thread overview]
Message-ID: <1487931919.37e1e34967ecb4a2ec29122da2339731a9dbb137.mrueg@gentoo> (raw)

commit:     37e1e34967ecb4a2ec29122da2339731a9dbb137
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 24 10:25:19 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Fri Feb 24 10:25:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37e1e349

app-emulation/docker-runc: Initial version (docker-fork of runc)

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-emulation/docker-runc/Manifest                 |  1 +
 .../docker-runc-1.0.0_rc2_p20170201.ebuild         | 60 ++++++++++++++++++++++
 app-emulation/docker-runc/metadata.xml             | 20 ++++++++
 3 files changed, 81 insertions(+)

diff --git a/app-emulation/docker-runc/Manifest b/app-emulation/docker-runc/Manifest
new file mode 100644
index 0000000000..e3ee173fa9
--- /dev/null
+++ b/app-emulation/docker-runc/Manifest
@@ -0,0 +1 @@
+DIST docker-runc-1.0.0_rc2_p20170201.tar.gz 560793 SHA256 11f69923a786efb82b65d9f1eec0ac665a985e631a67f3f4d466dac720efacdd SHA512 8c19a02a55108cef36cbd1ff739a3c8e2962d188c426517fce91483ec525546d39c14072f0a0f2471b6b70a05cf6c1f0e99cfeb5e87203fcbae955bd5f5bd16b WHIRLPOOL 8a1f44234c668aca5c53e401ce80e2c297ad9c7ed0b10d782494e93020f824e6d5e3a00be221f1ff5d039df998c43556228503788181a45256d91278dd005721

diff --git a/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170201.ebuild b/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170201.ebuild
new file mode 100644
index 0000000000..d6ffc9f575
--- /dev/null
+++ b/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170201.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+EGO_PN="github.com/docker/${PN/docker-}"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit golang-vcs
+else
+	MY_PV="${PV/_/-}"
+	EGIT_COMMIT="9df8b306d01f59d3a8029be411de015b7304dd8f"
+	RUNC_COMMIT="9df8b3" # Change this when you update the ebuild
+	SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~ppc64"
+	inherit golang-vcs-snapshot
+fi
+
+DESCRIPTION="runc container cli tools (docker fork)"
+HOMEPAGE="http://runc.io"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="apparmor hardened +seccomp"
+
+RDEPEND="
+	apparmor? ( sys-libs/libapparmor )
+	seccomp? ( sys-libs/libseccomp )
+	!app-emulation/runc
+"
+
+S=${WORKDIR}/${P}/src/${EGO_PN}
+
+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)"
+
+	# Setup GOPATH so things build
+	rm -rf .gopath
+	mkdir -p .gopath/src/"$(dirname "${GITHUB_URI}")"
+	ln -sf ../../../.. .gopath/src/"${GITHUB_URI}"
+	export GOPATH="${PWD}/.gopath:${PWD}/vendor"
+
+	# build up optional flags
+	local options=(
+		$(usex apparmor 'apparmor')
+		$(usex seccomp 'seccomp')
+	)
+
+	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 0000000000..4a3ebf6cbb
--- /dev/null
+++ b/app-emulation/docker-runc/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<longdescription lang="en">
+		runc is a CLI tool for spawning and running containers according
+		to the OCF (Open Container Format) specification.
+	</longdescription>
+	<maintainer type="person">
+		<email>mrueg@gentoo.org</email>
+		<name>Manuel Rüger</name>
+	</maintainer>
+	<use>
+		<flag name="apparmor">
+			Enable AppArmor support.
+		</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">docker/runc</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2017-02-24 10:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-24 10:27 Manuel Rüger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-06 15:33 [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-runc/ Manuel Rüger
2017-03-20 14:37 Manuel Rüger
2017-04-05 10:21 Michael Weber
2017-04-06 17:11 Manuel Rüger
2017-04-21 15:04 Manuel Rüger
2017-04-21 19:01 William Hubbs
2017-06-28 11:24 Manuel Rüger
2017-07-16 11:48 Manuel Rüger
2017-08-21 10:10 Manuel Rüger
2017-09-10 11:00 Manuel Rüger
2017-09-10 11:24 Manuel Rüger
2017-09-25 14:06 Manuel Rüger
2017-11-03 11:55 Manuel Rüger
2017-11-05 20:50 Manuel Rüger
2017-11-22 14:49 Manuel Rüger
2018-01-02 12:57 Manuel Rüger
2018-01-02 13:05 Manuel Rüger
2018-01-02 13:06 Manuel Rüger
2018-02-09 16:50 Manuel Rüger
2018-03-19 22:52 Manuel Rüger
2018-03-19 22:54 Manuel Rüger
2018-04-10  1:13 Manuel Rüger
2019-04-10  8:44 Manuel Rüger
2020-05-16 10:33 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487931919.37e1e34967ecb4a2ec29122da2339731a9dbb137.mrueg@gentoo \
    --to=mrueg@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox