From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C367138359 for ; Thu, 24 Sep 2020 19:31:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2F60E0837; Thu, 24 Sep 2020 19:31:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8ABDFE0824 for ; Thu, 24 Sep 2020 19:31:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 281C933BDF0 for ; Thu, 24 Sep 2020 19:31:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A53A42E1 for ; Thu, 24 Sep 2020 19:31:38 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1600975054.8040a5a77fb1f690fe39652316df8c14b27c429f.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/megacli/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/megacli/megacli-8.07.14-r3.ebuild X-VCS-Directories: sys-block/megacli/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 8040a5a77fb1f690fe39652316df8c14b27c429f X-VCS-Branch: master Date: Thu, 24 Sep 2020 19:31:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3560e2f1-91ad-43ff-bc2c-ae80ae17b76c X-Archives-Hash: 30ed057d70637c98c372feb3c7c39369 commit: 8040a5a77fb1f690fe39652316df8c14b27c429f Author: Robin H. Johnson gentoo org> AuthorDate: Thu Sep 24 19:17:34 2020 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Thu Sep 24 19:17:34 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8040a5a7 sys-block/megacli: bump for EAPI7 Signed-off-by: Robin H. Johnson gentoo.org> sys-block/megacli/megacli-8.07.14-r3.ebuild | 80 +++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/sys-block/megacli/megacli-8.07.14-r3.ebuild b/sys-block/megacli/megacli-8.07.14-r3.ebuild new file mode 100644 index 00000000000..ed3a7f8c02d --- /dev/null +++ b/sys-block/megacli/megacli-8.07.14-r3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit rpm +MY_PV="${PV//./-}" +MY_P=${MY_PV}_MegaCLI + +DESCRIPTION="LSI Logic MegaRAID Command Line Interface management tool" +HOMEPAGE="https://www.broadcom.com/support/knowledgebase/1211161498596/megacli-cheat-sheet--live-examples https://www.broadcom.com/support/knowledgebase/1211161496959/megacli-commands" +# This file is '[zip] MegaCLI 5.5 P2', Date: 01/20/2014 Size: 7753 KB +SRC_URI="https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${MY_P}.zip" + +LICENSE="LSI" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip + app-admin/chrpath" +RDEPEND="sys-libs/ncurses-compat:5" + +S=${WORKDIR} + +# Previous releases from LSI directly required a click-through EULA; but the +# upstream website no longer requires this consistently: most old files have +# two or more download pages, and while one of the pages has a generic +# click-through download form, the file-specific download page only requires +# click-through on some items. See also sys-block/lsiutil +RESTRICT="mirror bindist" +QA_PREBUILT="/opt/${PN}/${PN} + /opt/${PN}/lib/*" + +src_unpack() { + unpack ${A} + cd "${S}" + rpm_unpack ./Linux/MegaCli-${PV}-1.noarch.rpm +} + +src_install() { + newdoc "${PV}_MegaCLI.txt" RELEASE.txt + + exeinto /opt/megacli + libsysfs=libstorelibir-2.so.14.07-0 + case ${ARCH} in + amd64) MegaCli=MegaCli64;; + x86) MegaCli=MegaCli;; + *) die "invalid ARCH";; + esac + newexe opt/MegaRAID/MegaCli/${MegaCli} ${PN} + + exeinto /opt/${PN}/lib + doexe opt/MegaRAID/MegaCli/${libsysfs} + + into /opt + newbin "${FILESDIR}"/${PN}-wrapper ${PN} + dosym ${PN} /opt/bin/MegaCli + + # Remove DT_RPATH + chrpath -d "${D}"/opt/${PN}/${PN} +} + +pkg_postinst() { + einfo + einfo "See /usr/share/doc/${PF}/RELEASE.txt for a list of supported controllers" + einfo "(contains LSI model names only, not those sold by 3rd parties" + einfo "under custom names like Dell PERC etc)." + einfo + einfo "As there's no dedicated manual, you might want to have" + einfo "a look at the following cheat sheet (originally written" + einfo "for Dell PowerEdge Expandable RAID Controllers):" + einfo "http://tools.rapidsoft.de/perc/perc-cheat-sheet.html" + einfo + einfo "For more information about working with Dell PERCs see:" + einfo "http://tools.rapidsoft.de/perc/" + einfo +}