You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.5 KiB
70 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
|
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"
|
||
5 years ago
|
SRC_URI="${MY_PN}_${MY_PV}_${MY_DATE}.zip"
|
||
6 years ago
|
|
||
|
KEYWORDS="-* ~amd64 ~x86"
|
||
|
LICENSE="supermicro"
|
||
|
SLOT="0"
|
||
|
IUSE="iso usb"
|
||
|
|
||
3 years ago
|
BDEPEND="app-arch/unzip"
|
||
6 years ago
|
|
||
|
RESTRICT="bindist fetch mirror"
|
||
|
|
||
|
S="${WORKDIR}"
|
||
|
|
||
5 years ago
|
pkg_nofetch() {
|
||
|
elog "Please download ${A} from"
|
||
|
elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=SDO"
|
||
|
elog "and place it in your DISTDIR directory."
|
||
|
}
|
||
|
|
||
6 years ago
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
|
||
|
if use iso; then
|
||
5 years ago
|
unzip Diagnose_Remotely/ISOFor${MY_PN}_${MY_PV}.zip -d iso || die
|
||
6 years ago
|
fi
|
||
|
|
||
|
if use usb; then
|
||
5 years ago
|
unzip Diagnose_Remotely/USBFor${MY_PN}_${MY_PV}.zip -d usb || die
|
||
6 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto /usr/share/superdiag
|
||
5 years ago
|
doins startup.nsh ${MY_PN}.efi EFI/Boot/BootX64.efi
|
||
6 years ago
|
|
||
|
local DOCS=(
|
||
5 years ago
|
"Supermicro Super Diagnostics Offline readme.txt"
|
||
5 years ago
|
"Supermicro Super Diagnostics Offline User Guide V${MY_PV}.pdf"
|
||
6 years ago
|
)
|
||
|
dodoc "${DOCS[@]}"
|
||
|
|
||
|
if use iso; then
|
||
|
insinto /usr/share/superdiag/ISO
|
||
5 years ago
|
doins iso/${MY_PN}_${MY_PV}.iso
|
||
6 years ago
|
|
||
|
newdoc iso/Readme.txt Readme.ISO.txt
|
||
|
fi
|
||
|
|
||
|
if use usb; then
|
||
|
insinto /usr/share/superdiag/USB
|
||
5 years ago
|
doins usb/startup.nsh
|
||
6 years ago
|
|
||
|
dosym ../BootX64.efi /usr/share/superdiag/USB/BootX64.efi
|
||
5 years ago
|
dosym ../${MY_PN}.efi /usr/share/superdiag/USB/${MY_PN}.efi
|
||
6 years ago
|
|
||
|
newdoc usb/Readme.txt Readme.USB.txt
|
||
|
fi
|
||
|
}
|