diff options
author | Huang Rui <vowstar@gmail.com> | 2022-07-08 12:49:52 +0800 |
---|---|---|
committer | Huang Rui <vowstar@gmail.com> | 2022-07-08 12:49:52 +0800 |
commit | 350c753f97903397f5fe8f9c05f815007e339018 (patch) | |
tree | 7ce663d16f5be3dc11ba23d7b5d76b69d0502c5a /app-containers | |
parent | app-containers/nvidia-container-toolkit: changed url to https (diff) | |
download | guru-350c753f97903397f5fe8f9c05f815007e339018.tar.gz guru-350c753f97903397f5fe8f9c05f815007e339018.tar.bz2 guru-350c753f97903397f5fe8f9c05f815007e339018.zip |
app-containers/nvidia-container-toolkit: add 1.10.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
Diffstat (limited to 'app-containers')
-rw-r--r-- | app-containers/nvidia-container-toolkit/Manifest | 2 | ||||
-rw-r--r-- | app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.10.0.ebuild | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/app-containers/nvidia-container-toolkit/Manifest b/app-containers/nvidia-container-toolkit/Manifest index 46f689e5e..12a9e43f0 100644 --- a/app-containers/nvidia-container-toolkit/Manifest +++ b/app-containers/nvidia-container-toolkit/Manifest @@ -1944,6 +1944,8 @@ DIST mvdan.cc%2Fgofumpt%2F@v%2Fv0.1.1.mod 265 BLAKE2B 4232ab3ecc78532cc067fa1247 DIST mvdan.cc%2Finterfacer%2F@v%2Fv0.0.0-20180901003855-c20040233aed.mod 27 BLAKE2B 1fc5a95e4432c2d8c9c211155dc66a8bfc53f823f2129174bc7155b63f4c58607127dbd2d6bd793c91fde596a5c36a0acc527b13031dd29da156c04cc1efae32 SHA512 d58e0c14bafe02b1366d43f00d07951b4c11c3e4d8771d0f658367c107d7ed05266443e50a50e10d01ff57c9eb5bfd3bd95e56b2f56fc5cd704e48d9140d93e3 DIST mvdan.cc%2Flint%2F@v%2Fv0.0.0-20170908181259-adc824a0674b.mod 21 BLAKE2B ed7272fd29049af9e593f73cde21d7f73b40817f1e7592a1a706ee58c251aebdd423e4b1ce25405eaacb9a3b9b101af042bf12615e0cd907c8b24e183795a0f4 SHA512 a9fafa4c84459dc2958a4587b99823476dccd1e245fde663c42c3fa8784c99df27a3d90e0f9f1125f0a3b82ca89dc28ae58cc0d90084ff9df16acde7981b15ea DIST mvdan.cc%2Funparam%2F@v%2Fv0.0.0-20210104141923-aac4ce9116a7.mod 244 BLAKE2B 2c036357fc8644a98fe147a4725e68b93fbe6cdb18dc10bf2e49fbc37968b2c555cfb196eeae33ad873bbdaf4ee84fbe5f45bbfcc2148e54b82a71fbe6fb52e6 SHA512 1ee461698c2325a9cd8c3ec1927704384724570c74dddc6c6ea1c32aea50658db74553d3918ff23b311a1ade32ecafb276cb7bd53e318723e7e14716bd7ea399 +DIST nvidia-container-toolkit-1.10.0-deps.tar.xz 608539028 BLAKE2B 4442849f35ed952eea9cee180d27b21dbbb3bb01ea24f9536b59791bb2cf99e4c0de82eeafd1750620e4981a5f73428e6eaeee7350689df00b3e80af6354d33b SHA512 51c94b7114e357e3a8753eea3e8ddccec1ce40268328d777c7ec069bc6d539f1ffb81bdc17b7dfcb552c303fd21c6b64e130f92fe0f5b9dfff31013e3a1eeaa2 +DIST nvidia-container-toolkit-1.10.0.tar.gz 1817732 BLAKE2B 3a679aca183a62a16318a90442b764252e4e1048076c9d0fc439074c13370453152f19cf344c9c727892b4a998ce370c895a43b2fea77796c49e06f3e0628a37 SHA512 4f35918811edf7ea0f24d04eba12e4670b039edd0bb29ed4f16b47c4208f8a3d4316042f5ca52a278fedd1dce549070df69807080b1a7bda4a859369ad707bf9 DIST nvidia-container-toolkit-1.9.0.tar.gz 1501756 BLAKE2B 5e6b34bab370eff531a67d03590c44512a1e48d8a05715b69b1ff67b145489f19fe6f00bd4bec8634768ef65155221cc750c4a23ea355648ae27ed4d86ace59a SHA512 aa734e5611d2ee6b5a55cbacebf29d7094ff4ff6f3317e381bee529582d7374cccc9297846fd77dbc569df6646095c186f1c0287fa39ea5f15d2a13cf55c8c32 DIST rsc.io%2Fbinaryregexp%2F@v%2Fv0.2.0.mod 36 BLAKE2B 61110bed2b9e99e0250cf6e8b842257202c89b3462edf9368b73cab29f9dbd4dcc66c3e290a1d6329b7d62321eecc52082a8c4c0797eac743a29a8a00910a93f SHA512 db50ff677b0bdccbc1a1ad3df7c5cc76f2fcccf3ab99d08d1c2868440eb9b893fe89452f4286f7d42f2f16abf0f4acda67fe86e174dcfa730a743aafcc166774 DIST rsc.io%2Fquote%2Fv3%2F@v%2Fv3.1.0.mod 55 BLAKE2B f1f0ba35f0ffd200ed37c06b2025c1fd436e3fd857bd525b9295c0cbcade7e1f037e3f566124a7ef428384d50525426f0d40468c967e39bac6057174710e2566 SHA512 e6357ddd7d09692c60e59e6cb80469ade8284052cdd3ea520ec4dbcb42c1cabe045c599e43cce94bec022bd82e87a554ecac42f8c917cf2ff44daff9c1a147d5 diff --git a/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.10.0.ebuild b/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.10.0.ebuild new file mode 100644 index 000000000..e5407673e --- /dev/null +++ b/app-containers/nvidia-container-toolkit/nvidia-container-toolkit-1.10.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 + SRC_URI=" + https://github.com/NVIDIA/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz + https://media.githubusercontent.com/media/vowstar/distfiles/main/${P}-deps.tar.xz + " + S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" + 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 binaries +} + +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." +} |