diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-02-05 07:34:29 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-02-05 07:35:42 -0600 |
commit | e5862e0cebb03110a03b15002720d77392ef450a (patch) | |
tree | 7b9882d3385c2f94a284c038ebd3ce337d0e229f /sys-apps | |
parent | games-strategy/naev: add 0.10.4 (diff) | |
download | gentoo-e5862e0cebb03110a03b15002720d77392ef450a.tar.gz gentoo-e5862e0cebb03110a03b15002720d77392ef450a.tar.bz2 gentoo-e5862e0cebb03110a03b15002720d77392ef450a.zip |
sys-apps/memtest86+: add 6.10
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/memtest86+/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/memtest86+/memtest86+-6.10.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/sys-apps/memtest86+/Manifest b/sys-apps/memtest86+/Manifest index 6ce961d8ffb4..406298970976 100644 --- a/sys-apps/memtest86+/Manifest +++ b/sys-apps/memtest86+/Manifest @@ -1,3 +1,4 @@ DIST memtest86+-5.31b.tar.gz 227779 BLAKE2B 14aced912bb84115278a3aff7650a3571918b823335aaf7d09880ef10374c320f64878765d93d2ee5a75e2b33ef6c9c4886a9a168955bd77c668f06f5c86a6ca SHA512 ad5891fd0c430ce7a5d0cde2d10dee20b66ad8060d47c3e70e038461d9cde3a78dfc13442b5b09da7c662741945a670353c72dbc08fd5ee8bae82256001a9541 DIST memtest86+-6.00.tar.gz 224187 BLAKE2B bba26dab7165239fe95dc7f174e5f876f47421008ca6201bc57549598f512df56a6a0ca71f8c2c26c01188d243b58ab6ddd525cf01f0dece0cdb61a6acf38685 SHA512 7538afb9e894fbb0f57d40e6d05016beb157648a67dc2d081754e5c03f17a7a5f6adb0c3385c524c0f66d5c90c87a0d7267994d0b1c2b30a3ccac4f99fc6e4af DIST memtest86+-6.01.tar.gz 224548 BLAKE2B 429df2d71cb0d84bec9aa3a25023f2a9db2e8c01b32b0af1f42b689a4a7da192d5ddb77a5cb126a162aba0c1e704a2da8f5dee88caae0d9f78545e9e9c14eee9 SHA512 a80256e2cfdad927d55a2f67d65255f90e911e8bfb59d9da841482ddeca7f3cf767b029c299aca8076c9bd2b9ee71671bb768b551a7ea041009bb89ebec927dc +DIST memtest86+-6.10.tar.gz 230056 BLAKE2B 2462c31f1ca27aa166c447e51a9b388872faaf7f845100a122f5dd8eb11dc76e26c503dc14d0825bda397c7180a5259094a020d25dd9d43b1997bfbe424c7f65 SHA512 2fb8e6d375f7ced53b1c2d50ffeeafcee1282b2495ea4241958e210c0b4a3500701025041469459c0db1662c448a3b65a51a994d19bc8ac217e23fa935700e42 diff --git a/sys-apps/memtest86+/memtest86+-6.10.ebuild b/sys-apps/memtest86+/memtest86+-6.10.ebuild new file mode 100644 index 000000000000..ba53cf25aeee --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-6.10.ebuild @@ -0,0 +1,78 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit mount-boot toolchain-funcs + +MY_PV=${PV/_/-} + +DESCRIPTION="Memory tester based on PCMemTest" +HOMEPAGE="https://www.memtest.org/" +SRC_URI="https://github.com/memtest86plus/memtest86plus/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bios32 bios64 +boot efi32 efi64 iso32 iso64" + +ISODEPS=" + dev-libs/libisoburn + sys-fs/dosfstools + sys-fs/mtools +" +BDEPEND=" + iso32? ( ${ISODEPS} ) + iso64? ( ${ISODEPS} ) +" + +S=${WORKDIR}/memtest86plus-${MY_PV} + +src_prepare() { + sed -i \ + -e 's#/sbin/mkdosfs#mkfs.vfat#' \ + -e 's/^AS = as/AS +=/' \ + -e '/^CC/d' \ + -e 's/objcopy/$(OBJCOPY)/' \ + -e 's/shell size/shell $(SIZE)/' \ + build{32,64}/Makefile || die + default +} + +src_compile() { + tc-export OBJCOPY + export SIZE=$(tc-getPROG SIZE size) + pushd build32 + use bios32 && emake memtest.bin + use efi32 && emake memtest.efi + use iso32 && emake iso + popd + + pushd build64 + use bios64 && emake memtest.bin + use efi64 && emake memtest.efi + use iso64 && emake iso + popd +} + +install_memtest_images() { + use bios32 && newins build32/memtest.bin memtest32.bios + use bios64 && newins build64/memtest.bin memtest64.bios + use efi32 && newins build32/memtest.efi memtest.efi32 + use efi64 && newins build64/memtest.efi memtest.efi64 +} + +src_install() { + default + if use boot; then + exeinto /etc/grub.d/ + newexe "${FILESDIR}"/39_memtest86+-r2 39_memtest86+ + insinto /boot/memtest86plus + install_memtest_images + fi + + insinto /usr/share/${PN} + install_memtest_images + use iso32 && newins build32/memtest.iso memtest32.iso + use iso64 && newins build64/memtest.iso memtest64.iso +} |