summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-11 18:18:41 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-11 18:18:41 +0100
commit0e048149b07db661c8e20032b3af1d6c0b82fbce (patch)
tree2884ad321ad27d723b0f97062f32917913c3326a /sys-apps
parentsys-apps/superdiag: drop 1.5.0.20210507-r1 (diff)
downloadgentoo-0e048149b07db661c8e20032b3af1d6c0b82fbce.tar.gz
gentoo-0e048149b07db661c8e20032b3af1d6c0b82fbce.tar.bz2
gentoo-0e048149b07db661c8e20032b3af1d6c0b82fbce.zip
sys-apps/smc-sum: add 2.7.0.20210903
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/smc-sum/Manifest1
-rw-r--r--sys-apps/smc-sum/smc-sum-2.7.0.20210903.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/sys-apps/smc-sum/Manifest b/sys-apps/smc-sum/Manifest
index 5c8ac0d79048..f34024ba6799 100644
--- a/sys-apps/smc-sum/Manifest
+++ b/sys-apps/smc-sum/Manifest
@@ -1 +1,2 @@
DIST sum_2.5.2_Linux_x86_64_20210112.tar.gz 10859378 BLAKE2B 7e25cc3d6414cf9f59c1aa6dec5b183b91bb6fda8cd1fb59e5a3af37ed662859b39732c3c898d4791f0eb084d539a68bd4328814641ce8aafc166c852e68a091 SHA512 604968a367aa118a3167dad3755af4d1c6b90d164b9485f677aa393466e29f63f8fa67e1661dd22990c92c866fc3e22177a0e5a776ab5fd7ab8a674f60751fdf
+DIST sum_2.7.0_Linux_x86_64_20210903.tar.gz 13796908 BLAKE2B 4ea3e63be33bb94724483db3f5a4476f1f866152f03572e9b32317f7cc3b44b04d91a20965e6a63c7d3c5c6f5b2a4b493f77fef981d4813dfbf5c5dc2684d23a SHA512 d55a0a28a5700179f2acdd51a45be490c841b4ad3e01df30bdb22d02ccc0e24265205b320be2c5feef328e53cc049fb59376afc122707694fd17dd6c35658a9b
diff --git a/sys-apps/smc-sum/smc-sum-2.7.0.20210903.ebuild b/sys-apps/smc-sum/smc-sum-2.7.0.20210903.ebuild
new file mode 100644
index 000000000000..06d5dbd659a2
--- /dev/null
+++ b/sys-apps/smc-sum/smc-sum-2.7.0.20210903.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-mod
+
+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"
+S="${WORKDIR}/${MY_PN}_${MY_PV}_Linux_x86_64"
+
+LICENSE="supermicro"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="module"
+
+RDEPEND="
+ sys-libs/zlib
+ sys-power/iasl
+ module? ( !sys-apps/smc-sum-driver )
+"
+
+RESTRICT="bindist fetch mirror"
+
+DOCS=(
+ "PlatformFeatureSupportMatrix.pdf"
+ "ReleaseNote.txt"
+ "SUM_UserGuide.pdf"
+ "sumrc.sample"
+ "ExternalData/SMCIPID.txt"
+ "ExternalData/VENID.txt"
+)
+
+PATCHES=( "${FILESDIR}/${PN}-2.7.0.20210903-missing-include.patch" )
+
+BUILD_TARGETS="default"
+MODULE_NAMES="sum_bios(misc:${S}/driver/Source/Linux)"
+
+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_prepare() {
+ default
+
+ # Install new Makefile to respect users CFLAGS and LDFLAGS
+ cp "${FILESDIR}"/makefile driver/Source/Linux/Makefile || die
+}
+
+src_compile() {
+ if use module; then
+ BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}/driver/Source/Linux"
+ linux-mod_src_compile
+ else
+ :;
+ fi
+}
+
+src_install() {
+ newbin sum smc-sum
+ einstalldocs
+
+ use module && linux-mod_src_install
+}