summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-03-12 19:57:29 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-03-12 19:59:57 +0100
commitb07c6cb0de5c0c111c636082a49a4bbb09e94601 (patch)
treefb1fcd5ffc539914eb576b2a8fae6598625bdc75 /sys-apps/smc-sum
parentx11-misc/dunst: add 1.9.1 (diff)
downloadgentoo-b07c6cb0de5c0c111c636082a49a4bbb09e94601.tar.gz
gentoo-b07c6cb0de5c0c111c636082a49a4bbb09e94601.tar.bz2
gentoo-b07c6cb0de5c0c111c636082a49a4bbb09e94601.zip
sys-apps/smc-sum: add 2.10.0.20221209
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/smc-sum')
-rw-r--r--sys-apps/smc-sum/Manifest1
-rw-r--r--sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-apps/smc-sum/Manifest b/sys-apps/smc-sum/Manifest
index ddb25790be38..af5db447d968 100644
--- a/sys-apps/smc-sum/Manifest
+++ b/sys-apps/smc-sum/Manifest
@@ -1 +1,2 @@
+DIST sum_2.10.0_Linux_x86_64_20221209.tar.gz 20797081 BLAKE2B 2dde47521c0243a02098a4aafb4f8818227c01e73cba860b82ba5b989ee77a8fbc9a665f92222a55830b982b157782839e07e3d6f7c8dbb41b80034bf67428ae SHA512 5627fa6e473429e6fe3c93ef74f6938c9da3481b890435fb56359ea6d7f4b733e9aeae18c3c19895697db2318aa62806eae2bc40e57ca467365ffd9749d0cc75
DIST sum_2.8.1_Linux_x86_64_20220506.tar.gz 15414174 BLAKE2B 939e338f7ae3223bcd970dfdabb1e5a0bb2388d21b8fdf3666b82cf77e6c415869518d15675f2a6b4a15312bdb6d44c5b13366d1173e4ac5343ec13c65a8cdec SHA512 7350fefee12c7272d568049d07b18ef5736afc8602cb563691f8887ba046cc19aadbf57c0328e593a797d641cc515ea322de8dfb7a63ecff9b089f463dfb223e
diff --git a/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild b/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild
new file mode 100644
index 000000000000..fa73a90522dd
--- /dev/null
+++ b/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+SRC_URI="https://www.supermicro.com/Bios/sw_download/527/${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 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"
+
+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
+}