From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7BA4E139694 for ; Tue, 14 Mar 2017 23:55:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2DB0E0CC1; Tue, 14 Mar 2017 23:55:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C275EE0CC1 for ; Tue, 14 Mar 2017 23:55:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B23DB340AD2 for ; Tue, 14 Mar 2017 23:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2298A6870 for ; Tue, 14 Mar 2017 23:54:58 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1489535668.08eded4644881cf6de9a4acd78f047ed86d27276.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/memtest86+/files/, sys-apps/memtest86+/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/memtest86+/files/39_memtest86+-r1 sys-apps/memtest86+/memtest86+-5.01-r3.ebuild X-VCS-Directories: sys-apps/memtest86+/files/ sys-apps/memtest86+/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 08eded4644881cf6de9a4acd78f047ed86d27276 X-VCS-Branch: master Date: Tue, 14 Mar 2017 23:54:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a6554172-1550-46e1-bc39-a2dcfca5b0da X-Archives-Hash: 74eaa61f193052cd96d22a6a0b1bdd3f commit: 08eded4644881cf6de9a4acd78f047ed86d27276 Author: Mike Frysinger gentoo org> AuthorDate: Tue Mar 14 23:52:49 2017 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Mar 14 23:54:28 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08eded46 sys-apps/memtest86+: rename installed files to match upstream #382757 We move back to using: - memtest.bin: bootable image - memtest: bare metal ELF We drop the "memtest.netbsd" file since it was never related to NetBSD. It was simply an ELF file (renamed from "memtest"). It used that name simply because we used grub's netbsd boot logic to load it (since it supports booting ELF files). sys-apps/memtest86+/files/39_memtest86+-r1 | 69 ++++++++++++++++++++ sys-apps/memtest86+/memtest86+-5.01-r3.ebuild | 90 +++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) diff --git a/sys-apps/memtest86+/files/39_memtest86+-r1 b/sys-apps/memtest86+/files/39_memtest86+-r1 new file mode 100644 index 00000000000..20422b74d65 --- /dev/null +++ b/sys-apps/memtest86+/files/39_memtest86+-r1 @@ -0,0 +1,69 @@ +#!/bin/sh + +. /usr/share/grub/grub-mkconfig_lib + +memtest=/boot/memtest86plus/memtest.bin + +memtestelf=/boot/memtest86plus/memtest + +if [ -f "${memtest}" ] && [ -f "${memtestelf}" ]; then + multiple_memtest=true +fi + +submenu_indentation="" +if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then + submenu_indentation="${grub_tab}" + cat <&2 + + device="$("${grub_probe}" --target=device "${memtest}")" + path="$(make_system_path_relative_to_its_root "${memtest}")" + cat <&2 + + device="$("${grub_probe}" --target=device "${memtestelf}")" + path="$(make_system_path_relative_to_its_root "${memtestelf}")" + cat < title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest.bin" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest.bin" + elog " > label = ${PN}" + elog +}