mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-06 05:37:14 -08:00
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
38 lines
739 B
Bash
38 lines
739 B
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit mount-boot
|
|
|
|
MY_PV=${PV/_beta/-beta-}
|
|
|
|
DESCRIPTION="Stand alone memory testing software for x86 computers"
|
|
HOMEPAGE="http://www.memtest86.com/"
|
|
SRC_URI="https://www.memtest86.com/downloads/memtest86-usb-${MY_PV}.zip -> ${P}.zip"
|
|
|
|
LICENSE="PassMark-EULA"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64"
|
|
IUSE=""
|
|
|
|
BDEPEND="app-arch/unzip
|
|
sys-fs/fatcat"
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
default
|
|
fatcat memtest86-usb.img -O 1048576 -r /EFI/BOOT/BOOTX64.efi > ${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
|
|
}
|