diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-16 04:41:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-16 04:41:57 +0100 |
commit | 668b36c015ae61191cf7d5007b0afdbdcedab441 (patch) | |
tree | 2ea72a4f3d3f0cbdf023f218912809157a31ab7d /sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild | |
parent | 7a0f8a92967dc1c6eab8d6f66ec476905009a287 (diff) |
gentoo auto-resync : 16:07:2023 - 04:41:57
Diffstat (limited to 'sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild')
-rw-r--r-- | sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild b/sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild new file mode 100644 index 000000000000..c570e794a6ea --- /dev/null +++ b/sys-apps/superdiag/superdiag-1.8.0.20230310.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_DATE="$(ver_cut 4)" +MY_PN="SuperDiag" +MY_PV="$(ver_cut 1-3)" + +DESCRIPTION="Provides the capability to determine the health of Supermicro servers components" +HOMEPAGE="https://www.supermicro.com" +SRC_URI="https://www.supermicro.com/Bios/sw_download/557/${MY_PN}_${MY_PV}_${MY_DATE}.zip" +S="${WORKDIR}" + +KEYWORDS="-* ~amd64 ~x86" +LICENSE="supermicro" +SLOT="0" +IUSE="iso usb" + +BDEPEND="app-arch/unzip" + +RESTRICT="bindist mirror" + +src_unpack() { + unpack ${A} + + if use iso; then + unzip Diagnose_Remotely/ISOFor${MY_PN}_${MY_PV}.zip -d iso || die + fi + + if use usb; then + unzip Diagnose_Remotely/USBFor${MY_PN}_${MY_PV}.zip -d usb || die + fi +} + +src_install() { + insinto /usr/share/superdiag + doins startup.nsh ${MY_PN}.efi EFI/Boot/BootX64.efi + + local DOCS=( + "Supermicro Super Diagnostics Offline readme.txt" + "Supermicro Super Diagnostics Offline User Guide V${MY_PV}.pdf" + ) + dodoc "${DOCS[@]}" + + if use iso; then + insinto /usr/share/superdiag/ISO + doins iso/${MY_PN}_${MY_PV}.iso + + newdoc iso/Readme.txt Readme.ISO.txt + fi + + if use usb; then + insinto /usr/share/superdiag/USB + doins usb/startup.nsh + + dosym ../BootX64.efi /usr/share/superdiag/USB/BootX64.efi + dosym ../${MY_PN}.efi /usr/share/superdiag/USB/${MY_PN}.efi + + newdoc usb/Readme.txt Readme.USB.txt + fi +} |