1 |
commit: 9c96ac36dba85e1366e023f917fefc1f6af3c0a8 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 20:59:34 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 21:02:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c96ac36 |
7 |
|
8 |
sys-block/storcli: Bump to v1.21.06 |
9 |
|
10 |
Don't get confused why upstream's src archive is named v1.21.16... |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
sys-block/storcli/Manifest | 2 + |
15 |
sys-block/storcli/storcli-1.21.06.ebuild | 83 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 85 insertions(+) |
17 |
|
18 |
diff --git a/sys-block/storcli/Manifest b/sys-block/storcli/Manifest |
19 |
index 5f92f4e294d..e487aeb08a5 100644 |
20 |
--- a/sys-block/storcli/Manifest |
21 |
+++ b/sys-block/storcli/Manifest |
22 |
@@ -1,2 +1,4 @@ |
23 |
DIST storcli-1.19.04.zip 41606377 SHA256 026456cf30e1f14f33a42eb5804dcf9fb6d3b79b9fd46828db6cdd4abe736054 SHA512 3086360a4c40755cdcaa8faa7192adccae5555cf3aaa741be583fa3559a7dedc14652489d8248a69465040871710917d09461644df3d1d2d31fe6d6e0957196b WHIRLPOOL 81fd83d9b3e938b5cf5135066db97aa4db3c1c7b62ca861a1736dd7719874a2b68d5e1c65ad79d97e29e8d4cfbfa2ee0a7fdc347fc0931009e8f7cc946739cae |
24 |
DIST storcli-1.20.15.zip 47065136 SHA256 04272ebe0978f22d065193988561a128215f7797854b23ad0cdf741f2b234ae6 SHA512 8d0bd39c005b26ad0eb3db045ae8f303eb36333b569c1be9d1e599c0845b2427f473015c4f75859dd283f8ec5072a3037f1a0810c9ad54b6b552a9c08bfdba05 WHIRLPOOL b19cb84252b65b44b3fde752cf6bc9cf890554ed105a965e2a8917ccfaac2a58620062b08774be4271d4ca3aa12a0b53840cc02551aea3d63ad274cdde59b8e6 |
25 |
+DIST storcli-1.21.06.zip 48578520 SHA256 499e4c26d7ddcc37ccf198816444f4cc2e68724d01762aef36eda360e6ef5b0f SHA512 714d8588566d2baf51cd67e958c9dfdb3f2eb0776a7fa2a9cb46ddad74b8e8a5e1515bf6e3746184b70187c83323b040bf902a2a357e928ad7d3525d3005c71e WHIRLPOOL e56aa67c0044949614b62920e2c1fbdb491cfe3d89d12a88460554397e5f44d8ca139266f8eaa523298ea4bc315a6583cefffa60f7d66a37c85a30e20aa2d747 |
26 |
+DIST storcli-1.21.06_readme.txt 199925 SHA256 30ebccb7a8fefa14514510ca2bd26ca7b67628958c18af697e128da498be3dcd SHA512 78524212b5d95bd62ef692bb715f6ae977811fd5522498915a4dbbd74a5d783d176fe318c0a0b7aad1b23419c78d205267f19b55790519dcc6d7e1d873498bad WHIRLPOOL bde52e5da198fd73943f455a9f85100d0fc2220e2a7f56e4277acf473278ef756374d841206e8763126f4c3f8f5bee88e9243e313dbc4973333676fe761dda97 |
27 |
|
28 |
diff --git a/sys-block/storcli/storcli-1.21.06.ebuild b/sys-block/storcli/storcli-1.21.06.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..f9ebfbf1a8c |
31 |
--- /dev/null |
32 |
+++ b/sys-block/storcli/storcli-1.21.06.ebuild |
33 |
@@ -0,0 +1,83 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="6" |
38 |
+ |
39 |
+inherit pax-utils |
40 |
+ |
41 |
+# Upstream messed up packaging: |
42 |
+# This is v1.21.06 according to "storcli -v" but ZIP is named v1.21.16.. |
43 |
+# Also, README is isn't included in archive. |
44 |
+MY_PV="1.21.16" |
45 |
+ |
46 |
+DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)" |
47 |
+HOMEPAGE="https://www.broadcom.com/support/download-search?dk=storcli" |
48 |
+SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${MY_PV}_StorCLI.zip -> ${P}.zip |
49 |
+ https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${PV}_StorCLI.txt -> ${P}_readme.txt" |
50 |
+ |
51 |
+LICENSE="Avago LSI BSD" |
52 |
+SLOT="0/6.13" |
53 |
+KEYWORDS="-* ~amd64 ~x86" |
54 |
+IUSE="" |
55 |
+ |
56 |
+RDEPEND="" |
57 |
+DEPEND="" |
58 |
+ |
59 |
+DOCS=( readme.txt license.txt ) |
60 |
+ |
61 |
+MY_STORCLI_BASEDIR="/opt/lsi/storcli" |
62 |
+ |
63 |
+QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli" |
64 |
+ |
65 |
+src_unpack() { |
66 |
+ local _src_file |
67 |
+ |
68 |
+ for _src_file in ${A}; do |
69 |
+ if [[ ${_src_file} == *.txt ]]; then |
70 |
+ cp "${DISTDIR}/${_src_file}" "${WORKDIR}" || die "Failed to copy '${_src_file}' to '${WORKDIR}'!" |
71 |
+ else |
72 |
+ unpack ${_src_file} |
73 |
+ fi |
74 |
+ done |
75 |
+ |
76 |
+ mv versionChangeSet/univ_viva_cli_rel/storcli_All_OS.zip "${WORKDIR}" || die "Failed to move storcli_All_OS.zip" |
77 |
+ rm -rf versionChangeSet || die "Failed to cleanup upstream's archive mess (versionChangeSet)" |
78 |
+ rm -rf cqAttachments || die "Failed to cleanup upstream's archive mess (cqAttachments)" |
79 |
+ unpack "${WORKDIR}"/storcli_All_OS.zip |
80 |
+ |
81 |
+ mv storcli_All_OS/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storclli_*.deb" |
82 |
+ |
83 |
+ # Unpack Ubuntu package which will be our $S content |
84 |
+ unpack "${WORKDIR}"/storcli_*.deb |
85 |
+ rm -f storcli_*.deb || die "Failed to cleanup storcli_*.deb package" |
86 |
+ unpack "${WORKDIR}"/data.tar.gz |
87 |
+ |
88 |
+ mkdir "${S}" || die "Failed to create '${S}'" |
89 |
+} |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ default |
93 |
+ |
94 |
+ # Create clean $S |
95 |
+ mv "${WORKDIR}"/*_readme.txt "${S}"/readme.txt || die "Failed to move *CLI.txt to readme.txt" |
96 |
+ mv "${WORKDIR}"/storcli_All_OS/Linux/license.txt "${S}"/license.txt || die "Failed to move Linux/license.txt" |
97 |
+ rm -rf "${WORKDIR}"/storcli_All* || die "Failed to cleanup storcli_all* dirs/files" |
98 |
+ mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'" |
99 |
+ rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files" |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ exeinto "${MY_STORCLI_BASEDIR}" |
104 |
+ |
105 |
+ if use x86; then |
106 |
+ doexe storcli |
107 |
+ elif use amd64; then |
108 |
+ newexe storcli64 storcli |
109 |
+ fi |
110 |
+ |
111 |
+ dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli |
112 |
+ |
113 |
+ dodoc "${DOCS[@]}" |
114 |
+ |
115 |
+ pax-mark m "${D%/}${MY_STORCLI_BASEDIR}"/storcli |
116 |
+} |