Diff storcli-1.23.02 with a storcli-7.0709-r1

/usr/portage/sys-block/storcli/storcli-7.0709-r1.ebuild 2019-07-31 01:09:00.000000000 +0300
5 5

  
6 6
inherit pax-utils
7 7

  
8
# Upstream messed up packaging:
9
# This is v1.21.06 according to "storcli -v" but ZIP is named v1.21.16..
10
# Also, README is isn't included in archive.
11
MY_PV="1.23.02"
8
# Upstream is still using strange version numbers
9
MY_PV="007.0709.0000.0000"
12 10

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

  
18 15
LICENSE="Avago LSI BSD"
19
SLOT="0/6.14"
16
SLOT="0/7.7"
20 17
KEYWORDS="-* amd64 x86"
21 18
IUSE=""
22 19

  
......
27 24

  
28 25
MY_STORCLI_BASEDIR="/opt/lsi/storcli"
29 26

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

  
32 31
src_unpack() {
33 32
	local _src_file
......
40 39
		fi
41 40
	done
42 41

  
43
	unpack "${WORKDIR}"/storcli_All_OS.zip
42
	unpack "${WORKDIR}"/Unified_storcli_all_os.zip
44 43

  
45
	mv storcli_All_OS/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storclli_*.deb"
44
	mv Unified_storcli_all_os/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storcli_*.deb"
46 45

  
47 46
	# Unpack Ubuntu package which will be our $S content
48 47
	unpack "${WORKDIR}"/storcli_*.deb
......
56 55
	default
57 56

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

  
Thank you!