Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/storcli/
Date: Sat, 18 Aug 2018 19:30:20
Message-Id: 1534620600.422eb4eef7ae71202cf05eb4d6bd574ccacfeee6.whissi@gentoo
1 commit: 422eb4eef7ae71202cf05eb4d6bd574ccacfeee6
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 18 19:29:40 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 18 19:30:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=422eb4ee
7
8 sys-block/storcli: bump to v007.0606.0000.0000
9
10 Package-Manager: Portage-2.3.46, Repoman-2.3.10
11
12 sys-block/storcli/Manifest | 1 +
13 sys-block/storcli/storcli-7.0606.ebuild | 82 +++++++++++++++++++++++++++++++++
14 2 files changed, 83 insertions(+)
15
16 diff --git a/sys-block/storcli/Manifest b/sys-block/storcli/Manifest
17 index 312a67d834b..1d5047e6138 100644
18 --- a/sys-block/storcli/Manifest
19 +++ b/sys-block/storcli/Manifest
20 @@ -5,3 +5,4 @@ DIST storcli-1.21.06_readme.txt 199925 BLAKE2B 08b7ddc9d6a0ee176e91938d00ef12b39
21 DIST storcli-1.23.02.zip 48778476 BLAKE2B 9eded7793e822785dfbd15b6a6fa70e70dc1f4e32df9e6e1e213420a4e6ae01705096ce8f0ea468a6dc8d5d22097c87e06e54be6fcccb9eaf6cc321c26b69b0a SHA512 2018c8b40d7371077f01bbe586ed1135d683823b9d243fde14d45404c8bab8328f36e19ac91eb876666a174a7cce7e95a2a75485f70681460cda4c9b65d4d579
22 DIST storcli-1.23.02_readme.txt 201906 BLAKE2B 6dde1f7609d51f3d0b2feec9301a57472e92086fc7f1aecad3b455b03b571fb75e23de75d508c40b78ebab357340d8c14f5529fce3ce9ee6b513f5e80d82ad99 SHA512 9eefe69aee1a65339d2360759ba574f632a21bd3d13ba9d4cb0a86980e652addf5f7d2b650588f659caaa8ee302c48bc27b9f3ad7455e65d34dbcff0a8188e03
23 DIST storcli-7.0504.zip 40558670 BLAKE2B 3cd54b47b42e5bb8329ccd4b09a6c0863347a04b276fa5dc11acf10ac1124c25b5f60e4171de96c1b8975bfae4cc7408554de933ba8fd5547fbd6e9395710ce8 SHA512 1c5c248a1c19eda5974415a7e1cc10c83bfad0d6e37adbd01ae624316fc1d60628503655c4dd0005a14c79c570177664ea9cdb7330b97daf19808a9513b1311a
24 +DIST storcli-7.0606.zip 36634159 BLAKE2B 56cae14537872ef23d8ddc6a0790b727abdf4abecd06b9d1615dc4ad0a554a48bdd077772181d2f0ad9bbe90f015130b4a62caa16b1f02d042403cb6ca389e04 SHA512 ef8bc6b275bb915707624d73d802e84e7a04da087d275055916f047f16d15f1303047c9eb53eae8de88da97ce82fc79616822888fc320af7ba54ad6aa2999996
25
26 diff --git a/sys-block/storcli/storcli-7.0606.ebuild b/sys-block/storcli/storcli-7.0606.ebuild
27 new file mode 100644
28 index 00000000000..4eef2bc7266
29 --- /dev/null
30 +++ b/sys-block/storcli/storcli-7.0606.ebuild
31 @@ -0,0 +1,82 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit pax-utils
38 +
39 +# Upstream is still using strange version numbers
40 +MY_PV="007.0606.0000.0000"
41 +
42 +DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)"
43 +HOMEPAGE="https://www.broadcom.com/support/download-search?dk=storcli"
44 +SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${MY_PV}_Unified_StorCLI.zip -> ${P}.zip"
45 +
46 +LICENSE="Avago LSI BSD"
47 +SLOT="0/7.6"
48 +KEYWORDS="-* ~amd64 ~x86"
49 +IUSE=""
50 +
51 +RDEPEND=""
52 +DEPEND="app-arch/unzip"
53 +
54 +DOCS=( readme.txt license.txt )
55 +
56 +MY_STORCLI_BASEDIR="/opt/lsi/storcli"
57 +
58 +QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli"
59 +QA_PREBUILT=${QA_PRESTRIPPED}
60 +
61 +src_unpack() {
62 + local _src_file
63 +
64 + for _src_file in ${A}; do
65 + if [[ ${_src_file} == *.txt ]]; then
66 + cp "${DISTDIR}/${_src_file}" "${WORKDIR}" || die "Failed to copy '${_src_file}' to '${WORKDIR}'!"
67 + else
68 + unpack ${_src_file}
69 + fi
70 + done
71 +
72 + unpack "${WORKDIR}"/MR_SAS_Unified_StorCLI_*.zip
73 + rm -r "${WORKDIR}"/MR_SAS_Unified* || die
74 + mv "${WORKDIR}"/versionChangeSet/univ_viva_cli_rel/Unified*.zip "${WORKDIR}" || die "Failed to move Unified_storcli_all_os.zip"
75 + rm -r "${WORKDIR}"/versionChangeSet || die
76 + unpack "${WORKDIR}"/Unified_storcli_all_os.zip
77 +
78 + mv Unified_storcli_all_os/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storcli_*.deb"
79 +
80 + # Unpack Ubuntu package which will be our $S content
81 + unpack "${WORKDIR}"/storcli_*.deb
82 + rm -f storcli_*.deb || die "Failed to cleanup storcli_*.deb package"
83 + unpack "${WORKDIR}"/data.tar.gz
84 +
85 + mkdir "${S}" || die "Failed to create '${S}'"
86 +}
87 +
88 +src_prepare() {
89 + default
90 +
91 + # Create clean $S
92 + mv "${WORKDIR}"/*_StorCLI.txt "${S}"/readme.txt || die "Failed to move *StorCLI.txt to readme.txt"
93 + mv "${WORKDIR}"/Unified_storcli_all_os/Linux/license.txt "${S}"/license.txt || die "Failed to move Linux/license.txt"
94 + rm -rf "${WORKDIR}"/Unified_stor* || die "Failed to cleanup Unified_storcli* dirs/files"
95 + mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'"
96 + rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files"
97 +}
98 +
99 +src_install() {
100 + exeinto "${MY_STORCLI_BASEDIR}"
101 +
102 + if use x86; then
103 + doexe storcli
104 + elif use amd64; then
105 + newexe storcli64 storcli
106 + fi
107 +
108 + dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli
109 +
110 + dodoc "${DOCS[@]}"
111 +
112 + pax-mark m "${D%/}${MY_STORCLI_BASEDIR}"/storcli
113 +}