-DIST memtest86+-4.20.tar.gz 206044 BLAKE2B 69192572fd4d83a0f447683ea48336924b41d623a57a5b9b3ef87b8dc77dedc1472599fb220bd10f8b2ae7280118caa9f3b9676a183ce6617991fc9b2204bfc6 SHA512 2213a64cd3036f840dd816dd49b62b0f082e1fbfe64e02f52370f04e39857f042dc8bc0044c1a88ba678e72c1eb8629aa706fabfd3c052e41c29c073f4e8c441
DIST memtest86+-5.01.tar.gz 214877 BLAKE2B ef63eaabaf6d3d27b85c73618c692dd61cce52f3670a57958d181623888bdc3aa538855da9a82ec2ab70b180938e3df99f0b06f606b2d6f64e8aabbe781b3050 SHA512 d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7
+++ /dev/null
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit mount-boot eutils toolchain-funcs
-
-DESCRIPTION="Memory tester based on memtest86"
-HOMEPAGE="http://www.memtest.org/"
-SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="-* amd64 x86"
-IUSE="floppy serial"
-
-BOOTDIR=/boot/memtest86plus
-QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd"
-
-RDEPEND="floppy? ( sys-fs/mtools )"
-DEPEND=""
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-4.20-hardcoded_cc.patch
-
- sed -i -e 's,0x10000,0x100000,' memtest.lds || die
-
- if use serial ; then
- sed -i \
- -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
- config.h \
- || die "sed failed"
- fi
-
- cat - > "${T}"/39_${PN} <<EOF
-#!/bin/sh
-exec tail -n +3 \$0
-
-menuentry "${PN} ${PV}" {
- linux16 ${BOOTDIR}/memtest
-}
-
-menuentry "${PN} ${PV} (netbsd)" {
- insmod bsd
- knetbsd ${BOOTDIR}/memtest.netbsd
-}
-EOF
-
- tc-export AS CC LD
-}
-
-src_test() { :; }
-
-src_install() {
- insinto ${BOOTDIR}
- newins memtest.bin memtest
- newins memtest memtest.netbsd
- dosym memtest ${BOOTDIR}/memtest.bin
-
- exeinto /etc/grub.d
- doexe "${T}"/39_${PN}
-
- dodoc README README.build-process FAQ changelog
-
- if use floppy ; then
- dobin "${FILESDIR}"/make-memtest86+-boot-floppy
- doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
- fi
-}
-
-pkg_postinst() {
- mount-boot_pkg_postinst
- elog
- elog "memtest has been installed in ${BOOTDIR}/"
- elog "You may wish to update your bootloader configs"
- elog "by adding these lines:"
- elog " - For grub2 just run grub-mkconfig, a configuration file is installed"
- elog " as /etc/grub.d/39_${PN}"
- elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)"
- elog " > title=${PN}"
- elog " > root (hd?,?)"
- elog " > kernel ${BOOTDIR}/memtest"
- elog " - For lilo:"
- elog " > image = ${BOOTDIR}/memtest"
- elog " > label = ${PN}"
- elog
-}
+++ /dev/null
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit mount-boot eutils toolchain-funcs
-
-DESCRIPTION="Memory tester based on memtest86"
-HOMEPAGE="http://www.memtest.org/"
-SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-IUSE="floppy serial"
-
-BOOTDIR=/boot/memtest86plus
-QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd"
-
-RDEPEND="floppy? ( sys-fs/mtools )"
-DEPEND=""
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-4.20-hardcoded_cc.patch
-
- sed -i -e 's,0x10000,0x100000,' memtest.lds || die
-
- if use serial ; then
- sed -i \
- -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
- config.h \
- || die "sed failed"
- fi
-
- tc-export AS CC LD
-}
-
-src_test() { :; }
-
-src_install() {
- insinto ${BOOTDIR}
- newins memtest.bin memtest
- newins memtest memtest.netbsd
- dosym memtest ${BOOTDIR}/memtest.bin
-
- exeinto /etc/grub.d
- doexe "${FILESDIR}"/39_memtest86+
-
- dodoc README README.build-process FAQ changelog
-
- if use floppy ; then
- dobin "${FILESDIR}"/make-memtest86+-boot-floppy
- doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
- fi
-}
-
-pkg_postinst() {
- mount-boot_pkg_postinst
- elog
- elog "memtest has been installed in ${BOOTDIR}/"
- elog "You may wish to update your bootloader configs"
- elog "by adding these lines:"
- elog " - For grub2 just run grub-mkconfig, a configuration file is installed"
- elog " as /etc/grub.d/39_${PN}"
- elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)"
- elog " > title=${PN}"
- elog " > root (hd?,?)"
- elog " > kernel ${BOOTDIR}/memtest"
- elog " - For lilo:"
- elog " > image = ${BOOTDIR}/memtest"
- elog " > label = ${PN}"
- elog
-}
+++ /dev/null
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit mount-boot eutils toolchain-funcs
-
-DESCRIPTION="Memory tester based on memtest86"
-HOMEPAGE="http://www.memtest.org/"
-SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="-* amd64 x86"
-IUSE="floppy iso serial"
-
-BOOTDIR=/boot/memtest86plus
-QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd"
-QA_FLAGS_IGNORED="${BOOTDIR}/memtest.netbsd"
-
-RDEPEND="floppy? ( sys-fs/mtools )"
-DEPEND="iso? ( app-cdr/cdrtools )"
-
-src_prepare() {
- sed -i -e 's,0x10000,0x100000,' memtest.lds || die
- epatch "${FILESDIR}/${P}-gcc-473.patch" \
- "${FILESDIR}/${P}-hardcoded_cc.patch"
- epatch "${FILESDIR}"/${P}-no-scp.patch
- epatch "${FILESDIR}"/${P}-io-extern-inline.patch #548312
- epatch "${FILESDIR}"/${P}-reboot-def.patch #548312
- epatch "${FILESDIR}"/${P}-no-clean.patch #557890
- epatch "${FILESDIR}"/${P}-no-C-headers.patch #592638
- epatch "${FILESDIR}"/${P}-test-random-cflags.patch #590974
-
- sed -i 's:genisoimage:mkisofs:' makeiso.sh || die
- if use serial ; then
- sed -i \
- -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
- config.h \
- || die "sed failed"
- fi
-}
-
-src_configure() {
- tc-ld-disable-gold #580212
- tc-export AS CC LD
-}
-
-src_compile() {
- emake
- if use iso ; then
- ./makeiso.sh || die
- fi
-}
-
-src_test() { :; }
-
-src_install() {
- insinto ${BOOTDIR}
- use iso && newins mt*.iso memtest.iso
- newins memtest.bin memtest
- newins memtest memtest.netbsd
- dosym memtest ${BOOTDIR}/memtest.bin
-
- exeinto /etc/grub.d
- doexe "${FILESDIR}"/39_memtest86+
-
- dodoc README README.build-process FAQ changelog
-
- if use floppy ; then
- dobin "${FILESDIR}"/make-memtest86+-boot-floppy
- doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
- fi
-}
-
-pkg_postinst() {
- mount-boot_pkg_postinst
- elog
- elog "memtest has been installed in ${BOOTDIR}/"
- elog "You may wish to update your bootloader configs"
- elog "by adding these lines:"
- elog " - For grub2 just run grub-mkconfig, a configuration file is installed"
- elog " as /etc/grub.d/39_${PN}"
- elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)"
- elog " > title=${PN}"
- elog " > root (hd?,?)"
- elog " > kernel ${BOOTDIR}/memtest"
- elog " - For lilo:"
- elog " > image = ${BOOTDIR}/memtest"
- elog " > label = ${PN}"
- elog
-}