Diff storcli-7.0606 with a storcli-7.1017

/usr/portage/sys-block/storcli/storcli-7.1017.ebuild 2019-12-26 18:09:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="6"
4
EAPI="7"
5 5

  
6 6
inherit pax-utils
7 7

  
8 8
# Upstream is still using strange version numbers
9
MY_PV="007.0606.0000.0000"
9
MY_PV="007.1017.0000.0000"
10 10

  
11 11
DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)"
12 12
HOMEPAGE="https://www.broadcom.com/support/download-search?dk=storcli"
13
SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${MY_PV}_Unified_StorCLI.zip -> ${P}.zip"
13
SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/MR_SAS_Unified_StorCLI_${MY_PV}.zip -> ${P}.zip"
14 14

  
15 15
LICENSE="Avago LSI BSD"
16
SLOT="0/7.6"
16
SLOT="0/7.10"
17 17
KEYWORDS="-* amd64 x86"
18 18
IUSE=""
19 19

  
20 20
RDEPEND=""
21 21
DEPEND="app-arch/unzip"
22 22

  
23
DOCS=( readme.txt license.txt )
24

  
25 23
MY_STORCLI_BASEDIR="/opt/lsi/storcli"
26 24

  
27
QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli"
25
QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli
26
	${MY_STORCLI_BASEDIR:1}/storcli32"
28 27
QA_PREBUILT=${QA_PRESTRIPPED}
29 28

  
30 29
src_unpack() {
31
	local _src_file
32

  
33
	for _src_file in ${A}; do
34
		if [[ ${_src_file} == *.txt ]]; then
35
			cp "${DISTDIR}/${_src_file}" "${WORKDIR}" || die "Failed to copy '${_src_file}' to '${WORKDIR}'!"
36
		else
37
			unpack ${_src_file}
38
		fi
39
	done
40

  
41
	unpack "${WORKDIR}"/MR_SAS_Unified_StorCLI_*.zip
42
	rm -r "${WORKDIR}"/MR_SAS_Unified* || die
43
	mv "${WORKDIR}"/versionChangeSet/univ_viva_cli_rel/Unified*.zip "${WORKDIR}" || die "Failed to move Unified_storcli_all_os.zip"
44
	rm -r "${WORKDIR}"/versionChangeSet || die
45
	unpack "${WORKDIR}"/Unified_storcli_all_os.zip
30
	mkdir srcfiles || die
31
	pushd srcfiles &>/dev/null || die
32
	default
33
	mv Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storcli_*.deb"
34
	popd &>/dev/null || die
46 35

  
47
	mv Unified_storcli_all_os/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storcli_*.deb"
36
	rm -rf srcfiles || die
48 37

  
49 38
	# Unpack Ubuntu package which will be our $S content
50 39
	unpack "${WORKDIR}"/storcli_*.deb
......
58 47
	default
59 48

  
60 49
	# Create clean $S
61
	mv "${WORKDIR}"/*_StorCLI.txt "${S}"/readme.txt || die "Failed to move *StorCLI.txt to readme.txt"
62
	mv "${WORKDIR}"/Unified_storcli_all_os/Linux/license.txt "${S}"/license.txt || die "Failed to move Linux/license.txt"
63
	rm -rf "${WORKDIR}"/Unified_stor* || die "Failed to cleanup Unified_storcli* dirs/files"
64 50
	mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'"
65 51
	rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files"
66 52
}
......
71 57
	if use x86; then
72 58
		doexe storcli
73 59
	elif use amd64; then
60
		# 32-bit version is less crashy than the 64bit (bug #656494)
61
		newexe storcli storcli32
74 62
		newexe storcli64 storcli
75 63
	fi
76 64

  
77 65
	dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli
78 66

  
79
	dodoc "${DOCS[@]}"
80

  
81
	pax-mark m "${D%/}${MY_STORCLI_BASEDIR}"/storcli
67
	pax-mark m "${D}${MY_STORCLI_BASEDIR}"/storcli
82 68
}
Thank you!