/[gentoo-x86]/sys-apps/memtest86/memtest86-3.3.ebuild
Gentoo

Contents of /sys-apps/memtest86/memtest86-3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jan 9 03:24:42 2011 UTC (7 years, 6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -2 lines
Use new mount-boot_pkg_postinst helper.

(Portage version: 2.2.0_alpha13/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.3.ebuild,v 1.4 2009/03/22 21:30:38 spock Exp $
4
5 inherit mount-boot eutils
6
7 DESCRIPTION="A stand alone memory test for x86 computers"
8 HOMEPAGE="http://www.memtest86.com/"
9 SRC_URI="http://www.memtest86.com/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="-* amd64 x86"
14 IUSE="serial"
15 RESTRICT="test"
16
17 DEPEND=""
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22
23 epatch "${FILESDIR}"/${PN}-3.2-solar.patch #66630
24 epatch "${FILESDIR}"/${P}-funky-test.patch
25 epatch "${FILESDIR}"/${P}-gnu-hash.patch
26
27 if use serial ; then
28 sed -i \
29 -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
30 config.h \
31 || die "sed failed"
32 fi
33 }
34
35 src_install() {
36 insinto /boot/memtest86
37 doins memtest.bin || die "doins failed"
38 dodoc README README.build-process
39 }
40
41 pkg_postinst() {
42 mount-boot_pkg_postinst
43 einfo
44 einfo "memtest.bin has been installed in /boot/memtest86/"
45 einfo "You may wish to update your bootloader configs"
46 einfo "by adding these lines:"
47 einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
48 einfo " > root (hd?,?)"
49 einfo " > title=Memtest86"
50 einfo " > kernel /boot/memtest86/memtest.bin"
51 einfo " - For lilo:"
52 einfo " > image = /boot/memtest86/memtest.bin"
53 einfo " > label = Memtest86"
54 einfo
55 }

  ViewVC Help
Powered by ViewVC 1.1.20