Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/superdiag/
Date: Mon, 01 Oct 2018 07:37:16
Message-Id: 1538379419.d723cdec15635a4dc4522028cb2e05b6380e4670.mgorny@gentoo
1 commit: d723cdec15635a4dc4522028cb2e05b6380e4670
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sun Sep 30 22:13:07 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 1 07:36:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d723cdec
7
8 sys-apps/superdiag: New package
9
10 Closes: https://bugs.gentoo.org/665242
11 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
12 Package-Manager: Portage-2.3.50, Repoman-2.3.11
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14 Closes: https://github.com/gentoo/gentoo/pull/9780
15
16 sys-apps/superdiag/Manifest | 1 +
17 sys-apps/superdiag/metadata.xml | 24 +++++++
18 sys-apps/superdiag/superdiag-1.1.0.20180731.ebuild | 82 ++++++++++++++++++++++
19 3 files changed, 107 insertions(+)
20
21 diff --git a/sys-apps/superdiag/Manifest b/sys-apps/superdiag/Manifest
22 new file mode 100644
23 index 00000000000..93dc6ed99a0
24 --- /dev/null
25 +++ b/sys-apps/superdiag/Manifest
26 @@ -0,0 +1 @@
27 +DIST SuperDiag_1.1.0_20180731_package.zip 2564515 BLAKE2B 9ae34682daf5aa8996989c434906dd59f64e569a1cd1ae107d1e7861430ae028829efd1a1aa1ba2b5269d13e0ac2bef33b106a945fbd800fba6766b10f7486a5 SHA512 b79eae3063fc1425ee2a7a71304ae8993da52e9a2a8b2565e5f4fe0f3f3cdf8a7016cf765dab9e440c71cb8ff6b311fa2e4067459d76268bcf2697e8344c4e9a
28
29 diff --git a/sys-apps/superdiag/metadata.xml b/sys-apps/superdiag/metadata.xml
30 new file mode 100644
31 index 00000000000..c8ab6cc03ab
32 --- /dev/null
33 +++ b/sys-apps/superdiag/metadata.xml
34 @@ -0,0 +1,24 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>ck+gentoo@××××××××.de</email>
40 + <name>Conrad Kostecki</name>
41 + </maintainer>
42 + <maintainer type="project">
43 + <email>proxy-maint@g.o</email>
44 + <name>Proxy Maintainers</name>
45 + </maintainer>
46 + <longdescription>
47 + The Super Diagnostics provides offline the capability to determine
48 + the health of Supermicro server's components, including CPU, memory and I/O.
49 + Features: Designed for Supermicro Sytems, offline diagnostics,
50 + command line interface (CLI), local and remote diagnostics,
51 + automatically collects information on detected devices,
52 + test results reported in output files and flexible test coverage.
53 + </longdescription>
54 + <use>
55 + <flag name="iso">Install an iso image, which can be used with <pkg>sys-apps/smc-sum</pkg>.</flag>
56 + <flag name="usb">Install all files, which are needed for an installation on an usb thumb drive.</flag>
57 + </use>
58 +</pkgmetadata>
59
60 diff --git a/sys-apps/superdiag/superdiag-1.1.0.20180731.ebuild b/sys-apps/superdiag/superdiag-1.1.0.20180731.ebuild
61 new file mode 100644
62 index 00000000000..99c892c1441
63 --- /dev/null
64 +++ b/sys-apps/superdiag/superdiag-1.1.0.20180731.ebuild
65 @@ -0,0 +1,82 @@
66 +# Copyright 1999-2018 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI="7"
70 +
71 +MY_BUILD="0724"
72 +MY_DATE="$(ver_cut 4)"
73 +MY_DATE_ISO="20180724"
74 +MY_PN="SuperDiag"
75 +MY_PV="$(ver_cut 1-3)"
76 +MY_P="${MY_PN}_${MY_PV}_${MY_DATE}"
77 +
78 +DESCRIPTION="Provides the capability to determine the health of Supermicro servers components"
79 +HOMEPAGE="https://www.supermicro.com"
80 +SRC_URI="${MY_PN}_${MY_PV}_${MY_DATE}_package.zip"
81 +
82 +KEYWORDS="-* ~amd64 ~x86"
83 +LICENSE="supermicro"
84 +SLOT="0"
85 +IUSE="iso usb"
86 +
87 +DEPEND="app-arch/unzip"
88 +
89 +RESTRICT="bindist fetch mirror"
90 +
91 +S="${WORKDIR}"
92 +
93 +src_unpack() {
94 + unpack ${A}
95 + unpack "${S}"/${MY_P}.zip
96 +
97 + if use iso; then
98 + unzip ${MY_P}/Diagnose_Remotely/ISOFor${MY_PN}_v${MY_PV}_${MY_BUILD}.zip -d iso || die
99 + fi
100 +
101 + if use usb; then
102 + unzip ${MY_P}/Diagnose_Remotely/USBFor${MY_PN}_v${MY_PV}_${MY_BUILD}.zip -d usb || die
103 + fi
104 +}
105 +
106 +pkg_nofetch() {
107 + elog "Please download ${A} from"
108 + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=SDO"
109 + elog "and place it in your DISTDIR directory."
110 +}
111 +
112 +src_install() {
113 + insinto /usr/share/superdiag
114 + doins ${MY_P}/startup.nsh ${MY_P}/${MY_PN}_v${MY_PV}.efi ${MY_P}/EFI/Boot/BootX64.efi
115 +
116 + insinto /usr/share/superdiag/Picture
117 + doins ${MY_P}/Picture/*.bmp
118 +
119 + insinto /usr/share/superdiag/SelData
120 + doins ${MY_P}/SelData/*.dat
121 +
122 + local DOCS=(
123 + "Superdiag_${MY_PV}_addendum_release_notes.docx"
124 + "${MY_P}/Supermicro Super Diagnostics Offline readme.txt"
125 + "${MY_P}/Supermicro Super Diagnostics Offline User Guide V${MY_PV}.pdf"
126 + )
127 + dodoc "${DOCS[@]}"
128 +
129 + if use iso; then
130 + insinto /usr/share/superdiag/ISO
131 + doins iso/${MY_PN}_v${MY_PV}_${MY_DATE_ISO}.iso
132 +
133 + newdoc iso/Readme.txt Readme.ISO.txt
134 + fi
135 +
136 + if use usb; then
137 + insinto /usr/share/superdiag/USB
138 + doins usb/STARTUP.nsh
139 +
140 + dosym ../BootX64.efi /usr/share/superdiag/USB/BootX64.efi
141 + dosym ../${MY_PN}_v${MY_PV}.efi /usr/share/superdiag/USB/${MY_PN}_v${MY_PV}.efi
142 + dosym ../Picture /usr/share/superdiag/USB/Picture
143 + dosym ../SelData /usr/share/superdiag/USB/SelData
144 +
145 + newdoc usb/Readme.txt Readme.USB.txt
146 + fi
147 +}