wok annotate grub2/receipt @ rev 14626
Up: cups to 1.6.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 12:06:52 2013 +0000 (2013-06-01) |
parents | fe47bd3d01e0 |
children | 2b9f96603415 |
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 |
mojo@14506 | 38 cp -a $_pkg/usr/share $fs/usr |
pascal@4478 | 39 cp -a $_pkg/usr/lib $fs/usr |
pascal@4478 | 40 cp -a $_pkg/etc $fs |
pascal@4478 | 41 |
pascal@4478 | 42 # Example config file (grub.cfg). |
pascal@4478 | 43 cp stuff/example-grub.cfg $fs/boot/grub |
pascal@13842 | 44 } |
pascal@13842 | 45 |
pascal@13842 | 46 post_install() |
pascal@13842 | 47 { |
pascal@13841 | 48 cat <<EOT |
pascal@13841 | 49 # To install grub to your sda MBR |
pascal@13841 | 50 grub-install /dev/sda |
pascal@13841 | 51 |
pascal@13841 | 52 # To generate a configuration file |
pascal@13841 | 53 grub-mkconfig -o /boot/grub/grub.cfg |
pascal@13841 | 54 |
pascal@13841 | 55 # You can learn from /boot/grub/example-grub.cfg too. |
pascal@13841 | 56 EOT |
pascal@4478 | 57 } |
pascal@4478 | 58 |