###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME = grub
-PKG_VER = 1.98
-PKG_REL = 6
+name = grub
+version = 1.98
+release = 6
-PKG_MAINTAINER =
-PKG_GROUPS = Base System/Boot
-PKG_URL = http://www.gnu.org/software/grub/
-PKG_LICENSE = GPLv2+
-PKG_SUMMARY = Grand Unified Boot Loader.
+groups = Base System/Boot
+url = http://www.gnu.org/software/grub/
+license = GPLv2+
+summary = Grand Unified Boot Loader.
-PKG_BUILD_DEPS+= autoconf automake bison flex freetype-devel gettext \
- ncurses-devel xorg-x11-fonts zlib-devel
-PKG_DEPS += gettext os-prober
-
-define PKG_DESCRIPTION
+description
GRUB (Grand Unified Boot Loader) is an experimental boot loader \
capable of booting into most free operating systems - Linux, FreeBSD, \
NetBSD, GNU Mach, and others as well as most commercial operating \
systems.
-endef
-
-PKG_TARBALL = $(THISAPP).tar.gz
-
-QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
-
-CFLAGS += -fno-strict-aliasing
-
-CONFIGURE_OPTIONS += \
- --sysconfdir=/etc \
- --with-platform=pc \
- --enable-grub-emu
-
-define STAGE_PREPARE_CMDS
- cd $(DIR_APP) && \
+end
+
+source_dl =
+
+build
+ requires
+ autoconf
+ automake
+ bison
+ flex
+ freetype-devel
+ gettext
+ ncurses-devel
+ xorg-x11-fonts
+ zlib-devel
+ end
+
+ CFLAGS += -fno-strict-aliasing
+
+ configure_options += \
+ --sysconfdir=/etc \
+ --with-platform=pc \
+ --enable-grub-emu
+
+ prepare_cmds
sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
-endef
-
-define STAGE_INSTALL
- cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-
- sed -e "s/pkgdatadir/pkglibdir/g" -i $(BUILDROOT)/usr/sbin/grub-install
-
- -mkdir -pv $(BUILDROOT)/boot/grub
-
- # Install theme file
- install -m 0744 $(DIR_SOURCE)/05_theme $(BUILDROOT)/etc/grub.d/
-
- # Install splash background
- install $(DIR_SOURCE)/splash.png $(BUILDROOT)/boot/grub
-
- # XXX - We will have to do this after the installation of the package by pakfire
- # Generate grub compatible font for graphical boot menu
- # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
- $(BUILDROOT)/usr/bin/grub-mkfont --output=$(BUILDROOT)/boot/grub/unifont.pf2 \
- --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz
-endef
+ end
+
+ install
+ make install DESTDIR=%{BUILDROOT}
+
+ sed -e "s/pkgdatadir/pkglibdir/g" -i %{BUILDROOT}/usr/sbin/grub-install
+
+ mkdir -pv %{BUILDROOT}/boot/grub
+
+ # Install theme file
+ install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
+
+ # Install splash background
+ install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
+
+ # XXX - We will have to do this after the installation of the package by pakfire
+ # Generate grub compatible font for graphical boot menu
+ # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
+ %{BUILDROOT}/usr/bin/grub-mkfont --output=%{BUILDROOT}/boot/grub/unifont.pf2 \
+ --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz
+ end
+end
+
+quality-agent
+ whitelist_nx
+ /usr/bin/*|/usr/sbin/*
+ end
+end
+
+packages
+ package %{name}
+ requires
+ gettext
+ os-prober
+ end
+ end
+end