wok-6.x view grub2/receipt @ rev 14295
Up: eio-dev (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:06:44 2013 +0200 (2013-04-07) |
parents | 24d193656599 |
children | 59474b1f63e3 |
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 TARBALL="$SOURCE-$VERSION.tar.xz"
10 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
11 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
12 libusb-compat-dev libusb-dev libdevmapper-dev"
13 WEB_SITE="http://www.gnu.org/software/grub/"
14 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # Fixes for flex 2.5.37
22 export CFLAGS="-Wno-error=sign-compare"
23 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
25 #chmod +x install-sh
26 ./configure --prefix=/usr --sysconfdir=/etc \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/grub $fs/usr
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
39 cp -a $_pkg/etc $fs
41 # Example config file (grub.cfg).
42 cp stuff/example-grub.cfg $fs/boot/grub
43 }
45 post_install()
46 {
47 cat <<EOT
48 # To install grub to your sda MBR
49 grub-install /dev/sda
51 # To generate a configuration file
52 grub-mkconfig -o /boot/grub/grub.cfg
54 # You can learn from /boot/grub/example-grub.cfg too.
55 EOT
56 }