]> git.ipfire.org Git - ipfire-3.x.git/blob - grub/grub.nm
Merge remote-tracking branch 'stevee/coreutils'
[ipfire-3.x.git] / grub / grub.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = grub
7 version = 1.99
8 release = 1
9
10 groups = Base System/Boot
11 url = http://www.gnu.org/software/grub/
12 license = GPLv2+
13 summary = Grand Unified Boot Loader.
14
15 description
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.
20 end
21
22 source_dl = http://ftp.gnu.org/gnu/grub/
23
24 build
25 requires
26 autoconf
27 automake
28 bison
29 flex
30 freetype-devel
31 gettext
32 ncurses-devel
33 zlib-devel
34 end
35
36 # Can only use very basic CFLAGS.
37 export CFLAGS = -O2 -pipe
38 export CXXFLAGS = %{CFLAGS}
39
40 configure_options += \
41 --sysconfdir=/etc \
42 --sbindir=/sbin \
43 --with-platform=pc
44
45 install
46 make install DESTDIR=%{BUILDROOT}
47
48 # Install theme file
49 install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
50
51 # Install splash background
52 mkdir -pv %{BUILDROOT}/boot/grub
53 install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
54 end
55 end
56
57 quality-agent
58 whitelist_nx
59 /sbin/*|/usr/bin/*
60 end
61 end
62
63 packages
64 package %{name}
65 requires
66 gettext
67 os-prober
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
76 end
77 end
78 end