summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2011-03-16 23:00:26 +0000
committerMichael Januszewski <spock@gentoo.org>2011-03-16 23:00:26 +0000
commita2b2aa778ddf8ac07063434c0d0b9d7ad86264e3 (patch)
tree9906643e3661f7f14fa248c882761155a57f7ebb /sys-apps/memtest86+
parentUpdate variable documentation and src_test from kde overlay (interaction with... (diff)
downloadgentoo-2-a2b2aa778ddf8ac07063434c0d0b9d7ad86264e3.tar.gz
gentoo-2-a2b2aa778ddf8ac07063434c0d0b9d7ad86264e3.tar.bz2
gentoo-2-a2b2aa778ddf8ac07063434c0d0b9d7ad86264e3.zip
Version bump (bug #357201).
(Portage version: 2.1.9.43/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/memtest86+')
-rw-r--r--sys-apps/memtest86+/ChangeLog7
-rw-r--r--sys-apps/memtest86+/memtest86+-4.20.ebuild68
2 files changed, 74 insertions, 1 deletions
diff --git a/sys-apps/memtest86+/ChangeLog b/sys-apps/memtest86+/ChangeLog
index a97797d9957c..ff3056754d5c 100644
--- a/sys-apps/memtest86+/ChangeLog
+++ b/sys-apps/memtest86+/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/memtest86+
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/ChangeLog,v 1.60 2011/01/09 03:23:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/ChangeLog,v 1.61 2011/03/16 23:00:26 spock Exp $
+
+*memtest86+-4.20 (16 Mar 2011)
+
+ 16 Mar 2011; Michał Januszewski <spock@gentoo.org> +memtest86+-4.20.ebuild:
+ Version bump (bug #357201).
09 Jan 2011; Mike Frysinger <vapier@gentoo.org> memtest86+-4.00.ebuild,
memtest86+-4.10.ebuild, memtest86+-4.10-r1.ebuild:
diff --git a/sys-apps/memtest86+/memtest86+-4.20.ebuild b/sys-apps/memtest86+/memtest86+-4.20.ebuild
new file mode 100644
index 000000000000..8a27951ec551
--- /dev/null
+++ b/sys-apps/memtest86+/memtest86+-4.20.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/memtest86+-4.20.ebuild,v 1.1 2011/03/16 23:00:26 spock Exp $
+
+EAPI="3"
+
+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"
+
+RESTRICT="test"
+
+RDEPEND="floppy? ( >=sys-boot/grub-0.95 sys-fs/mtools )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.10-hardcoded_cc.patch
+
+ sed -i -e 's/$(LD) -s /$(LD) /' Makefile || die
+ sed -i -e 's,0x10000,0x100000,' memtest.lds || die
+
+ if use serial ; then
+ sed -i -e 's/#define SERIAL_CONSOLE_DEFAULT 0/#define SERIAL_CONSOLE_DEFAULT 1/' config.h || die
+ fi
+
+ tc-export CC AS LD
+}
+
+src_install() {
+ insinto /boot/memtest86plus
+ newins memtest.bin memtest || die
+ newins memtest memtest.netbsd || die
+ dosym memtest /boot/memtest86plus/memtest.bin
+ dodoc README README.build-process
+
+ if use floppy ; then
+ dobin "${FILESDIR}"/make-memtest86+-boot-floppy
+ doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
+ fi
+}
+
+pkg_postinst() {
+ mount-boot_pkg_postinst
+ echo
+ einfo "memtest has been installed in /boot/memtest86plus/"
+ einfo "You may wish to update your bootloader configs"
+ einfo "by adding these lines:"
+ einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
+ einfo " > title=Memtest86Plus"
+ einfo " > root (hd?,?)"
+ einfo " > kernel /boot/memtest86plus/memtest"
+ einfo " or try this if you get grub error 28:"
+ einfo " > title=Memtest86Plus"
+ einfo " > root (hd?,?)"
+ einfo " > kernel --type=netbsd /boot/memtest86plus/memtest.netbsd"
+ einfo
+ einfo " - For lilo:"
+ einfo " > image = /boot/memtest86plus/memtest"
+ einfo " > label = Memtest86Plus"
+ echo
+}