blob: b60f35fc2ab6549d5cf433f7a9dce6a3d95c01d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit mount-boot rpm secureboot
DESCRIPTION="LINUX PERCCLI Utility For All Dell HBA/PERC Controllers"
HOMEPAGE="https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=tdghn"
LICENSE="Dell-EULA"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="efi"
RESTRICT="bindist fetch mirror strip"
DEPEND=""
RDEPEND=""
QA_PREBUILT="opt/MegaRAID/perccli/perccli* boot/efi/perccli.efi"
# Files not fetchable with the default user-agent, and EULA
# requires consent for redistribution.
SRC_URI="https://dl.dell.com/FOLDER09770976M/1/PERCCLI_7.2313.0_A14_Linux.tar.gz
efi? ( https://dl.dell.com/FOLDER09770794M/1/perccli.efi -> perccli-7.2313.0.efi )"
S=${WORKDIR}
pkg_nofetch() {
einfo "Please download PERCCLI_7.2313.0_A14_Linux.tar.gz from"
einfo "${HOMEPAGE}"
einfo "and place the file in your DISTDIR directory."
if use efi; then
einfo "Please download perccli.efi from"
einfo "${HOMEPAGE}"
einfo "and rename the file to perccli-7.2313.0.efi and place it in your DISTDIR directory."
fi
}
pkg_setup() {
use efi && secureboot_pkg_setup
}
src_unpack() {
default
rpm_unpack ./PERCCLI*Linux/*.rpm
}
src_install() {
exeinto /opt/MegaRAID/perccli
doexe opt/MegaRAID/perccli/perccli64 && \
dosym perccli64 /opt/MegaRAID/perccli/perccli
dosym ../MegaRAID/perccli/perccli /opt/bin/perccli
if use efi; then
exeinto /boot/efi
newexe "${DISTDIR}/perccli-7.2313.0.efi" perccli.efi
fi
use efi && secureboot_auto_sign --in-place
}
|