diff options
Diffstat (limited to 'sys-apps/smc-sum')
-rw-r--r-- | sys-apps/smc-sum/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/smc-sum/files/makefile | 15 | ||||
-rw-r--r-- | sys-apps/smc-sum/files/smc-sum-2.7.0.20210903-missing-include.patch | 10 | ||||
-rw-r--r-- | sys-apps/smc-sum/smc-sum-2.5.2.20210112.ebuild | 38 | ||||
-rw-r--r-- | sys-apps/smc-sum/smc-sum-2.7.0.20210903.ebuild | 73 |
5 files changed, 102 insertions, 40 deletions
diff --git a/sys-apps/smc-sum/Manifest b/sys-apps/smc-sum/Manifest index 96046b2d4feb..3d0088936419 100644 --- a/sys-apps/smc-sum/Manifest +++ b/sys-apps/smc-sum/Manifest @@ -1,3 +1,5 @@ -DIST sum_2.5.2_Linux_x86_64_20210112.tar.gz 10859378 BLAKE2B 7e25cc3d6414cf9f59c1aa6dec5b183b91bb6fda8cd1fb59e5a3af37ed662859b39732c3c898d4791f0eb084d539a68bd4328814641ce8aafc166c852e68a091 SHA512 604968a367aa118a3167dad3755af4d1c6b90d164b9485f677aa393466e29f63f8fa67e1661dd22990c92c866fc3e22177a0e5a776ab5fd7ab8a674f60751fdf -EBUILD smc-sum-2.5.2.20210112.ebuild 937 BLAKE2B b2bc1c2e2c545f8ae1dec27ee7cc09481dddc3f1997c0ec0ff92cf896787fd5502226528d995a16606ebf8c3d20ec8b3fff81cdebd855e96f0a81dbc5db5fca8 SHA512 8b0d043b697f25b5d7894e75fa85ac2c16aa6e54bfa88bb4952f3762a1ebab20b5d7ee9f4e9d1f49c187cc3d4a5477d552816855949783cb86e5b66841d0ee5f +AUX makefile 298 BLAKE2B 58431440f52821bf8f1a6070075eace33f173dc1cbe19722c033cc6525b2ae4a6890aec2870f68b282368c9722b87796a14b53d364ce3e7002dfac452480e74e SHA512 862b6a2ae684da3b864eacef8b645c27ef4a6ccc4f577ccc9c5d88cd0426ce66a6462bcaaf01bdd0082898f7e3801cd6a00bc1c702af83faf7ca31b9de1c14e9 +AUX smc-sum-2.7.0.20210903-missing-include.patch 264 BLAKE2B 977008b43b91ff7ee7a1c32ac6ce4221d078c782b36479f5319818c143d99eec0ef69c787e8e170badb54c45bde4bf10f7359bf7e30e84141de816de4334f1e1 SHA512 c75b04f7c44cb273d781648e57c7339eb16c23e37b6cdfe3387444e0f5a4dcb72097d03a78d5f6ec327ba4b739444c93c378f0d2212c845873a387d30517328b +DIST sum_2.7.0_Linux_x86_64_20210903.tar.gz 13796908 BLAKE2B 4ea3e63be33bb94724483db3f5a4476f1f866152f03572e9b32317f7cc3b44b04d91a20965e6a63c7d3c5c6f5b2a4b493f77fef981d4813dfbf5c5dc2684d23a SHA512 d55a0a28a5700179f2acdd51a45be490c841b4ad3e01df30bdb22d02ccc0e24265205b320be2c5feef328e53cc049fb59376afc122707694fd17dd6c35658a9b +EBUILD smc-sum-2.7.0.20210903.ebuild 1513 BLAKE2B aea1f54566faa4560c226713e4c4755b7d59d0115372a53313d8987f8aae555f6bc839105f9bc2bba1433e6a9d54d642b1ac9d45558588ff434e6f25c8bb4c15 SHA512 6d8d988d3de1a3a553b289733dbd4f89ab8324aad5c85ff84218672b5bc63a1804569bfdfd26a16ce4a35af550e86189400b88b7cd2057722f5878dabade3124 MISC metadata.xml 1098 BLAKE2B af888334fb5709cdaf9ee12821a8d006e4343d27ae89d51683b30c32820a6250b75b762946a6c7d1f23b7c1383eb66ba4d6b450d5d366bdac42d4df350f5e5fc SHA512 aef30566e58c8781faed28eee5e8574fa7017f90c20065a13868a0c6abaa9e069f425c4826cddbbbbbb84c37b3ef83c13eb46ce1eb829dca0380a2f5ed72729c diff --git a/sys-apps/smc-sum/files/makefile b/sys-apps/smc-sum/files/makefile new file mode 100644 index 000000000000..35564dcc8fec --- /dev/null +++ b/sys-apps/smc-sum/files/makefile @@ -0,0 +1,15 @@ +obj-m := sum_bios.o + +KVERSION := $(shell uname -r) +KDIR := /lib/modules/$(KVERSION)/build +PWD := $(shell pwd) + +EXTRA_CFLAGS = $(CFLAGS) -Wno-incompatible-pointer-types +EXTRA_LDFLAGS = $(LDFLAGS) + +default: + $(MAKE) -C $(KDIR) M=$(PWD) modules + +install: + $(MAKE) -C $(KDIR) M=$(PWD) modules_install + diff --git a/sys-apps/smc-sum/files/smc-sum-2.7.0.20210903-missing-include.patch b/sys-apps/smc-sum/files/smc-sum-2.7.0.20210903-missing-include.patch new file mode 100644 index 000000000000..6e392e433173 --- /dev/null +++ b/sys-apps/smc-sum/files/smc-sum-2.7.0.20210903-missing-include.patch @@ -0,0 +1,10 @@ +--- a/driver/Source/Linux/sum_bios.c ++++ b/driver/Source/Linux/sum_bios.c +@@ -12,6 +12,7 @@ + #include <linux/fs.h> + #include <linux/gfp.h> + #include <linux/init.h> ++#include <linux/io.h> + #include <linux/major.h> + #include <linux/module.h> + #include <linux/smp.h> diff --git a/sys-apps/smc-sum/smc-sum-2.5.2.20210112.ebuild b/sys-apps/smc-sum/smc-sum-2.5.2.20210112.ebuild deleted file mode 100644 index d3808ba67961..000000000000 --- a/sys-apps/smc-sum/smc-sum-2.5.2.20210112.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 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" -S="${WORKDIR}/${MY_PN}_${MY_PV}_Linux_x86_64" - -LICENSE="supermicro" -SLOT="0" -KEYWORDS="-* ~amd64" -IUSE="module" - -RDEPEND="module? ( sys-apps/smc-sum-driver )" - -RESTRICT="bindist fetch mirror" - -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 -} 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 +} |