From 31fe45c2a3cb2152b5d11a3a3333d826ec89a70b Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Fri, 2 Jun 2023 10:28:24 +0200 Subject: sys-apps/smc-sum: migrate to linux-mod-r1 Signed-off-by: Conrad Kostecki --- sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild | 68 ++++++++++++++++++++++ sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild | 68 ---------------------- 2 files changed, 68 insertions(+), 68 deletions(-) create mode 100644 sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild delete mode 100644 sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild (limited to 'sys-apps') diff --git a/sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild b/sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild new file mode 100644 index 000000000000..232195afedd7 --- /dev/null +++ b/sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.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-r1 + +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 +" + +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" ) + +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 + + use module && linux-mod-r1_pkg_setup +} + +src_compile() { + if use module; then + local modargs=( KDIR="${KV_OUT_DIR}" ) + local modlist=( sum_bios="misc:driver/Source/Linux" ) + + linux-mod-r1_src_compile + else + :; + fi +} + +src_install() { + newbin sum smc-sum + einstalldocs + + use module && linux-mod-r1_src_install +} 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 deleted file mode 100644 index fa73a90522dd..000000000000 --- a/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# 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 -} -- cgit v1.2.3-65-gdbad