sys-apps/memtest86-bin: add ebuild
Package-Manager: Portage-2.3.76, Repoman-2.3.16
This commit is contained in:
parent
78bbaadd21
commit
d1fb1a954d
5 changed files with 136 additions and 0 deletions
4
sys-apps/memtest86-bin/Manifest
Normal file
4
sys-apps/memtest86-bin/Manifest
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
AUX memtest86-bin-grub.d 468 BLAKE2B 7848649fe1023f9e1160d2e412379c27b67e139d23703aa1482c0d30d025a4d576121d4d7c4150f4608b1b08e247e676faede6e1d8a13932f5648bb31c2dc9cd SHA512 05807d65a0f8ad6ad83c64a1b820fc1222035ee2578ad5b9dd8137d2405597185408ab7dfb24d30fc8e9e293056d14841d05bfd2a2dffa249c535e95c209abcd
|
||||
DIST memtest86-bin-8.2.zip 8969311 BLAKE2B cba2cb1947667c89e81256766810c96d7b97fb6342b0c8d73c76d29bcd52c3da27429dbe103f86ce045190f8825b84d5da2adab9b660a34244c91a7e21c70c74 SHA512 78e92597c2154b978d779ab78bca020fc3a4854773b847a3dd71f736e3565faadd2dd097f8e5dff5c20aaf7e397b29476e8102479b919f3212c48fe0529fd177
|
||||
EBUILD memtest86-bin-8.2.ebuild 701 BLAKE2B 13e6ee2e15fd250c624b11dece128a177edcb035212d2e5cc90af17435d0578072730b405fa3c081569c366ad16e40a2501406f8eb5ca288b004fbbc9bd74db8 SHA512 7d3afdb1df6654b393ddda05bd007fb2a22dcbd55558d9b3cee9d3de17b3d81407f8c1cf8f78cf0f1e31cec8716bddd39c54807ff27baa4eb6700d7b15f4078c
|
||||
MISC metadata.xml 251 BLAKE2B cce9d6e8dea104645f7fe5fdcebbb0373e20e6731804acf1ed8fd9afaa03b39a32df4e927cc3d78006972b960aa0a44ee1938688f5153822b8c402742ad47f45 SHA512 7194b6e799f178a5d27410b27a0e28d40210edfd9c3c1d3733564ed9a92a7e3da34a54e25b006cbfffb6e5aff8c3380eae1f8aef113e0034c484199207b59099
|
||||
22
sys-apps/memtest86-bin/files/memtest86-bin-grub.d
Normal file
22
sys-apps/memtest86-bin/files/memtest86-bin-grub.d
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /usr/share/grub/grub-mkconfig_lib
|
||||
|
||||
memtest_efi=/boot/memtest86-bin.efi
|
||||
|
||||
if [ -f "${memtest_efi}" ]; then
|
||||
echo "Found MemTest86-EFI" >&2
|
||||
device="$("${grub_probe}" --target=device "${memtest_efi}")"
|
||||
path="$(make_system_path_relative_to_its_root "${memtest_efi}")"
|
||||
cat <<EOF
|
||||
if [ "x\$grub_platform" = xefi ]; then
|
||||
menuentry "MemTest86-EFI" {
|
||||
EOF
|
||||
prepare_grub_to_access_device "${device}" | grub_add_tab
|
||||
cat <<EOF
|
||||
chainloader "${path}"
|
||||
}
|
||||
fi
|
||||
EOF
|
||||
fi
|
||||
|
||||
35
sys-apps/memtest86-bin/memtest86-bin-8.2.ebuild
Normal file
35
sys-apps/memtest86-bin/memtest86-bin-8.2.ebuild
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit mount-boot
|
||||
|
||||
DESCRIPTION="Stand alone memory testing software for x86 computers"
|
||||
HOMEPAGE="http://www.memtest86.com/"
|
||||
SRC_URI="https://www.memtest86.com/downloads/memtest86-usb.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
|
||||
}
|
||||
9
sys-apps/memtest86-bin/metadata.xml
Normal file
9
sys-apps/memtest86-bin/metadata.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ischluff@mailbox.org</email>
|
||||
<name>Anton Schubert</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue