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