1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="LSI MPT-SAS3 controller management tool"
8 HOMEPAGE="http://www.lsi.com/support/Pages/download-results.aspx?component=Storage+Component&productfamily=Host+Bus+Adapters&productcode=0&assettype=Miscellaneous&productname=&keyword=SAS3IRCU"
11 KEYWORDS="-* ~amd64 ~ppc64 ~x86 ~sparc-solaris ~x64-solaris ~x86-solaris"
13 RESTRICT="strip fetch mirror"
16 QA_PREBUILT="opt/lsi/sas3ircu boot/efi/sas3ircu.efi"
19 MY_P="${MY_PN}_P${PV}"
21 DISTFILE_BIN=${MY_P}.zip
22 DISTFILE_DOC=SAS3IRCU_UG.pdf
25 http://www.lsi.com/downloads/Public/Host%20Bus%20Adapters/Host%20Bus%20Adapters%20Common%20Files/SAS_SATA_12G_P${PV}/${DISTFILE_BIN}
26 doc? ( http://www.lsi.com/downloads/Public/Host%20Bus%20Adapters/${DISTFILE_DOC} )
29 LICENSE_URL="http://www.lsi.com/cm/License.do?url=&prodName=&subType=Miscellaneous&locale=EN"
31 S="${WORKDIR}/${MY_P}"
34 elog "LSI has a mandatory click-through license on thier binaries."
35 elog "Please visit $HOMEPAGE and download ${DISTFILE_BIN} from the Mangement Software section."
36 elog "After downloading, move ${MY_P} into your DISTDIR directory"
38 elog "Please also download 'SAS-3 Integrated RAID Configuration Utility User Guide' (${DISTFILE_DOC}) "
39 elog "and also place it into your DISTDIR directory"
44 elog "This binary supports should support ALL cards, including, but not"
45 elog "limited to the following series:"
52 unpack ${DISTFILE_BIN}
57 use amd64 || use x86 && doexe sas3ircu_linux_x86_rel/sas3ircu
58 use ppc64 && doexe sas3ircu_linux_x86_rel/sas3ircu
59 use amd64-fbsd && doexe sas3ircu_freebsd_amd64_rel/sas3ircu
60 use x86-fbsd && doexe sas3ircu_freebsd_i386_rel/sas3ircu
61 use x64-solaris || use x86-solaris && doexe sas3ircu_solaris_x86_rel/sas3ircu
62 use sparc-solaris && doexe sas3ircu_solaris_sparc_rel/sas3ircu
65 doexe sas3ircu_udk_uefi__x64_rel/sas3ircu.efi
67 dodoc IRCU_MPT_GEN3_Phase5.0-06.00.00.00.pdf
68 dodoc README_SAS3IRCU_P${PV}.txt
69 use doc && dodoc "${DISTDIR}"/$DISTFILE_DOC