1 |
commit: 0dd4628939e82c75161272efb22abb8030ac4243 |
2 |
Author: Victor Payno <vpayno+gentoo <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jan 7 00:31:57 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 8 01:38:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd46289 |
7 |
|
8 |
sys-block/sas3flash: version bump to 16 |
9 |
|
10 |
Signed-off-by: Victor Payno <vpayno+gentoo <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/13657 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
sys-block/sas3flash/Manifest | 4 ++ |
15 |
sys-block/sas3flash/sas3flash-16.ebuild | 108 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 112 insertions(+) |
17 |
|
18 |
diff --git a/sys-block/sas3flash/Manifest b/sys-block/sas3flash/Manifest |
19 |
index 7b2e72ada8d..702f445a4ca 100644 |
20 |
--- a/sys-block/sas3flash/Manifest |
21 |
+++ b/sys-block/sas3flash/Manifest |
22 |
@@ -1,2 +1,6 @@ |
23 |
+DIST Installer_P16_for_FreeBSD.zip 640411 BLAKE2B 5f23b3e9de53469d6f824ce6e571e0ccf8c49ded5c243b07a31d149aaa6ab50a483fa3e78d07417061e0d772c77a9c62867c5390942ae31936c568422b02c0a9 SHA512 951271f312e4c80db0afa5cc2b64bfa7cf262d601411499ca997a27e3df193d1c36ca100470525e606ac9fca7f150384e389c20838c94fc6fbe61f3be10de0f2 |
24 |
+DIST Installer_P16_for_Linux.zip 931509 BLAKE2B 059ce415dde9c872bd5e235bd3168a01bd966fc7433b297875849d563bf57d9207b5d4ce253bd9ac40072353a77ab403ecf110c21758edc5a1a832d7a8af6066 SHA512 fde7967e45f13c81b40b53f9d8893de8bf8b16b8c008b197ddfdcdc0338675c9926b53fc48f38087ca35738de3b8da662d22bdd620648eafb0c8889b48e94431 |
25 |
+DIST Installer_P16_for_Solaris.zip 450562 BLAKE2B 6aa3ce50128a719fb36d8c9a28f87dc43a4c90f261b373dbe0455f1803dea4212b85efc2c5961a7da9254c21938ff189b893eec44a8e959589df59073517296a SHA512 6a73b142ba50d8c3b6427d96153367e96498787a48bef2ea784fba8567ab9a32554fc8560c3ea798b7f7c04af7a8115d778532087aeca6d7b64fbf4a6be5d649 |
26 |
+DIST Installer_P16_for_UEFI.zip 360466 BLAKE2B 8c98387033bc3979a62c1e29e78678563d32ac9e6a90359160fe64694b765cc083ec1c4e3d816ee9fbcc9390fc195078e4b18976d24c3ed79d93baf69c5bff5d SHA512 f670690df3d024dc968325354650c4279ff9823c6e9846cf37b7a7e3ba0ed77e1a94c8e358c691a41dfd1d438215448cb4fb1df246e5a1e6fa72bbfa3e5ee710 |
27 |
DIST SAS3FLASH_P15.zip 5284358 BLAKE2B 8602db381d7ce7fbca7b55c0f7a9ec4868153264624a5c64d7602a5b094e16c274df22d4e4e8c2f3dca08ff5b550b5aa8dc72d25fef74a65b8eb24f4dd213934 SHA512 19fe0b313a210c02017234e0784dffde83eb9a9bcca1c98221bc5fd56e0cc196e53f857c5c0d0db37176f59d70cb85aaef3983b1f900a9f2031b9fcd2cfaf9eb |
28 |
DIST sas3Flash_quickRefGuide_rev1-0.pdf 301289 BLAKE2B c52a00b7dd6abd14d2a476ed2fca9d56d59555c7f92b802cd37f9876c17d83a9919df6e9c64697eefd2195bec01a1eed14884c3f7daa82195f276032d37a146b SHA512 88129695ac971a28d472f3cea3af8a99fcff508b29b2c7c74994b6854515710239a6bbff766fc4fd31af8726784a3799b2a63a9dd8241e97b34d4e05638e088b |
29 |
|
30 |
diff --git a/sys-block/sas3flash/sas3flash-16.ebuild b/sys-block/sas3flash/sas3flash-16.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..9542c3b99a4 |
33 |
--- /dev/null |
34 |
+++ b/sys-block/sas3flash/sas3flash-16.ebuild |
35 |
@@ -0,0 +1,108 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+inherit mount-boot |
41 |
+ |
42 |
+DESCRIPTION="Flash utility for LSI MPT-SAS3 controller" |
43 |
+HOMEPAGE="https://www.broadcom.com/products/storage/host-bus-adapters/sas-9300-8e#downloads" |
44 |
+ |
45 |
+LICENSE="LSI" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc64 ~x86 ~sparc-solaris ~x64-solaris ~x86-solaris" |
48 |
+IUSE="doc efi" |
49 |
+ |
50 |
+RESTRICT="strip fetch mirror" |
51 |
+BDEPEND="app-arch/unzip" |
52 |
+QA_PREBUILT="opt/lsi/sas3flash boot/efi/sas3flash.efi" |
53 |
+ |
54 |
+SRC_URI_BASE="https://docs.broadcom.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_12g_p${PV}_point_release" |
55 |
+SRC_URI_PREFIX="${SRC_URI_BASE}/host-bus-adapters/host-bus-adapters-common-files/sas_sata_12g_p${PV}_point_release" |
56 |
+ |
57 |
+SRC_URI_LINUX="${SRC_URI_PREFIX}/Installer_P${PV}_for_Linux.zip" |
58 |
+SRC_URI_FREEBSD="${SRC_URI_PREFIX}/Installer_P${PV}_for_FreeBSD.zip" |
59 |
+SRC_URI_SOLARIS="${SRC_URI_PREFIX}/Installer_P${PV}_for_Solaris.zip" |
60 |
+SRC_URI_UEFI="${SRC_URI_PREFIX}/Installer_P${PV}_for_UEFI.zip" |
61 |
+ |
62 |
+DISTFILE_BINS=( "${SRC_URI_LINUX%%*/}" "${SRC_URI_FREEBSD%%*/}" "${SRC_URI_SOLARIS%%*/}" "${SRC_URI_UEFI%%*/}" ) |
63 |
+DISTFILE_DOC=sas3Flash_quickRefGuide_rev1-0.pdf |
64 |
+ |
65 |
+SRC_URI=" |
66 |
+ amd64? ( ${SRC_URI_LINUX} ) |
67 |
+ x86? ( ${SRC_URI_LINUX} ) |
68 |
+ ppc64? ( ${SRC_URI_LINUX} ) |
69 |
+ amd64-fbsd? ( ${SRC_URI_FREEBSD} ) |
70 |
+ x86-fbsd? ( ${SRC_URI_FREEBSD} ) |
71 |
+ x64-solaris? ( ${SRC_URI_SOLARIS} ) |
72 |
+ x86-solaris? ( ${SRC_URI_SOLARIS} ) |
73 |
+ sparc-solaris? ( ${SRC_URI_SOLARIS} ) |
74 |
+ efi? ( ${SRC_URI_UEFI} ) |
75 |
+ doc? ( "${SRC_URI_BASE}/oracle/files/${DISTFILE_DOC}" )" |
76 |
+ |
77 |
+S="${WORKDIR}" |
78 |
+ |
79 |
+pkg_nofetch() { |
80 |
+ elog "Broadcom has a mandatory click-through license on their binaries." |
81 |
+ elog "Please visit ${HOMEPAGE} and download ${DISTFILE_BINS[@]} from the Mangement Software section." |
82 |
+ elog "After downloading, move ${DISTFILE_BINS[@]} into your DISTDIR directory." |
83 |
+ if use doc; then |
84 |
+ elog "Please also download 'SAS3Flash Utility Quick Reference Guide' (${DISTFILE_DOC}) " |
85 |
+ elog "and also place it into your DISTDIR directory." |
86 |
+ fi |
87 |
+ einfo "${SRC_URI}" |
88 |
+} |
89 |
+ |
90 |
+supportedcards() { |
91 |
+ elog "This binary supports should support ALL cards, including, but not" |
92 |
+ elog "limited to the following series:" |
93 |
+ elog "" |
94 |
+ elog "LSI SAS 3004" |
95 |
+ elog "LSI SAS 3008" |
96 |
+ elog "LSI SAS 3108" |
97 |
+ elog "LSI SAS 3116" |
98 |
+ elog "LSI SAS 3208" |
99 |
+ elog "LSI SAS 3308" |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ # The second number is some sort of internal revision that is inconsistent between releases. |
104 |
+ local DOCS=( Installer_P"${PV}"_for_Linux/{FLASH_MPT_GEN3_Phase"${PV}".0-*.pdf,sas3Flash_quickRefGuide_rev1-0.pdf} ) |
105 |
+ |
106 |
+ if use doc; then |
107 |
+ DOCS+=( "${DISTDIR}/${DISTFILE_DOC}" ) |
108 |
+ fi |
109 |
+ |
110 |
+ exeinto /opt/lsi/ |
111 |
+ if use amd64; then |
112 |
+ doexe Installer_P16_for_Linux/sas3flash_linux_x64_rel/sas3flash |
113 |
+ DOCS+=( Installer_P"${PV}"_for_Linux/README_Installer_P"${PV}"_Linux.txt ) |
114 |
+ elif use x86; then |
115 |
+ doexe Installer_P16_for_Linux/sas3flash_linux_i386_rel/sas3flash |
116 |
+ DOCS+=( Installer_P"${PV}"_for_Linux/README_Installer_P"${PV}"_Linux.txt ) |
117 |
+ elif use ppc64; then |
118 |
+ doexe Installer_P16_for_Linux/sas3flash_linux_ppc64_rel/sas3flash |
119 |
+ DOCS+=( Installer_P"${PV}"_for_Linux/README_Installer_P"${PV}"_Linux.txt ) |
120 |
+ elif use amd64-fbsd; then |
121 |
+ doexe Installer_P16_for_FreeBSD/sas3flash_freebsd_amd64_rel/sas3flash |
122 |
+ DOCS+=( Installer_P"${PV}"_for_FreeBSD/README_Installer_P"${PV}"_FreeBSD.txt ) |
123 |
+ elif use x86-fbsd; then |
124 |
+ doexe Installer_P16_for_FreeBSD/sas3flash_freebsd_i386_rel/sas3flash |
125 |
+ DOCS+=( Installer_P"${PV}"_for_FreeBSD/README_Installer_P"${PV}"_FreeBSD.txt ) |
126 |
+ elif use x64-solaris || use x86-solaris; then |
127 |
+ doexe Installer_P16_for_Solaris/sas3flash_solaris_x86_rel/sas3flash |
128 |
+ DOCS+=( Installer_P"${PV}"_for_Solaris/README_Installer_P"${PV}"_Solaris.txt ) |
129 |
+ elif use sparc-solaris; then |
130 |
+ doexe Installer_P16_for_Solaris/sas3flash_solaris_sparc_rel/sas3flash |
131 |
+ DOCS+=( Installer_P"${PV}"_for_Solaris/README_Installer_P"${PV}"_Solaris.txt ) |
132 |
+ fi |
133 |
+ |
134 |
+ if use efi; then |
135 |
+ exeinto /boot/efi/ |
136 |
+ DOCS+=( Installer_P"${PV}"_for_UEFI/README_Installer_P"${PV}"_UEFI.txt ) |
137 |
+ if use amd64; then |
138 |
+ doexe Installer_P"${PV}"_for_UEFI/sas3flash_udk_uefi_x64_rel/sas3flash.efi |
139 |
+ fi |
140 |
+ fi |
141 |
+ |
142 |
+ default |
143 |
+} |