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 2878F139694 for ; Mon, 20 Mar 2017 14:37:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CBBB21C028; Mon, 20 Mar 2017 14:37:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2F7821C028 for ; Mon, 20 Mar 2017 14:37:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A1E833BEDB for ; Mon, 20 Mar 2017 14:37:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 651F96ED8 for ; Mon, 20 Mar 2017 14:37:49 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1490020627.49ad99a84bba660751a439bff3ab5b1aeab5faba.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-runc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/docker-runc/Manifest app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170308.ebuild X-VCS-Directories: app-emulation/docker-runc/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 49ad99a84bba660751a439bff3ab5b1aeab5faba X-VCS-Branch: master Date: Mon, 20 Mar 2017 14:37:49 +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-Archives-Salt: 3b440803-e404-418c-b2f1-36156cd15f30 X-Archives-Hash: 9597e78763ddfdd8500261b419f4a369 commit: 49ad99a84bba660751a439bff3ab5b1aeab5faba Author: Manuel Rüger gentoo org> AuthorDate: Mon Mar 20 14:37:07 2017 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Mon Mar 20 14:37:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ad99a8 app-emulation/docker-runc: Update snapshot for docker-17.03.1 Package-Manager: Portage-2.3.4, Repoman-2.3.2 app-emulation/docker-runc/Manifest | 1 + .../docker-runc-1.0.0_rc2_p20170308.ebuild | 59 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/app-emulation/docker-runc/Manifest b/app-emulation/docker-runc/Manifest index 28860b54846..9142fa22e14 100644 --- a/app-emulation/docker-runc/Manifest +++ b/app-emulation/docker-runc/Manifest @@ -1,2 +1,3 @@ DIST docker-runc-1.0.0_rc2_p20170201.tar.gz 560793 SHA256 11f69923a786efb82b65d9f1eec0ac665a985e631a67f3f4d466dac720efacdd SHA512 8c19a02a55108cef36cbd1ff739a3c8e2962d188c426517fce91483ec525546d39c14072f0a0f2471b6b70a05cf6c1f0e99cfeb5e87203fcbae955bd5f5bd16b WHIRLPOOL 8a1f44234c668aca5c53e401ce80e2c297ad9c7ed0b10d782494e93020f824e6d5e3a00be221f1ff5d039df998c43556228503788181a45256d91278dd005721 DIST docker-runc-1.0.0_rc2_p20170222.tar.gz 560798 SHA256 ab7913b8062f77c0a2b16ae335d74eb78aa85e8d4dcccbf0793b14caf1a3f0b2 SHA512 1ea7ed8a98b2cbc508933608d7dc16b26c1507021200691e66fa61d4c567a5437aafae8b9710bf29ba94a8c4853de7f9e38e9e09de9a358a68e0e431771a13cc WHIRLPOOL e198528c956de5921ac5fa4395d0391d4b94413b46d82596bc47c525365e80b3b839df07b7f63642ad7d9c6f078c265f6e0d16397dba086c152e50ee0ebdb7be +DIST docker-runc-1.0.0_rc2_p20170308.tar.gz 561400 SHA256 bdd0fc0b5db42bb1fc439d5a5d6347d97b285e676559afb620ffd9f62fc1de26 SHA512 f17c7ff09578573a161f14616446e74d92d66039c1462bce23ea507b151eb66ede12d2ca583d3dace21d186a80bdadf222fc180bf1123e29c68e43f2f2d949c8 WHIRLPOOL f6853ccdd09ca1481828b20e64403151cd9c5d46ceb81c50e884d47e18f8594c21bf53102b252852b259b6b0186f54f070fb7f3c7e4447123cbf05aa69233035 diff --git a/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170308.ebuild b/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170308.ebuild new file mode 100644 index 00000000000..d57a98ae48f --- /dev/null +++ b/app-emulation/docker-runc/docker-runc-1.0.0_rc2_p20170308.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN="github.com/docker/${PN/docker-}" + +if [[ ${PV} == *9999 ]]; then + inherit golang-vcs +else + MY_PV="${PV/_/-}" + EGIT_COMMIT="54296cf40ad8143b62dbcaa1d90e520a2136ddfe" + RUNC_COMMIT="54296cf" # 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 +}