diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-06-25 16:19:27 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-06-25 16:34:49 +0200 |
commit | ee2e4e06227885105a3d3273a55c6412a0109c03 (patch) | |
tree | 9a081b229e8f8e8e7684fc9984bff52bf962ed80 /sys-apps/smc-sum | |
parent | media-sound/teamspeak-server: add 3.13.7 (diff) | |
download | gentoo-ee2e4e06227885105a3d3273a55c6412a0109c03.tar.gz gentoo-ee2e4e06227885105a3d3273a55c6412a0109c03.tar.bz2 gentoo-ee2e4e06227885105a3d3273a55c6412a0109c03.zip |
sys-apps/smc-sum: add 2.8.1.20220506
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/smc-sum')
-rw-r--r-- | sys-apps/smc-sum/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/smc-sum/smc-sum-2.8.1.20220506.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/sys-apps/smc-sum/Manifest b/sys-apps/smc-sum/Manifest index 668648b4f8ef..51a10713d0bf 100644 --- a/sys-apps/smc-sum/Manifest +++ b/sys-apps/smc-sum/Manifest @@ -1 +1,2 @@ DIST sum_2.8.0_Linux_x86_64_20220126.tar.gz 14852916 BLAKE2B a65243878ec41c05fc8c71f147883fea29517e93ef0e1460a39827a98e1fd9e533be2f4a6cfceed29562ba2d0e798cac64645bbf4d2b23267396d86516277df9 SHA512 4e11a9916b3386229eb5cfc15830bd1ecab7d79cdc3280f4a736b8882554170e6d1579531c441d0966c816e1f9c98d256d7fbb2c0a6e8c03770a1053860a06f5 +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.8.1.20220506.ebuild b/sys-apps/smc-sum/smc-sum-2.8.1.20220506.ebuild new file mode 100644 index 000000000000..e309a7ad7f47 --- /dev/null +++ b/sys-apps/smc-sum/smc-sum-2.8.1.20220506.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 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" +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 +} |