mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-containers/nvidia-container-toolkit: add 1.17.5
Closes: https://github.com/gentoo/gentoo/pull/41044 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST nvidia-container-toolkit-1.17.3.tar.gz 2718001 BLAKE2B 455a4159c45846951e8ebaee94393e20764e9e6cac10247dcbd4d9a16431a529ebe9bd6146fb590c1ea92f2e5f4c5561adfa6b8b495fe79f761e5664661acad4 SHA512 8c7a4290a1decc448c72e9a09213e0dc4e418ec633cefb16bb6b01fef7c502d23ed72cc1f3cc6583cad07feae5ca3cf44dad73e1274e042e3b26bdc7a4152b95
|
||||
DIST nvidia-container-toolkit-1.17.4.tar.gz 2720079 BLAKE2B 48f040872e6545455736bd8b4931ebc3988cb78d51c3a763987504b882ad2a79ada9e98251f06f14f2199cd89680beb14e84fdc444ef3a51ac1b7e1d89e95d98 SHA512 ba79670cfc5e0abec388af858f2f7f1a153c5bc90f0b9540ffc6a095b8724f08c329742bc22cdc700299e063668bf574a7ac0bfa4c964763370c9b0500d5057c
|
||||
DIST nvidia-container-toolkit-1.17.5.tar.gz 5357060 BLAKE2B 18cb5e1bbe8a5cc9c365d009fcd724edd7f9016a6cda97f3ea07604becb817e25ba56272c3eb8b29176b1e2384fc0ba0a190618a2e58cc8a659df5b66bf0f96e SHA512 4feb91c730946e33853afea5a073d92a78ca9bf737ae7dcbf6afc4071f9d531da08b616823b9a28b6c65c6f307725538d47319082ff38ef5af7b8e1286e7166f
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
Reference in New Issue
Block a user