diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2020-03-04 11:30:11 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-03-04 11:31:30 -0800 |
commit | fe61cae8b65665ea2eebd36b984e5d75c929a29d (patch) | |
tree | 6807db336831073f392a1bd6d183fff88f1c8f24 /sys-apps/mlxup-bin | |
parent | licenses/Mellanox-AS-IS, profiles/license_groups: Add Mellanox license (diff) | |
download | gentoo-fe61cae8b65665ea2eebd36b984e5d75c929a29d.tar.gz gentoo-fe61cae8b65665ea2eebd36b984e5d75c929a29d.tar.bz2 gentoo-fe61cae8b65665ea2eebd36b984e5d75c929a29d.zip |
sys-apps/mlxup-bin: New package
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'sys-apps/mlxup-bin')
-rw-r--r-- | sys-apps/mlxup-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/mlxup-bin/metadata.xml | 8 | ||||
-rw-r--r-- | sys-apps/mlxup-bin/mlxup-bin-4.13.0.ebuild | 47 |
3 files changed, 59 insertions, 0 deletions
diff --git a/sys-apps/mlxup-bin/Manifest b/sys-apps/mlxup-bin/Manifest new file mode 100644 index 000000000000..2d7f8f953d4a --- /dev/null +++ b/sys-apps/mlxup-bin/Manifest @@ -0,0 +1,4 @@ +DIST mlxup-4.13.0-amd64.elf 12553984 BLAKE2B 4eb0cdf232156d227e07b6ce05fb7106b106c885f70b38e947c70ecffd871a143a68064175166ae07a02674e618ceaa09111c38f9d6a61510cb771649f3f5441 SHA512 ae884d0ca3a6fe11944362e6d361765a06da736780e4009192af66aa43fce20294dcfad8cb2ee1be25ac22720b30c75fff1d3736597830c1dd8a602decbb666f +DIST mlxup-4.13.0-x86.elf 12223208 BLAKE2B 55c2e9624d143be6edc909faa3cf15135057aa332f4d69aa94f3dcd56041b346c90dbf16648e5d69546a58b0ae0890b92991ab1373c585bd9fed4faad915b41f SHA512 871a58981e463217932f25e5deff1eb04e427127847f9d65f13c08208a90390050b06f17613cd7e67d15bc738afed1908c13a8f3f78e44df6684f8b9b2cf5c68 +DIST mlxup_release_notes_v4.13.0.pdf 318733 BLAKE2B 1d026863a816368fc0e67dbaa37ab79eb4ea42d59a9e453f166dcf7bd106ddfb5244f0a502e2f6fc24f05b735e347061dd0951165980751f4983ec006552cb90 SHA512 8dde6170d77577519ae0b798b8045aaf17ccba90a4c6b40194ed684e06c0efffda10177cc1e3da4373d1d5ae3e20561725d635cd0fd8a6c425a64b7c5a7bcfbd +DIST mlxup_user_guide_v1.4.pdf 307547 BLAKE2B e6fc418fbb8b89537cbe53ffd47a8bff00760c9579363343a9e808fe46584966aa7de3dc5f63e4ca8c1147af6afb118737f13b5eca3d1b15359b6bd8e3a09e03 SHA512 eff877d0254eb1bc8e2b8e29f6c669f8016e06f3d793b23ba58c523e993cb4a15efeec64d66acd7dde98ee1e8b15545ec20bee4f2c908464174a1552b70fd37a diff --git a/sys-apps/mlxup-bin/metadata.xml b/sys-apps/mlxup-bin/metadata.xml new file mode 100644 index 000000000000..56cae167d372 --- /dev/null +++ b/sys-apps/mlxup-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/mlxup-bin/mlxup-bin-4.13.0.ebuild b/sys-apps/mlxup-bin/mlxup-bin-4.13.0.ebuild new file mode 100644 index 000000000000..60f35e77c23d --- /dev/null +++ b/sys-apps/mlxup-bin/mlxup-bin-4.13.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN%-bin}" +MY_P="${MY_PN}-${PV}" +DOC_PV="1.4" + +DOC_FILES=( + "mlxup_user_guide_v${DOC_PV}.pdf" + "mlxup_release_notes_v${PV}.pdf" +) + +DESCRIPTION="Mellanox Update and Query Utility" +HOMEPAGE="https://www.mellanox.com/support/firmware/mlxup-mft" +SRC_URI=" + doc? ( $(for docfile in "${DOC_FILES[@]}"; do + printf -- 'https://www.mellanox.com/related-docs/prod_software/%s\n' "${docfile}" + done) + ) + amd64? ( https://www.mellanox.com/downloads/firmware/${MY_PN}/${PV}/SFX/linux_x64/${MY_PN} -> ${MY_P}-amd64.elf ) + x86? ( https://www.mellanox.com/downloads/firmware/${MY_PN}/${PV}/SFX/linux/${MY_PN} -> ${MY_P}-x86.elf ) +" +S="${WORKDIR}" + +LICENSE="Mellanox-AS-IS" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +QA_PREBUILT="*/${MY_PN}" + +src_install() { + if use amd64; then + newsbin "${DISTDIR}/${MY_P}-amd64.elf" ${MY_PN} + elif use x86; then + newsbin "${DISTDIR}/${MY_P}-x86.elf" ${MY_PN} + fi + + if use doc; then + local docfile + for docfile in "${DOC_FILES[@]}"; do + dodoc "${DISTDIR}/${docfile}" + done + fi +} |