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 D233B1382C5 for ; Mon, 28 Dec 2020 08:23:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FE69E0E29; Mon, 28 Dec 2020 08:23:11 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 EEA26E0E29 for ; Mon, 28 Dec 2020 08:23:10 +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 E0E733413DA for ; Mon, 28 Dec 2020 08:23:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 65D4549 for ; Mon, 28 Dec 2020 08:23:08 +0000 (UTC) From: "Rui Huang" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rui Huang" Message-ID: <1609143780.24e646a28fda44ce5690562529c51508b4d8e0cf.vowstar@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/nvidia-container-toolkit/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-emulation/nvidia-container-toolkit/Manifest app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.4.0.ebuild X-VCS-Directories: app-emulation/nvidia-container-toolkit/ X-VCS-Committer: vowstar X-VCS-Committer-Name: Rui Huang X-VCS-Revision: 24e646a28fda44ce5690562529c51508b4d8e0cf X-VCS-Branch: dev Date: Mon, 28 Dec 2020 08:23:08 +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: b8b68248-1ccc-4d87-8833-0944c3fbe91e X-Archives-Hash: 162cc44f911edb7e6b50d4b022b8f029 commit: 24e646a28fda44ce5690562529c51508b4d8e0cf Author: Huang Rui gmail com> AuthorDate: Mon Dec 28 08:23:00 2020 +0000 Commit: Rui Huang gmail com> CommitDate: Mon Dec 28 08:23:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=24e646a2 app-emulation/nvidia-container-toolkit: bump to 1.4.0 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Huang Rui gmail.com> app-emulation/nvidia-container-toolkit/Manifest | 1 + .../nvidia-container-toolkit-1.4.0.ebuild | 93 ++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/app-emulation/nvidia-container-toolkit/Manifest b/app-emulation/nvidia-container-toolkit/Manifest index 9f0c5143..ace35969 100644 --- a/app-emulation/nvidia-container-toolkit/Manifest +++ b/app-emulation/nvidia-container-toolkit/Manifest @@ -24,3 +24,4 @@ DIST gopkg.in%2Fcheck.v1%2F@v%2Fv0.0.0-20161208181325-20d25e280405.mod 25 BLAKE2 DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.mod 95 BLAKE2B fbb87f0644ec9da5d4386358d23cdb15b0d23e8212e712f16f338455a3a0ad19fbfd63e92c955c359237ddfa8bb76d6d08280eead24d321668431891eca1e8ab SHA512 307ca9123efc577ca04828996ee9d8edbb51794ccb4b8d9f169ba689e7276aa5f6ae106a04b22b7fab853ffacfebcbf74468b64eaefd57445864c1fbc77fad9d DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.zip 101467 BLAKE2B 8bb0aec8e693a4c0da59f1931e1fdcf6f94a236faba149d5af91e87284f39c693d20be65248eecde739cb555e371804fa6c723a56c69e6d02a347ba908e968b1 SHA512 bee7757d760f5ba1b9f7523af358652a5cb65f2b0064da097f78450871b2636efcbab0298a9871bbb3ce8012bf95a155949251d4f61464dde510097b936b47a8 DIST nvidia-container-toolkit-1.3.0.tar.gz 27609 BLAKE2B 08519a0559087d1c0dee989414e4ca2334278bdc3c9a49cbe00bc8a4194ce14e0a79ba9c902b121e0c0901d4dcfb2e86dc8b4aaced3f636a3ad55ac3fabcd836 SHA512 3a0eef062f186ff935840305c1121fb8dbac630eb1eb04af9756c2dffe5c2f04a4a164f95ccd8ab7a062f26e655f8ace06ebc16675b0bf00eecae0e1eaba71b6 +DIST nvidia-container-toolkit-1.4.0.tar.gz 27661 BLAKE2B 653dd83f2061316ae71a22c1a8db8018d3990346e163890e9601e4a846b2948bfe795566f31e3f7532d721e0f56ec1d3ff084f0b552fd285b71174f39098027e SHA512 d2c4127d09734ce487596d9faa118d36f758c3169003ed0b3539324f4f1a2c0b3179c312fabaf62514ec8f8e6161e267ef939137bbba9f86cdb1058e8ad35162 diff --git a/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.4.0.ebuild b/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.4.0.ebuild new file mode 100644 index 00000000..6319b481 --- /dev/null +++ b/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.4.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGO_PN="github.com/NVIDIA/${PN}" + +inherit go-module + +DESCRIPTION="NVIDIA container runtime toolkit" +HOMEPAGE="https://github.com/NVIDIA/nvidia-container-toolkit" + +if [[ "${PV}" == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git" + inherit git-r3 + + src_unpack() { + git-r3_src_unpack + go-module_live_vendor + } +else + EGO_SUM=( + "github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=" + "github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=" + "github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=" + "github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=" + "github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=" + "github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=" + "github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=" + "github.com/stretchr/testify v1.6.0 h1:jlIyCplCJFULU/01vCkhKuTyc3OorI3bJFuw6obfgho=" + "github.com/stretchr/testify v1.6.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=" + "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=" + "golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=" + "golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=" + "golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=" + "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=" + "golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=" + "golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=" + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=" + "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=" + "golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=" + "golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=" + "golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=" + "golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=" + "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=" + "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=" + "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=" + ) + go-module_set_globals + + SRC_URI=" + https://github.com/NVIDIA/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI} + " + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="" + +RDEPEND=" + sys-libs/libnvidia-container +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + app-arch/unzip + sys-devel/make +" + +src_compile() { + emake binary +} + +src_install() { + dobin "${PN}" + into "/usr/bin" + dosym "${PN}" "/usr/bin/nvidia-container-runtime-hook" + insinto "/etc/nvidia-container-runtime" + doins "${FILESDIR}/config.toml" +} + +pkg_postinst() { + elog "Your docker service must restart after install this package." + elog "OpenRC: sudo rc-service docker restart" + elog "systemd: sudo systemctl restart docker" + elog "You may need to edit your /etc/nvidia-container-runtime/config.toml" + elog "file before running ${PN} for the first time." + elog "For details, please see the NVIDIA docker manual page." +}