diff options
author | Huang Rui <vowstar@gmail.com> | 2020-07-25 11:57:48 +0800 |
---|---|---|
committer | Huang Rui <vowstar@gmail.com> | 2020-07-25 11:57:48 +0800 |
commit | 9686aa65fedd0eecaec28d6a5629482d2a6b74e1 (patch) | |
tree | a309b6bff23f22ca95ab12ed68f9fbabd06c4bee /app-emulation | |
parent | app-emulation/nvidia-container-toolkit: update URL (diff) | |
download | guru-9686aa65fedd0eecaec28d6a5629482d2a6b74e1.tar.gz guru-9686aa65fedd0eecaec28d6a5629482d2a6b74e1.tar.bz2 guru-9686aa65fedd0eecaec28d6a5629482d2a6b74e1.zip |
app-emulation/nvidia-container-toolkit: bump to 1.2.0
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Huang Rui <vowstar@gmail.com>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/nvidia-container-toolkit/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.2.0.ebuild | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/app-emulation/nvidia-container-toolkit/Manifest b/app-emulation/nvidia-container-toolkit/Manifest index 9cf4b30f8..4b795eb26 100644 --- a/app-emulation/nvidia-container-toolkit/Manifest +++ b/app-emulation/nvidia-container-toolkit/Manifest @@ -25,3 +25,4 @@ DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.mod 95 BLAKE2B DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.zip 101467 BLAKE2B 8bb0aec8e693a4c0da59f1931e1fdcf6f94a236faba149d5af91e87284f39c693d20be65248eecde739cb555e371804fa6c723a56c69e6d02a347ba908e968b1 SHA512 bee7757d760f5ba1b9f7523af358652a5cb65f2b0064da097f78450871b2636efcbab0298a9871bbb3ce8012bf95a155949251d4f61464dde510097b936b47a8 DIST nvidia-container-toolkit-1.1.1.tar.gz 1767996 BLAKE2B 3298f157221e06296665a0d612ad96b4410ce1b79770d0647be7bd1db98df8b5ba826f148777cf06d3afaca731ba276f1221471c1a24259cc2a42d976671bf9b SHA512 47bd96e972044ea06ab2de8a974ad1b83d80cf07cf81526a2fbff724190bca1422ffb85bdd2c3386eaf1f8866651b21161590a9d778509801eed3eced18a96f6 DIST nvidia-container-toolkit-1.1.2.tar.gz 1744451 BLAKE2B d76e94479825c79c4e27721fb2cb9d8b9e4cf00536db59c1deb42b4633a0465bcc5c11c13b61d163c2017357041415b8850e414b133effafd35886a4d2169177 SHA512 0cb84b7c785c2e050abe7036a5b9cafc0d24b3e83d70aa0d220468c97bd75e928790ec1d5d945a4fe3723cfc8aaa21570a668c53dcd277a9de79d8ec652b751b +DIST nvidia-container-toolkit-1.2.0.tar.gz 1748985 BLAKE2B b96d7e50c96583d03c4658c11ce08cf700299254afdeda51ffcee1c160a24fdb12d9e042ff5513a6c708ecfaf091741f1914518e8695f3b1f80ef175e8932acf SHA512 9cb40afd1bdc1005c163242ac75eee40c9d9664a18b126d7aec5c6cc1a1dbf016408b577497684f768ceed49350362c7f1bd7634babe038e47bfe5ac0d9d31f5 diff --git a/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.2.0.ebuild b/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.2.0.ebuild new file mode 100644 index 000000000..b49060c37 --- /dev/null +++ b/app-emulation/nvidia-container-toolkit/nvidia-container-toolkit-1.2.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +GITHUB_PN="container-toolkit" +EGO_PN="github.com/NVIDIA/${GITHUB_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/${GITHUB_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 +" + +src_compile() { + LIB_NAME=${PN} LIB_VERSION=${PV} go build \ + -ldflags "-s -w" \ + -o "${PN}" \ + "${EGO_PN}/pkg" || die +} + +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." +} |