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, 04 Jan 2017 01:43:00
Message-Id: 1483494137.8694e70b7001b2296d4aec13d9a861028d8daf48.whissi@gentoo
1 commit: 8694e70b7001b2296d4aec13d9a861028d8daf48
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 01:42:17 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 01:42:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8694e70b
7
8 sys-block/storcli: Bump to v1.20.15
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 sys-block/storcli/Manifest | 1 +
13 sys-block/storcli/storcli-1.20.15.ebuild | 66 ++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/sys-block/storcli/Manifest b/sys-block/storcli/Manifest
17 index 33356e5..5f92f4e 100644
18 --- a/sys-block/storcli/Manifest
19 +++ b/sys-block/storcli/Manifest
20 @@ -1 +1,2 @@
21 DIST storcli-1.19.04.zip 41606377 SHA256 026456cf30e1f14f33a42eb5804dcf9fb6d3b79b9fd46828db6cdd4abe736054 SHA512 3086360a4c40755cdcaa8faa7192adccae5555cf3aaa741be583fa3559a7dedc14652489d8248a69465040871710917d09461644df3d1d2d31fe6d6e0957196b WHIRLPOOL 81fd83d9b3e938b5cf5135066db97aa4db3c1c7b62ca861a1736dd7719874a2b68d5e1c65ad79d97e29e8d4cfbfa2ee0a7fdc347fc0931009e8f7cc946739cae
22 +DIST storcli-1.20.15.zip 47065136 SHA256 04272ebe0978f22d065193988561a128215f7797854b23ad0cdf741f2b234ae6 SHA512 8d0bd39c005b26ad0eb3db045ae8f303eb36333b569c1be9d1e599c0845b2427f473015c4f75859dd283f8ec5072a3037f1a0810c9ad54b6b552a9c08bfdba05 WHIRLPOOL b19cb84252b65b44b3fde752cf6bc9cf890554ed105a965e2a8917ccfaac2a58620062b08774be4271d4ca3aa12a0b53840cc02551aea3d63ad274cdde59b8e6
23
24 diff --git a/sys-block/storcli/storcli-1.20.15.ebuild b/sys-block/storcli/storcli-1.20.15.ebuild
25 new file mode 100644
26 index 00000000..d179a8f
27 --- /dev/null
28 +++ b/sys-block/storcli/storcli-1.20.15.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI="6"
35 +
36 +inherit pax-utils
37 +
38 +DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)"
39 +HOMEPAGE="http://www.avagotech.com/support/download-search?dnd-keyword=storcli"
40 +# For new versions check http://www.avagotech.com/cs/Satellite?pagename=AVG2/Utilities/searchResultsJson&page=1&q=storcli&endDate=null&searchType=type-AVG_Document_C~Downloads&isEntitled=null&dynamic-search-relevance=Newest
41 +SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${PV}_StorCLI.zip -> ${P}.zip"
42 +
43 +LICENSE="Avago LSI BSD"
44 +SLOT="0/6.12"
45 +KEYWORDS="-* ~amd64 ~x86"
46 +IUSE=""
47 +
48 +RDEPEND=""
49 +DEPEND=""
50 +
51 +DOCS=( readme.txt license.txt )
52 +
53 +MY_STORCLI_BASEDIR="/opt/lsi/storcli"
54 +
55 +QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli"
56 +
57 +src_unpack() {
58 + unpack ${A}
59 +
60 + mv storcli_All_OS/storcli_All_OS/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storclli_*.deb"
61 +
62 + # Unpack Ubuntu package which will be our $S content
63 + unpack "${WORKDIR}"/storcli_*.deb
64 + rm -f storcli_*.deb || die "Failed to cleanup storcli_*.deb package"
65 + unpack "${WORKDIR}"/data.tar.gz
66 +
67 + mkdir "${S}" || die "Failed to create '${S}'"
68 +}
69 +
70 +src_prepare() {
71 + default
72 +
73 + # Create clean $S
74 + mv "${WORKDIR}"/*CLI.txt "${S}"/readme.txt || die "Failed to move *CLI.txt to readme.txt"
75 + mv "${WORKDIR}"/storcli_All_OS/storcli_All_OS/Linux/license.txt "${S}"/license.txt || die "Failed to move Linux/license.txt"
76 + rm -rf "${WORKDIR}"/storcli_all* || die "Failed to cleanup storcli_all* dirs/files"
77 + mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'"
78 + rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files"
79 +}
80 +
81 +src_install() {
82 + exeinto "${MY_STORCLI_BASEDIR}"
83 +
84 + if use x86; then
85 + doexe storcli
86 + elif use amd64; then
87 + newexe storcli64 storcli
88 + fi
89 +
90 + dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli
91 +
92 + dodoc "${DOCS[@]}"
93 +
94 + pax-mark m "${D%/}${MY_STORCLI_BASEDIR}"/storcli
95 +}