+++ /dev/null
-#!/bin/bash -e
-
-source /usr/lib/grub/grub-mkconfig_lib
-
-set_mono_theme()
-{
-cat << EOF
-set menu_color_normal=white/black
-set menu_color_highlight=black/white
-EOF
-}
-
-# check for usable backgrounds
-use_bg=false
-if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
-for i in {/boot/grub,/usr/share/images/desktop-base}/splash.{png,tga} ; do
-if is_path_readable_by_grub $i ; then
-bg=$i
-case ${bg} in
-*.png) reader=png ;;
-*.tga) reader=tga ;;
-*.jpg|*.jpeg) reader=jpeg ;;
-esac
-if test -e /boot/grub/${reader}.mod ; then
-echo "Found background: `basename ${bg}`" >&2
-use_bg=true
-break
-fi
-fi
-done
-fi
-
-# set the background if possible
-if ${use_bg} ; then
-prepare_grub_to_access_device `${grub_probe} --target=device ${bg}`
-cat << EOF
-insmod ${reader}
-if background_image `make_system_path_relative_to_its_root ${bg}` ;
-then
-set color_normal=black/black
-set color_highlight=magenta/black
-else
-EOF
-fi
-
-# otherwise, set a monochromatic theme for IPFire
-if ${use_bg} ; then
-set_mono_theme | sed -e "s/^/ /g"
-echo "fi"
-else
-set_mono_theme
-fi
###############################################################################
name = grub
-version = 1.99
-release = 6
+version = 2.00
+prerelease = beta5
+release = 0.1.%{prerelease}
+thisapp = %{name}-%{version}~%{prerelease}
sup_arches = x86_64 i686
groups = System/Boot
systems.
end
-source_dl = http://ftp.gnu.org/gnu/grub/
+source_dl = http://ftp.gnu.org/gnu/grub/ ftp://alpha.gnu.org/gnu/grub/
+sources = %{thisapp}.tar.xz
build
requires
autogen
automake
bison
+ bzip2-devel
flex
freetype-devel
gettext
end
prepare_cmds
- # Replace pkglib_DATA (automake 1.11.2 incompatibility)
- sed -i -e "s/pkglib_DATA/pkgdata_DATA/g" \
- -e "s/pkglib_SCRIPTS/pkgdata_SCRIPTS/g" \
- Makefile* */Makefile* \
- gentpl.py util/grub-*.in
-
- ./autogen.sh
-
# Create a copy of the source tree to build
# an EFI enabled version of grub.
- cp -R . %{DIR_SRC}/%{thisapp}-efi
+ cp -pR . %{DIR_SRC}/%{thisapp}-efi
end
# As the modules contain always 32 bit code, they
./configure \
%{configure_options} \
--with-platform=efi \
- --program-transform-name=s,grub,grub-efi, \
CFLAGS="$(echo %{CFLAGS} | sed \
-e 's/-O.//g' \
-e 's/-fstack-protector//g' \
cd ../%{thisapp}-efi
make install DESTDIR=%{BUILDROOT}
- mv -v %{BUILDROOT}/etc/bash_completion.d/grub{,-efi}
- sed -e "s,grub/grub-mkconfig_lib,grub-efi/grub-mkconfig_lib," \
- -i %{BUILDROOT}%{sbindir}/grub-efi-mkconfig
-
install -m 755 -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/
install -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi
touch %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
cd -
make install DESTDIR=%{BUILDROOT}
- # Install theme file
- install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
-
- # Install splash background
- mkdir -pv %{BUILDROOT}/boot/grub
- install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
-
# Install empty configuration file.
+ mkdir -pv %{BUILDROOT}/boot/grub
touch %{BUILDROOT}/boot/grub/grub.cfg
+ ln -svf ../boot/grub/grub.cfg %{BUILDROOT}%{sysconfdir}/grub2.cfg
end
+
+ debuginfo_strict_build_id = false
end
quality-agent
whitelist_nx
- /sbin/*|/usr/bin/*
+ /usr/bin/*
end
end
gettext
os-prober
/usr/share/X11/fonts/misc/unifont.pcf.gz
+ system-logos
end
configfiles
files
/boot/efi
- /etc/bash_completion.d/grub-efi
/etc/grub-efi.cfg
- %{sbindir}/grub-efi-*
- %{bindir}/grub-efi-*
- %{prefix}/lib/grub-efi
end
end
Date: Mon, 14 Mar 2011 14:27:42 -0400
Subject: [PATCH] Don't say "GNU/Linux" in generated menus.
-In Fedora and RHEL we just call it Linux.
---
util/grub.d/10_linux.in | 4 ++--
util/grub.d/20_linux_xen.in | 4 ++--
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
- OS=GNU/Linux
-+ OS=Linux
++ OS="$(sed 's, release .*$,,g' /etc/system-release) Linux"
else
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+ OS="${GRUB_DISTRIBUTOR} Linux"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
- OS=GNU/Linux
-+ OS=Linux
++ OS="$(sed 's, release .*$,,g' /etc/system-release) Linux"
else
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+ OS="${GRUB_DISTRIBUTOR} Linux"