Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/superdiag/
Date: Sun, 13 Oct 2019 11:22:16
Message-Id: 1570965717.426ae0cb2024cf92638810f044deffbcda4278b5.juippis@gentoo
1 commit: 426ae0cb2024cf92638810f044deffbcda4278b5
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sat Sep 21 22:00:33 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 11:21:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=426ae0cb
7
8 sys-apps/superdiag: bump to version 1.2.0
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 sys-apps/superdiag/Manifest | 1 +
15 sys-apps/superdiag/superdiag-1.2.0.20190711.ebuild | 72 ++++++++++++++++++++++
16 2 files changed, 73 insertions(+)
17
18 diff --git a/sys-apps/superdiag/Manifest b/sys-apps/superdiag/Manifest
19 index 93dc6ed99a0..dca4774bedc 100644
20 --- a/sys-apps/superdiag/Manifest
21 +++ b/sys-apps/superdiag/Manifest
22 @@ -1 +1,2 @@
23 DIST SuperDiag_1.1.0_20180731_package.zip 2564515 BLAKE2B 9ae34682daf5aa8996989c434906dd59f64e569a1cd1ae107d1e7861430ae028829efd1a1aa1ba2b5269d13e0ac2bef33b106a945fbd800fba6766b10f7486a5 SHA512 b79eae3063fc1425ee2a7a71304ae8993da52e9a2a8b2565e5f4fe0f3f3cdf8a7016cf765dab9e440c71cb8ff6b311fa2e4067459d76268bcf2697e8344c4e9a
24 +DIST SuperDiag_1.2.0_20190711.zip 4826479 BLAKE2B c0ffaf59ab1cbbe406a907938bf028844781533516dc6b0f2c2ee8144395da48a43e5931ef65e6990c97cfb887dd086d7535260319721b534e3b66135c37c680 SHA512 24ac9224a302e4f61a56015476b5c5fb279a057acae97e12c1e8e9271a8f410337f6182d5204d531927b0004ccb76b65c784c91be2c3644d0f30db0c8eca4c6f
25
26 diff --git a/sys-apps/superdiag/superdiag-1.2.0.20190711.ebuild b/sys-apps/superdiag/superdiag-1.2.0.20190711.ebuild
27 new file mode 100644
28 index 00000000000..52739fd9846
29 --- /dev/null
30 +++ b/sys-apps/superdiag/superdiag-1.2.0.20190711.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +MY_BUILD="7119"
38 +MY_DATE="$(ver_cut 4)"
39 +MY_DATE_ISO="0711"
40 +MY_PN="SuperDiag"
41 +MY_PV="$(ver_cut 1-3)"
42 +MY_PV_PDF="$(ver_cut 1) $(ver_cut 2) $(ver_cut 3)"
43 +
44 +DESCRIPTION="Provides the capability to determine the health of Supermicro servers components"
45 +HOMEPAGE="https://www.supermicro.com"
46 +SRC_URI="${MY_PN}_${MY_PV}_${MY_DATE}.zip"
47 +
48 +KEYWORDS="-* ~amd64 ~x86"
49 +LICENSE="supermicro"
50 +SLOT="0"
51 +IUSE="iso usb"
52 +
53 +DEPEND="app-arch/unzip"
54 +
55 +RESTRICT="bindist fetch mirror"
56 +
57 +S="${WORKDIR}"
58 +
59 +pkg_nofetch() {
60 + elog "Please download ${A} from"
61 + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=SDO"
62 + elog "and place it in your DISTDIR directory."
63 +}
64 +
65 +src_unpack() {
66 + unpack ${A}
67 +
68 + if use iso; then
69 + unzip Diagnose_Remotely/ISOFor${MY_PN}_v${MY_PV}_${MY_BUILD}.zip -d iso || die
70 + fi
71 +
72 + if use usb; then
73 + unzip Diagnose_Remotely/USBFor${MY_PN}_v${MY_PV}_${MY_BUILD}.zip -d usb || die
74 + fi
75 +}
76 +
77 +src_install() {
78 + insinto /usr/share/superdiag
79 + doins startup.nsh ${MY_PN}_v${MY_PV}.efi EFI/Boot/BootX64.efi
80 +
81 + local DOCS=(
82 + "Supermicro Super Diagnostics Offline readme.txt"
83 + "Supermicro Super Diagnostics Offline User Guide V${MY_PV_PDF}.pdf"
84 + )
85 + dodoc "${DOCS[@]}"
86 +
87 + if use iso; then
88 + insinto /usr/share/superdiag/ISO
89 + doins iso/${MY_PN}_v${MY_PV}_${MY_DATE_ISO}.iso
90 +
91 + newdoc iso/Readme.txt Readme.ISO.txt
92 + fi
93 +
94 + if use usb; then
95 + insinto /usr/share/superdiag/USB
96 + doins usb/STARTUP.nsh
97 +
98 + dosym ../BootX64.efi /usr/share/superdiag/USB/BootX64.efi
99 + dosym ../${MY_PN}_v${MY_PV}.efi /usr/share/superdiag/USB/${MY_PN}_v${MY_PV}.efi
100 +
101 + newdoc usb/Readme.txt Readme.USB.txt
102 + fi
103 +}