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: Thu, 06 Aug 2020 13:51:25
Message-Id: 1596721789.deba3b6e387ba415b7e0325825784a222cdbbe09.whissi@gentoo
1 commit: deba3b6e387ba415b7e0325825784a222cdbbe09
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 6 11:56:41 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 6 13:49:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deba3b6e
7
8 sys-block/storcli: bump to v7.1410
9
10 Upstream dropped x86 support.
11
12 Package-Manager: Portage-3.0.1, Repoman-2.3.23
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 sys-block/storcli/Manifest | 1 +
16 sys-block/storcli/storcli-7.1410.ebuild | 61 +++++++++++++++++++++++++++++++++
17 2 files changed, 62 insertions(+)
18
19 diff --git a/sys-block/storcli/Manifest b/sys-block/storcli/Manifest
20 index 7cbf1b99be9..986a4fed064 100644
21 --- a/sys-block/storcli/Manifest
22 +++ b/sys-block/storcli/Manifest
23 @@ -10,3 +10,4 @@ DIST storcli-7.0709.zip 25844769 BLAKE2B f44791d0813f348068a89a14a0ea457667ab8e2
24 DIST storcli-7.1017.zip 36266095 BLAKE2B e1bb4c6bbd19712530fc8d3d7917bf943221f121d0a7d5d3e44205f73bab408d7e4ff94d8cac479a1b834b82e8bdb6661805ca13f1695f8bad52d69d2c988fe9 SHA512 fb4b45fa577417627e67d20bbfa2e07512fe600ffeb9d21e11a80e25208f17b56fb25fa74a9777622c72012a605813b0206a990a6d4191f6b57371bd1d72fd6b
25 DIST storcli-7.1211.zip 36988201 BLAKE2B 487dda0c78af60d96dc6eb8bc0c7074dd99719acc4faf10027430ea80a5d1cb76e6bdc9eaf0931967c5cdf10d80ee824f45118144bfc032a4ddce52d678df354 SHA512 f28ae41adf2286153ecd57f7d022940069356c9636e45aaae4ae45215487bbb8e3dea51fa4aa00b9e9340069036c1be21b186ce177e0fd0a6a0bb786cb58181f
26 DIST storcli-7.1316.zip 37136466 BLAKE2B 7bca2e1b330f40e66945567ac8fad04d448993ff7ab4a4d846a0b6142fbe3988ab00775aa3897e3268e30b34cb7659e96f75d2383d3e85e4bec433edde5ba17e SHA512 049b34d44bb1140ad804f6bb6d8fb133ac9bbc4aface721051e713c7a1056acb0f894f4f4793ef9e02e48958a745d12bc5389e7e763716c780fb1c2c387e34d6
27 +DIST storcli-7.1410.zip 34424559 BLAKE2B cb0b613d0ccbf6ac36d1aace9174286ffe89d0602c7bca3b2712abcdba1b82cc2498de686e815e01fa125920c94d780e2f7fa4ab2ff570dc42818f4c4f491da4 SHA512 4887d434757f15e931c3c3c57b2316fc0cf0a5284c6009601b58c9585b73f9b9c9a0318dd3c4472cd3578aa5ec12b641a371db1d726a637741f6f0b34dd1f3e7
28
29 diff --git a/sys-block/storcli/storcli-7.1410.ebuild b/sys-block/storcli/storcli-7.1410.ebuild
30 new file mode 100644
31 index 00000000000..cd0ac4c6ba7
32 --- /dev/null
33 +++ b/sys-block/storcli/storcli-7.1410.ebuild
34 @@ -0,0 +1,61 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI="7"
39 +
40 +inherit pax-utils toolchain-funcs
41 +
42 +# Upstream is still using strange version numbers
43 +MY_PV="007.1410.0000.0000"
44 +
45 +DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)"
46 +HOMEPAGE="https://www.broadcom.com/support/download-search?dk=storcli"
47 +SRC_URI="https://docs.broadcom.com/docs-and-downloads/docs-and-downloads/raid-controllers/raid-controllers-common-files/${MY_PV}_Unified_StorCLI.zip -> ${P}.zip"
48 +
49 +LICENSE="Avago LSI BSD"
50 +SLOT="0/7.14"
51 +KEYWORDS="-* ~amd64"
52 +IUSE=""
53 +
54 +RDEPEND=""
55 +DEPEND="app-arch/unzip"
56 +
57 +MY_STORCLI_BASEDIR="/opt/lsi/storcli"
58 +
59 +QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli
60 + ${MY_STORCLI_BASEDIR:1}/storcli32"
61 +QA_PREBUILT=${QA_PRESTRIPPED}
62 +
63 +src_unpack() {
64 + mkdir srcfiles || die
65 + pushd srcfiles &>/dev/null || die
66 + default
67 + mv Unified_storcli_all_os/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storcli_*.deb"
68 + popd &>/dev/null || die
69 +
70 + rm -rf srcfiles || die
71 +
72 + # Unpack Ubuntu package which will be our $S content
73 + unpack "${WORKDIR}"/storcli_*.deb
74 + rm -f storcli_*.deb || die "Failed to cleanup storcli_*.deb package"
75 + unpack "${WORKDIR}"/data.tar.xz
76 +
77 + mkdir "${S}" || die "Failed to create '${S}'"
78 +}
79 +
80 +src_prepare() {
81 + default
82 +
83 + # Create clean $S
84 + mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'"
85 + rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files"
86 +}
87 +
88 +src_install() {
89 + exeinto "${MY_STORCLI_BASEDIR}"
90 + newexe storcli64 storcli
91 +
92 + dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli
93 +
94 + pax-mark m "${D}${MY_STORCLI_BASEDIR}"/storcli
95 +}