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

Contents of /sys-apps/memtest86+/memtest86+-4.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 2 11:02:00 2012 UTC (10 months, 2 weeks ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleanup old; revbump to make the ebuild look more almost identical to the new one from memtest86; install a grub2 configuration file; limit to the 0-slot of grub for the floppy USE flag; strip during build as we can't use the splitdebug anyway.

(Portage version: 2.2.0_alpha114/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+-4.20.ebuild,v 1.2 2011/06/12 12:59:51 spock Exp $
4
5 EAPI="3"
6
7 inherit mount-boot eutils toolchain-funcs
8
9 DESCRIPTION="Memory tester based on memtest86"
10 HOMEPAGE="http://www.memtest.org/"
11 SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="-* ~amd64 ~x86"
16 IUSE="floppy serial"
17
18 RESTRICT="test"
19
20 RDEPEND="floppy? ( >=sys-boot/grub-0.95 sys-fs/mtools )"
21 DEPEND="${RDEPEND}"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${PN}-4.10-hardcoded_cc.patch
25
26 sed -i -e 's/$(LD) -s /$(LD) /' -e 's/-nopie//' Makefile || die
27 sed -i -e 's,0x10000,0x100000,' memtest.lds || die
28
29 if use serial ; then
30 sed -i -e 's/#define SERIAL_CONSOLE_DEFAULT 0/#define SERIAL_CONSOLE_DEFAULT 1/' config.h || die
31 fi
32
33 tc-export CC AS LD
34 }
35
36 src_install() {
37 insinto /boot/memtest86plus
38 newins memtest.bin memtest || die
39 newins memtest memtest.netbsd || die
40 dosym memtest /boot/memtest86plus/memtest.bin
41 dodoc README README.build-process
42
43 if use floppy ; then
44 dobin "${FILESDIR}"/make-memtest86+-boot-floppy
45 doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
46 fi
47 }
48
49 pkg_postinst() {
50 mount-boot_pkg_postinst
51 echo
52 einfo "memtest has been installed in /boot/memtest86plus/"
53 einfo "You may wish to update your bootloader configs"
54 einfo "by adding these lines:"
55 einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
56 einfo " > title=Memtest86Plus"
57 einfo " > root (hd?,?)"
58 einfo " > kernel /boot/memtest86plus/memtest"
59 einfo " or try this if you get grub error 28:"
60 einfo " > title=Memtest86Plus"
61 einfo " > root (hd?,?)"
62 einfo " > kernel --type=netbsd /boot/memtest86plus/memtest.netbsd"
63 einfo
64 einfo " - For lilo:"
65 einfo " > image = /boot/memtest86plus/memtest"
66 einfo " > label = Memtest86Plus"
67 echo
68 }

  ViewVC Help
Powered by ViewVC 1.1.13