Contents of /trunk/core/grub/grub-1.98-r1.smage2
Parent Directory | Revision Log
Revision 5461 -
(show annotations)
(download)
Fri Jun 25 10:55:28 2010 UTC (14 years, 3 months ago) by niro
File size: 1818 byte(s)
Fri Jun 25 10:55:28 2010 UTC (14 years, 3 months ago) by niro
File size: 1818 byte(s)
-fixed ext4 support, added support for gpt tables, support for I2O disks, Intel Macs, more raid devices
1 | # $Id$ |
2 | |
3 | PNAME="grub" |
4 | PVER="1.98" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="disabled" |
9 | |
10 | DESCRIPTION="GNU GRUB2 boot loader." |
11 | HOMEPAGE="http://www.gnu.org/software/grub/" |
12 | |
13 | DEPEND=">= sys-libs/ncurses-5.7 |
14 | >= dev-libs/lzo-2" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | SRC_URI=( |
20 | ftp://alpha.gnu.org/gnu/${PNAME}/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | ) |
23 | |
24 | # get only 1.xx versions! |
25 | UP2DATE="updatecmd ftp://alpha.gnu.org/gnu/${PNAME} | grep -- -1.[0-9].* | lasttarball gz" |
26 | |
27 | # grub doesn't like CFLAG optimation, |
28 | # and do you really want that at your bootloader ?? |
29 | unset CFLAGS |
30 | unset CXXFLAGS |
31 | |
32 | src_compile() |
33 | { |
34 | cd ${SRCDIR} |
35 | |
36 | # enable static builds for x84_64 |
37 | if [[ ${ARCH} = x86_64 ]] |
38 | then |
39 | export CC="gcc -m32" |
40 | export LDFLAGS="-static" |
41 | fi |
42 | |
43 | mconfigure --prefix=/ --datadir=/usr/lib || die |
44 | mmake || die |
45 | } |
46 | |
47 | src_install() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | mmake DESTDIR=${BINDIR} install || die |
52 | |
53 | # fix a missing symlink |
54 | mlink /bin/grub-mkimage /sbin || die |
55 | |
56 | minstalldir ${BINDIR}/boot/grub || die |
57 | cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" |
58 | default 0 |
59 | timeout 30 |
60 | |
61 | title Magellan-Linux |
62 | linux (hd0,0)/boot/vmlinuz root=/dev/hda3 |
63 | initrd (hd0,0)/boot/initrd |
64 | EOF |
65 | |
66 | # docs |
67 | minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die |
68 | } |
69 | |
70 | preinstall() |
71 | { |
72 | mount /boot &> /dev/null |
73 | } |
74 | |
75 | postinstall() |
76 | { |
77 | |
78 | [ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub |
79 | |
80 | # creates some essential links |
81 | [ ! -e ${MROOT}/boot/boot ] && ln -sf . ${MROOT}/boot/boot |
82 | |
83 | # # update grub |
84 | # grub --batch --device-map=/boot/grub/device.map </boot/grub/grub.conf >&/dev/null; |
85 | |
86 | echo |
87 | echo "Begining with GRUB2 the location of the config file has changed." |
88 | echo "You will find it at /boot/grub/grub.cfg" |
89 | echo "Also be aware of the changed commands." |
90 | echo "'kernel' isn't used anymore but 'linux'." |
91 | echo |
92 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |