]>
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 | 6 | name = grub |
47bdaf55 MT |
7 | version = 1.99 |
8 | release = 1 | |
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 | ||
47bdaf55 | 22 | source_dl = http://ftp.gnu.org/gnu/grub/ |
802ea3af MT |
23 | |
24 | build | |
25 | requires | |
26 | autoconf | |
27 | automake | |
28 | bison | |
29 | flex | |
30 | freetype-devel | |
31 | gettext | |
32 | ncurses-devel | |
802ea3af MT |
33 | zlib-devel |
34 | end | |
35 | ||
47bdaf55 MT |
36 | # Can only use very basic CFLAGS. |
37 | export CFLAGS = -O2 -pipe | |
38 | export CXXFLAGS = %{CFLAGS} | |
802ea3af MT |
39 | |
40 | configure_options += \ | |
41 | --sysconfdir=/etc \ | |
47bdaf55 MT |
42 | --sbindir=/sbin \ |
43 | --with-platform=pc | |
802ea3af MT |
44 | |
45 | install | |
46 | make install DESTDIR=%{BUILDROOT} | |
47 | ||
802ea3af MT |
48 | # Install theme file |
49 | install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/ | |
50 | ||
51 | # Install splash background | |
47bdaf55 | 52 | mkdir -pv %{BUILDROOT}/boot/grub |
802ea3af | 53 | install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub |
802ea3af MT |
54 | end |
55 | end | |
56 | ||
57 | quality-agent | |
58 | whitelist_nx | |
47bdaf55 | 59 | /sbin/*|/usr/bin/* |
802ea3af MT |
60 | end |
61 | end | |
62 | ||
63 | packages | |
64 | package %{name} | |
65 | requires | |
66 | gettext | |
67 | os-prober | |
47bdaf55 MT |
68 | /usr/share/X11/fonts/misc/unifont.pcf.gz |
69 | end | |
70 | ||
71 | # Generate grub compatible font for graphical boot menu | |
72 | # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters | |
73 | script postin | |
74 | /usr/bin/grub-mkfont --output /boot/grub/unifont.pf2 \ | |
75 | --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz | |
802ea3af MT |
76 | end |
77 | end | |
78 | end |