1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 sup_arches = x86_64 i686
12 url = http://www.gnu.org/software/grub/
14 summary = Grand Unified Boot Loader.
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
23 source_dl = http://ftp.gnu.org/gnu/grub/
39 # Can only use very basic CFLAGS.
40 export CFLAGS = -Os -pipe
41 export CXXFLAGS = %{CFLAGS}
44 # Replace pkglib_DATA (automake 1.11.2 incompatibility)
45 sed -i -e "s/pkglib_DATA/pkgdata_DATA/g" \
46 -e "s/pkglib_SCRIPTS/pkgdata_SCRIPTS/g" \
47 Makefile.am conf/Makefile.common \
48 gentpl.py util/grub-*.in
52 # Create a copy of the source tree to build
53 # an EFI enabled version of grub.
54 cp -R . %{DIR_SRC}/%{thisapp}-efi
57 configure_options += \
64 ./configure %{configure_options} \
66 --program-transform-name=s,grub,grub-efi,
67 make %{PARALLELISMFLAGS}
71 -p /EFI/%{DISTRO_SNAME}/grub-efi \
73 -d grub-core part_gpt hfsplus fat ext2 btrfs normal chain \
74 boot configfile linux appleldr minicmd loadbios reboot halt \
75 search font gfxterm echo video efi_gop efi_uga
80 make install DESTDIR=%{BUILDROOT}
82 mv -v %{BUILDROOT}/etc/bash_completion.d/grub{,-efi}
83 mv -v %{BUILDROOT}/usr/lib/grub{,-efi}
84 sed -e "s,grub/grub-mkconfig_lib,grub-efi/grub-mkconfig_lib," \
85 -i %{BUILDROOT}/sbin/grub-efi-mkconfig
87 install -m 755 -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/
88 install -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi
89 touch %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
90 ln -svf ../boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg %{BUILDROOT}/etc/grub-efi.cfg
91 install -m 755 grub.efi %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.efi
94 install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
96 # Install splash background
97 mkdir -pv %{BUILDROOT}/boot/grub
98 install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
100 # Install empty configuration file.
101 touch %{BUILDROOT}/boot/grub/grub.cfg
116 /usr/share/X11/fonts/misc/unifont.pcf.gz
124 # Generate grub compatible font for graphical boot menu
125 # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
127 /usr/bin/grub-mkfont --output /boot/grub/unifont.pf2 \
128 --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f \
129 /usr/share/X11/fonts/misc/unifont.pcf.gz
135 EFI version of GRUB, the Grand Unified Boot Loader.
137 summary = %{description}
139 requires += grub = %{thisver}
142 /boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
147 /etc/bash_completion.d/grub-efi
155 package %{name}-debuginfo