]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/grub/grub.nm
avahi: Update to 0.6.30.
[ipfire-3.x.git] / pkgs / grub / grub.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = grub
28 PKG_VER = 1.98
29 PKG_REL = 6
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Base System/Boot
33 PKG_URL = http://www.gnu.org/software/grub/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = Grand Unified Boot Loader.
36
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
40
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 \
45 systems.
46 endef
47
48 PKG_TARBALL = $(THISAPP).tar.gz
49
50 QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
51
52 CFLAGS += -fno-strict-aliasing
53
54 CONFIGURE_OPTIONS += \
55 --sysconfdir=/etc \
56 --with-platform=pc \
57 --enable-grub-emu
58
59 define STAGE_PREPARE_CMDS
60 cd $(DIR_APP) && \
61 sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
62 endef
63
64 define STAGE_INSTALL
65 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
66
67 sed -e "s/pkgdatadir/pkglibdir/g" -i $(BUILDROOT)/usr/sbin/grub-install
68
69 -mkdir -pv $(BUILDROOT)/boot/grub
70
71 # Install theme file
72 install -m 0744 $(DIR_SOURCE)/05_theme $(BUILDROOT)/etc/grub.d/
73
74 # Install splash background
75 install $(DIR_SOURCE)/splash.png $(BUILDROOT)/boot/grub
76
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
82 endef