summaryrefslogtreecommitdiff
blob: d143f739ad05e00a3e4f0c74229a5b92097f2c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.0.ebuild,v 1.10 2002/10/20 18:54:50 vapier Exp $

inherit mount-boot

S=${WORKDIR}/${P}
DESCRIPTION="A stand alone memory test for x86 computers"
SRC_URI="http://www.memtest86.com/${P}.tar.gz"
HOMEPAGE="http://www.memtest86.com/"
KEYWORDS="x86 -ppc -sparc -sparc64"
LICENSE="GPL-2"
SLOT="0"

DEPEND="virtual/glibc"

src_unpack() {
	unpack ${A} ; cd ${S}
	patch -p1 <${FILESDIR}/memtest86-3.0-gcc3-gentoo.patch || die
}

src_compile() {
	make || die
}

src_install() {
	dodir /boot/memtest86
	cp memtest.bin ${D}/boot/memtest86
	dodoc README README.build-process
}

pkg_postinst() {
	einfo '*** memtest.bin has been installed in /boot/memtest86, please remember to'
	einfo '*** update your boot loader. For example grub :'
	einfo "*** edit /boot/grub/menu.lst and add the following lines "
	einfo "***   > title=Memtest86"
	einfo "***   > root (hd0,0)"
	einfo "***   > kernel /boot/memtest86/memtest.bin"
}