public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/storcli/
Date: Fri, 12 Aug 2016 19:33:22 +0000 (UTC)	[thread overview]
Message-ID: <1471030396.5c1fd2e3a6e825d88f4f9f7f7285c9cd54733754.whissi@gentoo> (raw)

commit:     5c1fd2e3a6e825d88f4f9f7f7285c9cd54733754
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 12 19:30:58 2016 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 12 19:33:16 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c1fd2e3

sys-block/storcli: New package

MegaRAID StorCLI is the successor of the MegaCLI tool and provides a
commandline interface to LSI and IBM MegaRAID drive controllers.

Package-Manager: portage-2.3.0

 sys-block/storcli/Manifest               |  1 +
 sys-block/storcli/metadata.xml           |  8 ++++
 sys-block/storcli/storcli-1.19.04.ebuild | 66 ++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/sys-block/storcli/Manifest b/sys-block/storcli/Manifest
new file mode 100644
index 0000000..33356e5
--- /dev/null
+++ b/sys-block/storcli/Manifest
@@ -0,0 +1 @@
+DIST storcli-1.19.04.zip 41606377 SHA256 026456cf30e1f14f33a42eb5804dcf9fb6d3b79b9fd46828db6cdd4abe736054 SHA512 3086360a4c40755cdcaa8faa7192adccae5555cf3aaa741be583fa3559a7dedc14652489d8248a69465040871710917d09461644df3d1d2d31fe6d6e0957196b WHIRLPOOL 81fd83d9b3e938b5cf5135066db97aa4db3c1c7b62ca861a1736dd7719874a2b68d5e1c65ad79d97e29e8d4cfbfa2ee0a7fdc347fc0931009e8f7cc946739cae

diff --git a/sys-block/storcli/metadata.xml b/sys-block/storcli/metadata.xml
new file mode 100644
index 0000000..352d663
--- /dev/null
+++ b/sys-block/storcli/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>whissi@whissi.de</email>
+		<name>Thomas D. (Whissi)</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/sys-block/storcli/storcli-1.19.04.ebuild b/sys-block/storcli/storcli-1.19.04.ebuild
new file mode 100644
index 0000000..744ee10
--- /dev/null
+++ b/sys-block/storcli/storcli-1.19.04.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit pax-utils
+
+DESCRIPTION="MegaRAID StorCLI (successor of the MegaCLI)"
+HOMEPAGE="http://www.avagotech.com/support/download-search?dnd-keyword=storcli"
+# 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
+SRC_URI="http://docs.avagotech.com/docs-and-downloads/docs-and-downloads/raid-controllers/raid-controllers-common-files/${PV}_StorCLI.zip -> ${P}.zip"
+
+LICENSE="Avago LSI BSD"
+SLOT="0/6.11"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=""
+
+DOCS=( readme.txt license.txt )
+
+MY_STORCLI_BASEDIR="/opt/lsi/storcli"
+
+QA_PRESTRIPPED="${MY_STORCLI_BASEDIR:1}/storcli"
+
+src_unpack() {
+	unpack ${A}
+
+	mv storcli_all_os/Ubuntu/storcli_*.deb "${WORKDIR}" || die "Failed to move storclli_*.deb"
+
+	# Unpack Ubuntu package which will be our $S content
+	unpack "${WORKDIR}"/storcli_*.deb
+	rm -f storcli_*.deb || die "Failed to cleanup storcli_*.deb package"
+	unpack "${WORKDIR}"/data.tar.gz
+
+	mkdir "${S}" || die "Failed to create '${S}'"
+}
+
+src_prepare() {
+	default
+
+	# Create clean $S
+	mv "${WORKDIR}"/*CLI.txt "${S}"/readme.txt || die "Failed to move *CLI.txt to readme.txt"
+	mv "${WORKDIR}"/storcli_all_os/Linux/license.txt "${S}"/license.txt || die "Failed to move Linux/license.txt"
+	rm -rf "${WORKDIR}"/storcli_all* || die "Failed to cleanup storcli_all* dirs/files"
+	mv "${WORKDIR}"/opt/Mega*/storcli/* "${S}" || die "Failed to move storcli_.deb content to '${S}'"
+	rm -rf "${WORKDIR}"/{opt,control.tar.gz,data.tar.gz,debian-binary} || die "Failed to cleanup no longer needed files"
+}
+
+src_install() {
+	exeinto "${MY_STORCLI_BASEDIR}"
+
+	if use x86; then
+		doexe storcli
+	elif use amd64; then
+		newexe storcli64 storcli
+	fi
+
+	dosym "${MY_STORCLI_BASEDIR}"/storcli /usr/sbin/storcli
+
+	dodoc "${DOCS[@]}"
+
+	pax-mark m "${D%/}${MY_STORCLI_BASEDIR}"/storcli
+}


             reply	other threads:[~2016-08-12 19:33 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12 19:33 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-08-12 20:24 [gentoo-commits] repo/gentoo:master commit in: sys-block/storcli/ Thomas Deutschmann
2016-12-17  9:16 Aaron Bauman
2016-12-18 21:16 Thomas Deutschmann
2017-01-04  1:42 Thomas Deutschmann
2017-03-03 21:02 Thomas Deutschmann
2017-03-03 21:02 Thomas Deutschmann
2017-07-10 15:33 Thomas Deutschmann
2017-07-10 15:33 Thomas Deutschmann
2017-07-10 15:33 Thomas Deutschmann
2018-05-26 18:56 Thomas Deutschmann
2018-05-26 18:56 Thomas Deutschmann
2018-08-17  0:14 Patrick McLean
2018-08-18 19:30 Thomas Deutschmann
2018-09-26 23:08 Thomas Deutschmann
2018-09-26 23:08 Thomas Deutschmann
2019-01-25  1:27 Patrick McLean
2019-01-25  1:29 Patrick McLean
2019-07-30 21:38 Thomas Deutschmann
2019-07-30 21:40 Thomas Deutschmann
2019-12-26 10:43 Thomas Deutschmann
2019-12-26 10:43 Thomas Deutschmann
2019-12-26 15:00 Thomas Deutschmann
2019-12-26 15:00 Thomas Deutschmann
2020-04-28 23:04 Thomas Deutschmann
2020-04-28 23:04 Thomas Deutschmann
2020-08-06 13:50 Thomas Deutschmann
2020-08-06 13:50 Thomas Deutschmann
2020-12-20 23:55 Thomas Deutschmann
2020-12-20 23:55 Thomas Deutschmann
2021-05-07 19:51 Thomas Deutschmann
2021-06-18 16:36 Thomas Deutschmann
2021-07-08 14:22 Thomas Deutschmann
2021-07-08 14:22 Thomas Deutschmann
2021-07-08 14:22 Thomas Deutschmann
2021-07-24 13:37 Thomas Deutschmann
2022-11-18  8:17 Joonas Niilola
2022-11-18  8:17 Joonas Niilola
2022-11-18  8:17 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471030396.5c1fd2e3a6e825d88f4f9f7f7285c9cd54733754.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox