commit: 8c8ab49d518512a5636b4688afc11dbe8ceb639e Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> AuthorDate: Sun Jul 21 20:14:06 2019 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sat Aug 10 06:56:38 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c8ab49d
sys-apps/smc-sum: make sys-apps/smc-sum-driver optional Since sys-apps/smc-sum can be also used remote, make the installation of the kernel module optional. Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> sys-apps/smc-sum/metadata.xml | 3 ++ sys-apps/smc-sum/smc-sum-2.2.0.20190220-r1.ebuild | 39 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/sys-apps/smc-sum/metadata.xml b/sys-apps/smc-sum/metadata.xml index f51d8926c17..f8c11efe2d3 100644 --- a/sys-apps/smc-sum/metadata.xml +++ b/sys-apps/smc-sum/metadata.xml @@ -20,4 +20,7 @@ of the OS on the managed system and even before the system OS is installed. Licensing: SFT-OOB-LIC or SFT-DCMS-Single required for each monitor node. </longdescription> + <use> + <flag name="module">Install Supermicro's kernel module.</flag> + </use> </pkgmetadata> diff --git a/sys-apps/smc-sum/smc-sum-2.2.0.20190220-r1.ebuild b/sys-apps/smc-sum/smc-sum-2.2.0.20190220-r1.ebuild new file mode 100644 index 00000000000..aa3d81c05b4 --- /dev/null +++ b/sys-apps/smc-sum/smc-sum-2.2.0.20190220-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_DATE="$(ver_cut 4)" +MY_PN="${PN/smc-/}" +MY_PV="$(ver_cut 1-3)" + +DESCRIPTION="Updates the BIOS and IPMI firmware and system settings on Supermicro mainboards" +HOMEPAGE="https://www.supermicro.com" +SRC_URI="${MY_PN}_${MY_PV}_Linux_x86_64_${MY_DATE}.tar.gz" + +LICENSE="supermicro" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="module" + +RDEPEND="module? ( sys-apps/smc-sum-driver )" + +RESTRICT="bindist fetch mirror" + +S="${WORKDIR}/${MY_PN}_${MY_PV}_Linux_x86_64" + +DOCS=( "ReleaseNote.txt" "SUM_UserGuide.pdf" "sumrc.sample" "ExternalData/SMCIPID.txt" "ExternalData/VENID.txt" ) + +QA_PREBUILT="usr/bin/smc-sum" + +pkg_nofetch() { + elog "Please download ${A} from" + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=SUM" + elog "and place it in your DISTDIR directory." +} + +src_install() { + newbin sum smc-sum + + einstalldocs +}