wok-6.x annotate grub2/receipt @ rev 14255
Up: xine-ui (0.99.7)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 26 23:20:15 2013 +0100 (2013-03-26) |
parents | 24d193656599 |
children | 59474b1f63e3 |
rev | line source |
---|---|
pascal@4478 | 1 # SliTaz package receipt. |
pascal@4478 | 2 |
pascal@4478 | 3 PACKAGE="grub2" |
pascal@4478 | 4 SOURCE="grub" |
pascal@13114 | 5 VERSION="2.00" |
pascal@4478 | 6 CATEGORY="base-system" |
pascal@4478 | 7 SHORT_DESC="GRUB2 boot loader." |
pascal@4478 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13114 | 9 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@13115 | 10 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper" |
pascal@13115 | 11 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \ |
pascal@13115 | 12 libusb-compat-dev libusb-dev libdevmapper-dev" |
pascal@4478 | 13 WEB_SITE="http://www.gnu.org/software/grub/" |
pascal@13114 | 14 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL" |
pascal@4478 | 15 |
pascal@4478 | 16 # Rules to configure and make the package. |
pascal@4478 | 17 compile_rules() |
pascal@4478 | 18 { |
pascal@4478 | 19 cd $src |
pascal@13386 | 20 |
pascal@13386 | 21 # Fixes for flex 2.5.37 |
pascal@13386 | 22 export CFLAGS="-Wno-error=sign-compare" |
pascal@13386 | 23 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l |
pascal@13386 | 24 |
pascal@13842 | 25 #chmod +x install-sh |
pascal@4478 | 26 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@4478 | 27 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@4478 | 28 make && |
pascal@13114 | 29 make DESTDIR=$DESTDIR install |
pascal@4478 | 30 } |
pascal@4478 | 31 |
pascal@4478 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4478 | 33 genpkg_rules() |
pascal@4478 | 34 { |
pascal@4478 | 35 mkdir -p $fs/boot/grub $fs/usr |
pascal@4478 | 36 cp -a $_pkg/usr/bin $fs/usr |
pascal@4478 | 37 cp -a $_pkg/usr/sbin $fs/usr |
pascal@4478 | 38 cp -a $_pkg/usr/lib $fs/usr |
pascal@4478 | 39 cp -a $_pkg/etc $fs |
pascal@4478 | 40 |
pascal@4478 | 41 # Example config file (grub.cfg). |
pascal@4478 | 42 cp stuff/example-grub.cfg $fs/boot/grub |
pascal@13842 | 43 } |
pascal@13842 | 44 |
pascal@13842 | 45 post_install() |
pascal@13842 | 46 { |
pascal@13841 | 47 cat <<EOT |
pascal@13841 | 48 # To install grub to your sda MBR |
pascal@13841 | 49 grub-install /dev/sda |
pascal@13841 | 50 |
pascal@13841 | 51 # To generate a configuration file |
pascal@13841 | 52 grub-mkconfig -o /boot/grub/grub.cfg |
pascal@13841 | 53 |
pascal@13841 | 54 # You can learn from /boot/grub/example-grub.cfg too. |
pascal@13841 | 55 EOT |
pascal@4478 | 56 } |
pascal@4478 | 57 |