]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - grub/grub.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/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 = 2
9 sup_arches = i686
10
11 groups = Base System/Boot
12 url = http://www.gnu.org/software/grub/
13 license = GPLv2+
14 summary = Grand Unified Boot Loader.
15
16 description
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.
21 end
22
23 source_dl = http://ftp.gnu.org/gnu/grub/
24
25 build
26 requires
27 autoconf
28 automake
29 bison
30 flex
31 freetype-devel
32 gettext
33 ncurses-devel
34 zlib-devel
35 end
36
37 # Can only use very basic CFLAGS.
38 export CFLAGS = -O2 -pipe
39 export CXXFLAGS = %{CFLAGS}
40
41 configure_options += \
42 --sysconfdir=/etc \
43 --sbindir=/sbin \
44 --with-platform=pc
45
46 install
47 make install DESTDIR=%{BUILDROOT}
48
49 # Install theme file
50 install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
51
52 # Install splash background
53 mkdir -pv %{BUILDROOT}/boot/grub
54 install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
55
56 # Install empty configuration file.
57 touch %{BUILDROOT}/boot/grub/grub.cfg
58 end
59 end
60
61 quality-agent
62 whitelist_nx
63 /sbin/*|/usr/bin/*
64 end
65 end
66
67 packages
68 package %{name}
69 requires
70 gettext
71 os-prober
72 /usr/share/X11/fonts/misc/unifont.pcf.gz
73 end
74
75 configfiles
76 /boot/grub/grub.cfg
77 /etc/default/grub
78 end
79
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
85 end
86 end
87
88 package %{name}-debuginfo
89 template DEBUGINFO
90 end
91 end