diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-01 22:14:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-01 22:14:42 +0100 |
commit | 9bc60dddf90169c365a03537991b4d9a5d9b28db (patch) | |
tree | 2f2cae7cd5d44dcfd43dc1a4fc81665fba314e8f /sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild | |
parent | aef01e7679692cb2cf9eca0c03865cfd0a4e33c9 (diff) |
gentoo auto-resync : 01:09:2023 - 22:14:42
Diffstat (limited to 'sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild')
-rw-r--r-- | sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild b/sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild new file mode 100644 index 000000000000..54ff7712597b --- /dev/null +++ b/sys-apps/memtest86-bin/memtest86-bin-10.6_p2000.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit mount-boot secureboot + +DESCRIPTION="Stand alone memory testing software for x86 EFI hardware" +HOMEPAGE="http://www.memtest86.com/" +SRC_URI="https://www.memtest86.com/downloads/memtest86-usb.zip -> ${P}.zip" +S="${WORKDIR}" + +LICENSE="PassMark-EULA" +RESTRICT="mirror bindist" +SLOT="0" +KEYWORDS="-* ~amd64" + +BDEPEND=" + app-arch/unzip + sys-fs/fatcat +" + +src_unpack() { + default + fatcat -O 1048576 -r /EFI/BOOT/BOOTX64.efi memtest86-usb.img > ${PN}.efi || die +} + +src_install() { + insinto /boot + doins ${PN}.efi + + exeinto /etc/grub.d/ + newexe "${FILESDIR}"/${PN}-grub.d 39_memtest86-bin + + dodoc MemTest86_User_Guide_UEFI.pdf + + secureboot_auto_sign --in-place +} + +pkg_postinst() { + mount-boot_pkg_postinst + + if [ ! -e /sys/firmware/efi ]; then + ewarn "WARNING: You appear to be booted in BIOS mode but ${PN} is an EFI-only tool." + fi +} |