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/ ftp://alpha.gnu.org/gnu/grub/
24 sources = %{thisapp}.tar.xz
27 unifont = /usr/share/X11/fonts/misc/unifont.pcf.gz
36 dejavu-fonts-sans-fonts
48 cp -vf %{unifont} unifont.pcf.gz
52 # As the modules contain always 32 bit code, they
53 # should be living in /usr/lib.
54 libdir = %{prefix}/lib
56 configure_options += \
59 --program-transform-name=s,grub,grub, \
61 CFLAGS="$(echo %{CFLAGS} | sed \
62 -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' \
63 -e 's/-fstack-protector-strong//g' \
64 -e 's/-fstack-protector-all//g' \
65 -e 's/-fstack-protector//g' \
67 -e 's/--param=ssp-buffer-size=4//g' \
68 -e 's/-mregparm=3/-mregparm=4/g' \
69 -e 's/-fexceptions//g' \
71 -e 's/-fasynchronous-unwind-tables//g' )"
74 # Install empty configuration file.
75 mkdir -pv %{BUILDROOT}/boot/grub
76 touch %{BUILDROOT}/boot/grub/grub.cfg
77 ln -svf ../boot/grub/grub.cfg %{BUILDROOT}%{sysconfdir}/grub2.cfg
79 # Don't ship the default theme, replace it by our own one.
80 rm -rfv %{BUILDROOT}/boot/grub/themes/starfield \
81 %{datadir}/grub/themes
82 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
83 cp -rfv %{DIR_SOURCE}/theme/* \
84 %{BUILDROOT}/boot/grub/themes/system/
87 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
88 pushd %{BUILDROOT}/boot/grub/themes/system/
89 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-10.pf2 -s 10 \
90 %{datadir}/fonts/dejavu/DejaVuSans.ttf
91 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-12.pf2 -s 12 \
92 %{datadir}/fonts/dejavu/DejaVuSans.ttf
93 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-Bold-14.pf2 \
94 -s 14 %{datadir}/fonts/dejavu/DejaVuSans-Bold.ttf
99 %{BUILDROOT}%{sbindir}/grub-bios-setup \
100 %{BUILDROOT}%{sbindir}/grub-probe
103 %{BUILDROOT}%{bindir}/grub-script-check
106 debuginfo_strict_build_id = false
111 %{bindir}/*|%{sbindir}/*
123 # An EFI version of grub does not exist any more.
134 package %{name}-debuginfo