app-containers/nvidia-container-toolkit: bump to v1.18.0

Closes: https://bugs.gentoo.org/966241
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44715
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu 2025-11-21 22:30:27 +08:00 committed by Sam James
parent 20b0c0e483
commit 7e28cec464
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 59 additions and 0 deletions

View File

@ -3,3 +3,4 @@ DIST nvidia-container-toolkit-1.17.4.tar.gz 2720079 BLAKE2B 48f040872e6545455736
DIST nvidia-container-toolkit-1.17.5.tar.gz 5357060 BLAKE2B 18cb5e1bbe8a5cc9c365d009fcd724edd7f9016a6cda97f3ea07604becb817e25ba56272c3eb8b29176b1e2384fc0ba0a190618a2e58cc8a659df5b66bf0f96e SHA512 4feb91c730946e33853afea5a073d92a78ca9bf737ae7dcbf6afc4071f9d531da08b616823b9a28b6c65c6f307725538d47319082ff38ef5af7b8e1286e7166f
DIST nvidia-container-toolkit-1.17.6.tar.gz 5357391 BLAKE2B 607b153cf12fbdd94ecb14404582f07710e44bf04f88e958fa6c43e59a04075121dc19ad07d43ca4493b3dba517df638373e85add18bfde1ea454b6f66e15f29 SHA512 9b4dc074c21c88f3dcafe1fc1a5b3c12e7cab1bd904817a2c0fb759d89e46c7df06cad2fbf8c8019b0e56f45828e6e257be834d74979992dc4c215e7b27d6ba1
DIST nvidia-container-toolkit-1.17.8.tar.gz 5377929 BLAKE2B 10047352812fdcd05381bf8b4bd6c032057c2a72630dcf867f97657cb4c344b0af483fb005eefad74f29296ac91958e17c453a71d9538b725b22c492c3d86715 SHA512 1ff7a39c09bd51222e3edbe6f31c3838df6a7d09bb0a0171df1e04be613502079253574fe2fb087b253687aa2a826d77f2410253023a127432e9d05a89174159
DIST nvidia-container-toolkit-1.18.0.tar.gz 5752931 BLAKE2B 0ac6d294b80ea6cffd6d9fc4794e0b4048da425de7d115de645afb3a585e4862e42e2bf092f2333312ea2e117db1b0d488d51aab986d96c52e008dcc423e6b02 SHA512 5cfe75b385ae9950c7668ffca540e9d5c1ce770dd8d786314e4145463610b5ee3c4a2dc541df8fee203a9c0300380d71b2ba196e0796d4592d6bfccc7730aa38

View File

@ -0,0 +1,58 @@
# Copyright 1999-2025 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/container-toolkit"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
else
SRC_URI="
https://github.com/NVIDIA/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz
"
S="${WORKDIR}/${PN}-${PV/_rc/-rc.}"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
SLOT="0/${PV}"
# Some tests may require specific environmental setups or additional hardware.
RESTRICT="test" # Bug 831702
# Bug 950233 version should not be newer than libnvidia-container
RDEPEND="
~sys-libs/libnvidia-container-${PV}
"
src_compile() {
emake binaries
}
src_install() {
dobin nvidia-cdi-hook \
nvidia-container-runtime \
nvidia-container-runtime.cdi \
nvidia-container-runtime.legacy \
nvidia-container-runtime-hook \
nvidia-ctk
insinto "/etc/nvidia-container-runtime"
doins "${FILESDIR}/config.toml"
}
pkg_postinst() {
elog "Your docker or containerd (if applicable) service may need restart"
elog "after install this package:"
elog "OpenRC: rc-service containerd restart; rc-service docker restart"
elog "systemd: systemctl restart containerd; 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."
}