sys-apps/smc-sum: make sys-apps/smc-sum-driver optional
authorConrad Kostecki <conrad@kostecki.com>
Sun, 21 Jul 2019 20:14:06 +0000 (22:14 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Sat, 10 Aug 2019 06:56:38 +0000 (09:56 +0300)
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@kostecki.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
sys-apps/smc-sum/metadata.xml
sys-apps/smc-sum/smc-sum-2.2.0.20190220-r1.ebuild [new file with mode: 0644]

index f51d8926c17ffa8ec7a64e61e42c3ec7a1974472..f8c11efe2d37198bb5ac9118c4d123849d89cf89 100644 (file)
@@ -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 (file)
index 0000000..aa3d81c
--- /dev/null
@@ -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
+}