Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/memtest86-bin/
Date: Fri, 30 Sep 2022 12:58:20
Message-Id: 1664542689.04e87feb89d0abe22b016eba58e8281462e11243.bkohler@gentoo
1 commit: 04e87feb89d0abe22b016eba58e8281462e11243
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 12:57:49 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 12:58:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04e87feb
7
8 sys-apps/memtest86-bin: add 10.0
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 sys-apps/memtest86-bin/Manifest | 1 +
13 sys-apps/memtest86-bin/memtest86-bin-10.0.ebuild | 44 ++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/sys-apps/memtest86-bin/Manifest b/sys-apps/memtest86-bin/Manifest
17 index dd2b28717705..677bf41a040c 100644
18 --- a/sys-apps/memtest86-bin/Manifest
19 +++ b/sys-apps/memtest86-bin/Manifest
20 @@ -1 +1,2 @@
21 +DIST memtest86-bin-10.0.zip 9369041 BLAKE2B c5792b45ee0b9e32013ad64d17e43d6da4ffd80160a913fbd3b82390dd1d7d5e6ca226730fffab01ee6cb36d66b2a78e66d0bfd7a1dd4b07546550e268bc18f5 SHA512 b08e6cf3cb9448d5ac7fb4ba7c6338d2037caebd16710f4c2897cfe73766d7dfba7a0012b1ec5acbc546932e989c2a82bec1428295ea0bf4702e49d75e5b03e1
22 DIST memtest86-bin-9.4.zip 8760207 BLAKE2B a4db434f9ce049d14b7a7bd98ed88ecad5492e4541d564520eba60b9c37d40d22bdf27ec92f05f3601453647ee88486caf51259bf90a72954b29c8eecbd36ca9 SHA512 c5a6183e2b66fe6023a7478ddfecf94dab03e99272d916fe156f05e2edcc2e70c7cd12feff474381571213bd6b07c76b78dd54d07f2db011cbe3127dac2dc222
23
24 diff --git a/sys-apps/memtest86-bin/memtest86-bin-10.0.ebuild b/sys-apps/memtest86-bin/memtest86-bin-10.0.ebuild
25 new file mode 100644
26 index 000000000000..9e0a77415687
27 --- /dev/null
28 +++ b/sys-apps/memtest86-bin/memtest86-bin-10.0.ebuild
29 @@ -0,0 +1,44 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit mount-boot
36 +
37 +DESCRIPTION="Stand alone memory testing software for x86 computers"
38 +HOMEPAGE="http://www.memtest86.com/"
39 +SRC_URI="https://www.memtest86.com/downloads/memtest86-usb.zip -> ${P}.zip"
40 +
41 +LICENSE="PassMark-EULA"
42 +RESTRICT="mirror bindist"
43 +SLOT="0"
44 +KEYWORDS="-* ~amd64"
45 +IUSE=""
46 +
47 +BDEPEND="app-arch/unzip
48 + sys-fs/fatcat"
49 +
50 +S=${WORKDIR}
51 +
52 +src_unpack() {
53 + default
54 + fatcat -O 1048576 -r /EFI/BOOT/BOOTX64.efi memtest86-usb.img > ${PN}.efi || die
55 +}
56 +
57 +src_install() {
58 + insinto /boot
59 + doins ${PN}.efi
60 +
61 + exeinto /etc/grub.d/
62 + newexe "${FILESDIR}"/${PN}-grub.d 39_memtest86-bin
63 +
64 + dodoc MemTest86_User_Guide_UEFI.pdf
65 +}
66 +
67 +pkg_postinst() {
68 + mount-boot_pkg_postinst
69 +
70 + if [ ! -e /sys/firmware/efi ]; then
71 + ewarn "WARNING: You appear to be booted in BIOS mode but ${PN} is an EFI-only tool."
72 + fi
73 +}