1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = Base System/Boot
33 PKG_URL = http://www.gnu.org/software/grub/
35 PKG_SUMMARY = Grand Unified Boot Loader.
37 PKG_BUILD_DEPS+= autoconf automake bison flex freetype-devel gettext \
38 ncurses-devel xorg-x11-fonts zlib-devel
39 PKG_DEPS += gettext os-prober
41 define PKG_DESCRIPTION
42 GRUB (Grand Unified Boot Loader) is an experimental boot loader \
43 capable of booting into most free operating systems - Linux, FreeBSD, \
44 NetBSD, GNU Mach, and others as well as most commercial operating \
48 PKG_TARBALL = $(THISAPP).tar.gz
50 QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
52 CFLAGS += -fno-strict-aliasing
54 CONFIGURE_OPTIONS += \
59 define STAGE_PREPARE_CMDS
61 sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
65 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
67 sed -e "s/pkgdatadir/pkglibdir/g" -i $(BUILDROOT)/usr/sbin/grub-install
69 -mkdir -pv $(BUILDROOT)/boot/grub
72 install -m 0744 $(DIR_SOURCE)/05_theme $(BUILDROOT)/etc/grub.d/
74 # Install splash background
75 install $(DIR_SOURCE)/splash.png $(BUILDROOT)/boot/grub
77 # XXX - We will have to do this after the installation of the package by pakfire
78 # Generate grub compatible font for graphical boot menu
79 # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
80 $(BUILDROOT)/usr/bin/grub-mkfont --output=$(BUILDROOT)/boot/grub/unifont.pf2 \
81 --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz