wok-next view grub2/receipt @ rev 17690

xrdp: add --localstatedir=/var
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 22 18:41:02 2015 +0100 (2015-02-22)
parents c79cc4583669
children 99ae478b6540
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2"
4 SOURCE="grub"
5 VERSION="2.00"
6 CATEGORY="base-system"
7 SHORT_DESC="GRUB2 boot loader."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gnu.org/software/grub/"
12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
16 libusb-compat-dev libusb-dev libdevmapper-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 # Fixes for flex 2.5.37
24 export CFLAGS="-Wno-error=sign-compare"
25 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
27 #chmod +x install-sh
28 ./configure --prefix=/usr --sysconfdir=/etc \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make $MAKEFLAGS &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/boot/grub $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/share $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 cp -a $install/etc $fs
44 # Example config file (grub.cfg).
45 cp stuff/example-grub.cfg $fs/boot/grub
46 }
48 post_install()
49 {
50 cat <<EOT
51 # To install grub to your sda MBR
52 grub-install /dev/sda
54 # To generate a configuration file
55 grub-mkconfig -o /boot/grub/grub.cfg
57 # You can learn from /boot/grub/example-grub.cfg too.
58 EOT
59 }