]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/grub/grub.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / 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.98
8 release = 6
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 =
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
45 sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
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