diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-01-06 15:58:20 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-01-06 16:01:37 +0100 |
commit | ff2c929a07b0cc21451ca4d902a7b86fc59f3b94 (patch) | |
tree | 7d7015bc7df13fd51f7e995b7cc1dd4744bc4134 | |
parent | sys-block/arcconf: drop CONFIG_LEGACY_VSYSCALL_NONE check (diff) | |
download | gentoo-ff2c929a07b0cc21451ca4d902a7b86fc59f3b94.tar.gz gentoo-ff2c929a07b0cc21451ca4d902a7b86fc59f3b94.tar.bz2 gentoo-ff2c929a07b0cc21451ca4d902a7b86fc59f3b94.zip |
sys-block/sas3ircu: bump to EAPI=8
Also added symlink into '/opt/bin' and
adjusted ebuild according to skel.ebuild.
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r-- | sys-block/sas3ircu/sas3ircu-16-r1.ebuild (renamed from sys-block/sas3ircu/sas3ircu-16.ebuild) | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/sys-block/sas3ircu/sas3ircu-16.ebuild b/sys-block/sas3ircu/sas3ircu-16-r1.ebuild index bbd2cebcd65b..52e553f0eead 100644 --- a/sys-block/sas3ircu/sas3ircu-16.ebuild +++ b/sys-block/sas3ircu/sas3ircu-16-r1.ebuild @@ -1,34 +1,34 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +MY_P="${PN^^}_P${PV}" + +DISTFILE_BIN="${MY_P}.zip" +DISTFILE_DOC="SAS3_IR_UG.pdf" +SRC_URI_BASE="https://docs.broadcom.com/docs-and-downloads/host-bus-adapters" + inherit mount-boot secureboot DESCRIPTION="LSI MPT-SAS3 controller management tool" HOMEPAGE="https://www.broadcom.com/products/storage/host-bus-adapters/sas-9300-8e#downloads" +SRC_URI=" + ${SRC_URI_BASE}/host-bus-adapters-common-files/sas_sata_12g_p${PV}/${DISTFILE_BIN} + https://docs.broadcom.com/docs/${DISTFILE_BIN} + doc? ( "${SRC_URI_BASE}/${DISTFILE_DOC}" ) +" +S="${WORKDIR}/${MY_P}" LICENSE="LSI" SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86 ~x64-solaris" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~x64-solaris" IUSE="doc efi" - RESTRICT="strip fetch mirror" -BDEPEND="app-arch/unzip" -QA_PREBUILT="opt/lsi/sas3ircu boot/efi/sas3ircu.efi" - -MY_PN=SAS3IRCU -MY_P="${MY_PN}_P${PV}" - -DISTFILE_BIN=${MY_P}.zip -DISTFILE_DOC=SAS3_IR_UG.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} - https://docs.broadcom.com/docs/${DISTFILE_BIN} - doc? ( "${SRC_URI_BASE}/${DISTFILE_DOC}" )" +BDEPEND="app-arch/unzip" -S="${WORKDIR}/${MY_P}" +QA_PREBUILT="opt/lsi/sas3ircu boot/efi/sas3ircu.efi" pkg_nofetch() { elog "Broadcom has a mandatory click-through license on thier binaries." @@ -61,33 +61,28 @@ supportedcards() { src_install() { # The second number is some sort of internal revision that is inconsistent between releases. local DOCS=( IRCU_MPT_GEN3_Phase"${PV}".0-*.pdf "README_SAS3IRCU_P${PV}.txt" ) - - if use doc; then - DOCS+=( "${DISTDIR}/${DISTFILE_DOC}" ) - fi + use doc && DOCS+=( "${DISTDIR}/${DISTFILE_DOC}" ) default + local ARCH + use amd64 && ARCH="x64" + use arm64 && ARCH="arm" + use ppc64 && ARCH="ppc64" + use x64-solaris && ARCH="solaris_x86" + use x86 && ARCH="x86" + exeinto /opt/lsi/ - if use amd64; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_linux_x64_rel/sas3ircu - elif use x86; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_linux_x86_rel/sas3ircu - elif use arm64; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_linux_arm_rel/sas3ircu - elif use ppc64; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_linux_ppc64_rel/sas3ircu - elif use x64-solaris; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_solaris_x86_rel/sas3ircu - fi + doexe sas3ircu_rel/sas3ircu/sas3ircu_linux_"${ARCH}"_rel/sas3ircu if use efi; then - exeinto /boot/efi/ - if use amd64; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_udk_uefi_x64_rel/sas3ircu.efi - elif use arm64; then - doexe sas3ircu_rel/sas3ircu/sas3ircu_udk_uefi_arm_rel/sas3ircu.efi + if use amd64 || use efi64; then + exeinto /boot/efi/ + doexe sas3ircu_rel/sas3ircu/sas3ircu_udk_uefi_"${ARCH}"_rel/sas3ircu.efi + secureboot_auto_sign --in-place fi - secureboot_auto_sign --in-place fi + + dodir /opt/bin + dosym ../lsi/sas3ircu /opt/bin/sas3ircu } |