Annotation of /trunk/core/grub/grub-1.98-r1.smage2
Parent Directory | Revision Log
Revision 5459 -
(hide annotations)
(download)
Fri Jun 25 10:22:13 2010 UTC (13 years, 10 months ago) by niro
File size: 1983 byte(s)
Fri Jun 25 10:22:13 2010 UTC (13 years, 10 months ago) by niro
File size: 1983 byte(s)
auto added: ver bump to 1.98-r1
1 | niro | 5459 | # $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.2 | ||
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 | mirror://${PNAME}/${PNAME}-1.9.2-grub-install-typo.patch | ||
23 | ) | ||
24 | |||
25 | # get only 1.xx versions! | ||
26 | UP2DATE="updatecmd ftp://alpha.gnu.org/gnu/${PNAME} | grep -- -1.[0-9].* | lasttarball gz" | ||
27 | |||
28 | # grub doesn't like CFLAG optimation, | ||
29 | # and do you really want that at your bootloader ?? | ||
30 | unset CFLAGS | ||
31 | unset CXXFLAGS | ||
32 | |||
33 | src_prepare() | ||
34 | { | ||
35 | munpack ${SRCFILE} | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | mpatch ${PNAME}-1.92-grub-install-typo.patch || die | ||
39 | } | ||
40 | |||
41 | src_compile() | ||
42 | { | ||
43 | cd ${SRCDIR} | ||
44 | |||
45 | # enable static builds for x84_64 | ||
46 | if [[ ${ARCH} = x86_64 ]] | ||
47 | then | ||
48 | export CC="gcc -m32" | ||
49 | export LDFLAGS="-static" | ||
50 | fi | ||
51 | |||
52 | mconfigure --prefix=/ --datadir=/usr/lib || die | ||
53 | mmake || die | ||
54 | } | ||
55 | |||
56 | src_install() | ||
57 | { | ||
58 | cd ${SRCDIR} | ||
59 | |||
60 | mmake DESTDIR=${BINDIR} install || die | ||
61 | |||
62 | # fix a missing symlink | ||
63 | mlink /bin/grub-mkimage /sbin || die | ||
64 | |||
65 | minstalldir ${BINDIR}/boot/grub || die | ||
66 | cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" | ||
67 | default 0 | ||
68 | timeout 30 | ||
69 | |||
70 | title Magellan-Linux | ||
71 | linux (hd0,0)/boot/vmlinuz root=/dev/hda3 | ||
72 | initrd (hd0,0)/boot/initrd | ||
73 | EOF | ||
74 | |||
75 | # docs | ||
76 | minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die | ||
77 | } | ||
78 | |||
79 | preinstall() | ||
80 | { | ||
81 | mount /boot &> /dev/null | ||
82 | } | ||
83 | |||
84 | postinstall() | ||
85 | { | ||
86 | |||
87 | [ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub | ||
88 | |||
89 | # creates some essential links | ||
90 | [ ! -e ${MROOT}/boot/boot ] && ln -sf . ${MROOT}/boot/boot | ||
91 | |||
92 | # # update grub | ||
93 | # grub --batch --device-map=/boot/grub/device.map </boot/grub/grub.conf >&/dev/null; | ||
94 | |||
95 | echo | ||
96 | echo "Begining with GRUB2 the location of the config file has changed." | ||
97 | echo "You will find it at /boot/grub/grub.cfg" | ||
98 | echo "Also be aware of the changed commands." | ||
99 | echo "'kernel' isn't used anymore but 'linux'." | ||
100 | echo | ||
101 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |