summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-11-20 12:55:28 -0800
committerZac Medico <zmedico@gentoo.org>2017-11-20 12:59:35 -0800
commit619cee02f1aec9b7bc1ce06dad80630477d44c5b (patch)
tree814c0e60312cbc6687e26fd0913abad34de3d127 /sys-block
parentlicense/BSD-3: Removing it being a duplicate of BSD (diff)
downloadgentoo-619cee02f1aec9b7bc1ce06dad80630477d44c5b.tar.gz
gentoo-619cee02f1aec9b7bc1ce06dad80630477d44c5b.tar.bz2
gentoo-619cee02f1aec9b7bc1ce06dad80630477d44c5b.zip
sys-block/sas3flash: new package
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/sas3flash/Manifest2
-rw-r--r--sys-block/sas3flash/metadata.xml11
-rw-r--r--sys-block/sas3flash/sas3flash-15.ebuild61
3 files changed, 74 insertions, 0 deletions
diff --git a/sys-block/sas3flash/Manifest b/sys-block/sas3flash/Manifest
new file mode 100644
index 000000000000..4808bfb58a07
--- /dev/null
+++ b/sys-block/sas3flash/Manifest
@@ -0,0 +1,2 @@
+DIST SAS3FLASH_P15.zip 5284358 SHA256 9e1f7a45b8490c29c0e1f868b770e5c16c7847c4d3af17a0326e21f78896e166 SHA512 19fe0b313a210c02017234e0784dffde83eb9a9bcca1c98221bc5fd56e0cc196e53f857c5c0d0db37176f59d70cb85aaef3983b1f900a9f2031b9fcd2cfaf9eb WHIRLPOOL 4ee276466f5953629db69ede3fd7418d1763490d2bbf048cd608442356d4e78230a37ba4bae025596f132a1f264278530eea3f6380b30de5925cdcf39b1f73fb
+DIST sas3Flash_quickRefGuide_rev1-0.pdf 301289 SHA256 213f209f87e9d66f2370cb013eb7582e9c1d1ca1d83cdd6f94cd35b78a40c3f7 SHA512 88129695ac971a28d472f3cea3af8a99fcff508b29b2c7c74994b6854515710239a6bbff766fc4fd31af8726784a3799b2a63a9dd8241e97b34d4e05638e088b WHIRLPOOL 0ed4ec5b7731185cff1e80df107828b1be2b774fee16266e8ecb8c00f9caa0ec3866cfe6763886d8c23e36f9014197badcf08cf7c87fdd39031a8688ec2e1059
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}
+}