Diff arcconf-2.01.22270-r2 with a arcconf-4.11.00.25823
/usr/portage/sys-block/arcconf/arcconf-4.11.00.25823.ebuild 2023-10-09 14:52:35.432368500 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
MY_PV="v${PV//./_}" |
|
6 |
MY_PV="B$(ver_cut 4)" |
|
7 | 7 | |
8 | 8 |
inherit linux-info |
9 | 9 | |
10 | 10 |
DESCRIPTION="Microsemi Adaptec RAID Controller Command Line Utility" |
11 | 11 |
HOMEPAGE="https://www.microsemi.com/" |
12 | 12 |
SRC_URI="http://download.adaptec.com/raid/storage_manager/${PN}_${MY_PV}.zip" |
13 |
S="${WORKDIR}" |
|
13 |
S="${WORKDIR}/${PN}/linux_x64" |
|
14 | 14 | |
15 | 15 |
LICENSE="Microsemi" |
16 | 16 |
SLOT="0" |
17 |
KEYWORDS="-* amd64 x86" |
|
17 |
KEYWORDS="-* amd64 arm64" |
|
18 | 18 | |
19 | 19 |
BDEPEND="app-arch/unzip" |
20 | 20 | |
21 |
RESTRICT="fetch mirror bindist" |
|
21 |
RESTRICT="mirror bindist" |
|
22 | 22 | |
23 | 23 |
QA_PREBUILT="usr/bin/arcconf" |
24 | 24 | |
25 |
pkg_nofetch() { |
|
26 |
elog "Please download ${A} from" |
|
27 |
elog "https://storage.microsemi.com/en-us/speed/raid/storage_manager/${PN}_${MY_PV}_zip.php" |
|
28 |
elog "and place it in your DISTDIR directory." |
|
29 |
} |
|
30 | ||
31 | 25 |
pkg_setup() { |
32 | 26 |
# CONFIG_HARDENED_USERCOPY_PAGESPAN makes ARCCONF segault |
33 |
if linux-info_get_any_version && linux_config_src_exists ; then |
|
34 |
CONFIG_CHECK="!HARDENED_USERCOPY_PAGESPAN" |
|
27 |
# LEGACY_VSYSCALL_NONE makes ARCCONF segaultmakes ARCCONF segault |
|
28 |
if linux-info_get_any_version && linux_config_src_exists; then |
|
29 |
CONFIG_CHECK="!HARDENED_USERCOPY_PAGESPAN !LEGACY_VSYSCALL_NONE" |
|
35 | 30 |
check_extra_config |
36 | 31 |
fi |
37 | 32 |
} |
38 | 33 | |
39 | 34 |
src_install() { |
40 |
dobin linux$(usex amd64 '_x64' '')/cmdline/arcconf |
|
35 |
dobin $(usex arm64 'arm/linuxarm_x64/cmdline/' '')arcconf |
|
41 | 36 |
} |