summaryrefslogtreecommitdiff
path: root/sys-block/sas3flash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-11-26 11:42:28 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-11-26 11:42:28 +0000
commit89c6c06b8c42107dd231687a1012354e7d3039fc (patch)
treedad94f4da8a6694f3cb99f7048be2f9cf5f78f97 /sys-block/sas3flash
parent796cae72cf9ed18ba01256ac1f83a686a2a76036 (diff)
gentoo resync : 26.11.2017
Diffstat (limited to 'sys-block/sas3flash')
-rw-r--r--sys-block/sas3flash/Manifest4
-rw-r--r--sys-block/sas3flash/metadata.xml11
-rw-r--r--sys-block/sas3flash/sas3flash-15.ebuild61
3 files changed, 76 insertions, 0 deletions
diff --git a/sys-block/sas3flash/Manifest b/sys-block/sas3flash/Manifest
new file mode 100644
index 000000000000..c1832f484d3b
--- /dev/null
+++ b/sys-block/sas3flash/Manifest
@@ -0,0 +1,4 @@
+DIST SAS3FLASH_P15.zip 5284358 SHA256 9e1f7a45b8490c29c0e1f868b770e5c16c7847c4d3af17a0326e21f78896e166 SHA512 19fe0b313a210c02017234e0784dffde83eb9a9bcca1c98221bc5fd56e0cc196e53f857c5c0d0db37176f59d70cb85aaef3983b1f900a9f2031b9fcd2cfaf9eb WHIRLPOOL 4ee276466f5953629db69ede3fd7418d1763490d2bbf048cd608442356d4e78230a37ba4bae025596f132a1f264278530eea3f6380b30de5925cdcf39b1f73fb
+DIST sas3Flash_quickRefGuide_rev1-0.pdf 301289 SHA256 213f209f87e9d66f2370cb013eb7582e9c1d1ca1d83cdd6f94cd35b78a40c3f7 SHA512 88129695ac971a28d472f3cea3af8a99fcff508b29b2c7c74994b6854515710239a6bbff766fc4fd31af8726784a3799b2a63a9dd8241e97b34d4e05638e088b WHIRLPOOL 0ed4ec5b7731185cff1e80df107828b1be2b774fee16266e8ecb8c00f9caa0ec3866cfe6763886d8c23e36f9014197badcf08cf7c87fdd39031a8688ec2e1059
+EBUILD sas3flash-15.ebuild 2198 BLAKE2B 4f7cc38e03cdd222c5f97c7996dd8b2d2b17b5fa9836ee4ea558b5d5beef61bf8c6aebc04b23ca3ea8ef608a36173f8af76fbd102b3dcb343499a65abf88ae2e SHA512 6cde502d88eefcc6a805bbbd8a9358d93a0a3ee2a05fe0dd717860a0fbaf90756db18ffb614aaed7cf504c91b039d89ce3dfe40b34fc096db6065990707f0a7c
+MISC metadata.xml 306 BLAKE2B db3bc70d010eab74af1f8c3e7a4813d1cf0613eaf68ec37b4c32773b7a0b58dcf4ae81c3b42d8a296f571aaa380401329e3cf3c5ec161de08c582080e609c438 SHA512 eaf88a3817a6749ed5239605d4de8cdfb1a219355be17e60b9fd3eae741b83ceef0269f79ac89896e78ddcea0d9dd8da186fd619965ee1fb7f0350c779f561ce
diff --git a/sys-block/sas3flash/metadata.xml b/sys-block/sas3flash/metadata.xml
new file mode 100644
index 000000000000..e3895e231c5b
--- /dev/null
+++ b/sys-block/sas3flash/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+</maintainer>
+<use>
+ <flag name="efi">Install EFI variant as well</flag>
+</use>
+</pkgmetadata>
diff --git a/sys-block/sas3flash/sas3flash-15.ebuild b/sys-block/sas3flash/sas3flash-15.ebuild
new file mode 100644
index 000000000000..9fba4443d111
--- /dev/null
+++ b/sys-block/sas3flash/sas3flash-15.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit mount-boot
+
+DESCRIPTION="Flash utility for LSI MPT-SAS3 controller"
+HOMEPAGE="https://www.broadcom.com/products/storage/host-bus-adapters/sas-9300-8e#downloads"
+LICENSE="LSI"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd ~ppc64 ~amd64-fbsd ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="efi doc"
+RESTRICT="strip fetch mirror"
+DEPEND=""
+RDEPEND=""
+QA_PREBUILT="opt/lsi/sas3flash boot/efi/sas3flash.efi"
+
+MY_PN=SAS3FLASH
+MY_P="${MY_PN}_P${PV}"
+
+DISTFILE_BIN=${MY_P}.zip
+DISTFILE_DOC=sas3Flash_quickRefGuide_rev1-0.pdf
+
+SRC_URI_BASE='https://docs.broadcom.com/docs-and-downloads/host-bus-adapters'
+SRC_URI="
+ ${SRC_URI_BASE}/host-bus-adapters-common-files/sas_sata_12g_p${PV}/${DISTFILE_BIN}
+ doc? ( https://docs.broadcom.com/docs-and-downloads/oracle/files/${DISTFILE_DOC} )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_nofetch() {
+ elog "Broadcom has a mandatory click-through license on their binaries."
+ elog "Please visit $HOMEPAGE and download ${DISTFILE_BIN} from the Mangement Software section."
+ elog "After downloading, move ${DISTFILE_BIN} into $DISTDIR"
+ if use doc; then
+ elog "Please also download 'SAS3Flash Utility Quick Reference Guide' (${DISTFILE_DOC}) "
+ elog "and also place it into $DISTDIR"
+ fi
+ einfo ${SRC_URI}
+}
+
+src_unpack() {
+ unpack ${DISTFILE_BIN}
+}
+
+src_install() {
+ exeinto /opt/lsi/
+ use amd64 || use x86 && doexe sas3flash_rel/sas3flash/sas3flash_linux_x64_rel/sas3flash
+ use ppc64 && doexe sas3flash_rel/sas3flash/sas3flash_linux_ppc64_rel/sas3flash
+ use amd64-fbsd && doexe sas3flash_rel/sas3flash/sas3flash_freebsd_amd64_rel/sas3flash
+ use x86-fbsd && doexe sas3flash_rel/sas3flash/sas3flash_freebsd_i386_rel/sas3flash
+ use x64-solaris || use x86-solaris && doexe sas3flash_rel/sas3flash/sas3flash_solaris_x86_rel/sas3flash
+ use sparc-solaris && doexe sas3flash_rel/sas3flash/sas3flash_solaris_sparc_rel/sas3flash
+ if use efi; then
+ exeinto /boot/efi/
+ doexe sas3flash_rel/sas3flash/sas3flash_udk_uefi_x64_rel/sas3flash.efi
+ fi
+ dodoc FLASH_MPT_GEN3_Phase${PV}.0-*.pdf
+ dodoc README_SAS3FLASH_P${PV}.txt
+ use doc && dodoc "${DISTDIR}"/${DISTFILE_DOC}
+}