]>
Commit | Line | Data |
---|---|---|
c36e4789 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
c36e4789 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = grub |
7 | version = 1.98 | |
8 | release = 6 | |
c36e4789 | 9 | |
802ea3af MT |
10 | groups = Base System/Boot |
11 | url = http://www.gnu.org/software/grub/ | |
12 | license = GPLv2+ | |
13 | summary = Grand Unified Boot Loader. | |
c36e4789 | 14 | |
802ea3af | 15 | description |
c36e4789 MT |
16 | GRUB (Grand Unified Boot Loader) is an experimental boot loader \ |
17 | capable of booting into most free operating systems - Linux, FreeBSD, \ | |
18 | NetBSD, GNU Mach, and others as well as most commercial operating \ | |
19 | systems. | |
802ea3af MT |
20 | end |
21 | ||
22 | source_dl = | |
23 | ||
24 | build | |
25 | requires | |
26 | autoconf | |
27 | automake | |
28 | bison | |
29 | flex | |
30 | freetype-devel | |
31 | gettext | |
32 | ncurses-devel | |
33 | xorg-x11-fonts | |
34 | zlib-devel | |
35 | end | |
36 | ||
37 | CFLAGS += -fno-strict-aliasing | |
38 | ||
39 | configure_options += \ | |
40 | --sysconfdir=/etc \ | |
41 | --with-platform=pc \ | |
42 | --enable-grub-emu | |
43 | ||
44 | prepare_cmds | |
9799562f | 45 | sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in |
802ea3af MT |
46 | end |
47 | ||
48 | install | |
49 | make install DESTDIR=%{BUILDROOT} | |
50 | ||
51 | sed -e "s/pkgdatadir/pkglibdir/g" -i %{BUILDROOT}/usr/sbin/grub-install | |
52 | ||
53 | mkdir -pv %{BUILDROOT}/boot/grub | |
54 | ||
55 | # Install theme file | |
56 | install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/ | |
57 | ||
58 | # Install splash background | |
59 | install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub | |
60 | ||
61 | # XXX - We will have to do this after the installation of the package by pakfire | |
62 | # Generate grub compatible font for graphical boot menu | |
63 | # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters | |
64 | %{BUILDROOT}/usr/bin/grub-mkfont --output=%{BUILDROOT}/boot/grub/unifont.pf2 \ | |
65 | --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz | |
66 | end | |
67 | end | |
68 | ||
69 | quality-agent | |
70 | whitelist_nx | |
71 | /usr/bin/*|/usr/sbin/* | |
72 | end | |
73 | end | |
74 | ||
75 | packages | |
76 | package %{name} | |
77 | requires | |
78 | gettext | |
79 | os-prober | |
80 | end | |
81 | end | |
82 | end |