diff options
author | Ben Kohler <bkohler@gentoo.org> | 2022-10-25 07:59:22 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2022-10-25 07:59:46 -0500 |
commit | 0def347951fcf06b101886535fad2b6d85d84a8f (patch) | |
tree | 25e3d9c53b06cfb5120afbaf2c153c47efa5ec04 /sys-apps/memtest86+ | |
parent | sci-astronomy/celestia: Drop obsolete inherit (diff) | |
download | gentoo-0def347951fcf06b101886535fad2b6d85d84a8f.tar.gz gentoo-0def347951fcf06b101886535fad2b6d85d84a8f.tar.bz2 gentoo-0def347951fcf06b101886535fad2b6d85d84a8f.zip |
sys-apps/memtest86+: add 6.00
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-apps/memtest86+')
-rw-r--r-- | sys-apps/memtest86+/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/memtest86+/memtest86+-6.00.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/sys-apps/memtest86+/Manifest b/sys-apps/memtest86+/Manifest index 830771aa97df..1376f06967a0 100644 --- a/sys-apps/memtest86+/Manifest +++ b/sys-apps/memtest86+/Manifest @@ -1,2 +1,3 @@ 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.00_beta3.tar.gz 221103 BLAKE2B 37910d96d3c2eefe7c17495fb8aae5e81f8751eae50f6523c1235090225901f09da4373cd3ca00a6b2b736f90ba197bb0974000c3aa65b596683863c7952a3b6 SHA512 d3208d0b191d63ec01747d499d03f04f2a95128fd49f141be8a11ec53f2fe8a1a42247a80890a33bb83179134876d3e0fc882d77cb36c1cb86bc2a643632eb25 diff --git a/sys-apps/memtest86+/memtest86+-6.00.ebuild b/sys-apps/memtest86+/memtest86+-6.00.ebuild new file mode 100644 index 000000000000..eb5778e25fdf --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-6.00.ebuild @@ -0,0 +1,78 @@ +# Copyright 2022 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 +} |