]>
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 | 7 | version = 1.99 |
2af18b56 MT |
8 | release = 2 |
9 | sup_arches = i686 | |
c36e4789 | 10 | |
802ea3af MT |
11 | groups = Base System/Boot |
12 | url = http://www.gnu.org/software/grub/ | |
13 | license = GPLv2+ | |
14 | summary = Grand Unified Boot Loader. | |
c36e4789 | 15 | |
802ea3af | 16 | description |
c36e4789 MT |
17 | GRUB (Grand Unified Boot Loader) is an experimental boot loader \ |
18 | capable of booting into most free operating systems - Linux, FreeBSD, \ | |
19 | NetBSD, GNU Mach, and others as well as most commercial operating \ | |
20 | systems. | |
802ea3af MT |
21 | end |
22 | ||
47bdaf55 | 23 | source_dl = http://ftp.gnu.org/gnu/grub/ |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
27 | autoconf | |
28 | automake | |
29 | bison | |
30 | flex | |
31 | freetype-devel | |
32 | gettext | |
33 | ncurses-devel | |
802ea3af MT |
34 | zlib-devel |
35 | end | |
36 | ||
47bdaf55 MT |
37 | # Can only use very basic CFLAGS. |
38 | export CFLAGS = -O2 -pipe | |
39 | export CXXFLAGS = %{CFLAGS} | |
802ea3af MT |
40 | |
41 | configure_options += \ | |
42 | --sysconfdir=/etc \ | |
47bdaf55 MT |
43 | --sbindir=/sbin \ |
44 | --with-platform=pc | |
802ea3af MT |
45 | |
46 | install | |
47 | make install DESTDIR=%{BUILDROOT} | |
48 | ||
802ea3af MT |
49 | # Install theme file |
50 | install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/ | |
51 | ||
52 | # Install splash background | |
47bdaf55 | 53 | mkdir -pv %{BUILDROOT}/boot/grub |
802ea3af | 54 | install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub |
2af18b56 MT |
55 | |
56 | # Install empty configuration file. | |
57 | touch %{BUILDROOT}/boot/grub/grub.cfg | |
802ea3af MT |
58 | end |
59 | end | |
60 | ||
61 | quality-agent | |
62 | whitelist_nx | |
47bdaf55 | 63 | /sbin/*|/usr/bin/* |
802ea3af MT |
64 | end |
65 | end | |
66 | ||
67 | packages | |
68 | package %{name} | |
69 | requires | |
70 | gettext | |
71 | os-prober | |
47bdaf55 MT |
72 | /usr/share/X11/fonts/misc/unifont.pcf.gz |
73 | end | |
74 | ||
2af18b56 MT |
75 | configfiles |
76 | /boot/grub/grub.cfg | |
77 | /etc/default/grub | |
78 | end | |
79 | ||
47bdaf55 MT |
80 | # Generate grub compatible font for graphical boot menu |
81 | # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters | |
82 | script postin | |
83 | /usr/bin/grub-mkfont --output /boot/grub/unifont.pf2 \ | |
84 | --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz | |
802ea3af MT |
85 | end |
86 | end | |
1f9bc2f0 MT |
87 | |
88 | package %{name}-debuginfo | |
89 | template DEBUGINFO | |
90 | end | |
802ea3af | 91 | end |