wok annotate grub2/receipt @ rev 19148
Up slitaz-boot-scripts(431)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon May 23 13:48:05 2016 +0300 (2016-05-23) |
parents | 99ae478b6540 |
children | 8154fa30d15b |
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@14999 | 9 LICENSE="GPL3" |
pascal@13114 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@14999 | 11 WEB_SITE="http://www.gnu.org/software/grub/" |
pascal@14999 | 12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL" |
pascal@14999 | 13 |
pascal@13115 | 14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper" |
pascal@13115 | 15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \ |
pascal@13115 | 16 libusb-compat-dev libusb-dev libdevmapper-dev" |
pascal@4478 | 17 |
pascal@4478 | 18 # Rules to configure and make the package. |
pascal@4478 | 19 compile_rules() |
pascal@4478 | 20 { |
pascal@18709 | 21 # CVE-2015-8370 |
pascal@18710 | 22 sed -i "s/'.b'/& \\&\\& cur_len/" grub-core/lib/crypto.c grub-core/normal/auth.c |
pascal@18709 | 23 |
pascal@13386 | 24 # Fixes for flex 2.5.37 |
pascal@13386 | 25 export CFLAGS="-Wno-error=sign-compare" |
pascal@13386 | 26 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l |
pascal@13386 | 27 |
pascal@13842 | 28 #chmod +x install-sh |
pascal@4478 | 29 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@4478 | 30 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@15265 | 31 make $MAKEFLAGS && |
pascal@13114 | 32 make DESTDIR=$DESTDIR install |
pascal@4478 | 33 } |
pascal@4478 | 34 |
pascal@4478 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4478 | 36 genpkg_rules() |
pascal@4478 | 37 { |
pascal@4478 | 38 mkdir -p $fs/boot/grub $fs/usr |
pascal@14999 | 39 cp -a $install/usr/bin $fs/usr |
pascal@14999 | 40 cp -a $install/usr/sbin $fs/usr |
pascal@14999 | 41 cp -a $install/usr/share $fs/usr |
pascal@14999 | 42 cp -a $install/usr/lib $fs/usr |
pascal@14999 | 43 cp -a $install/etc $fs |
pascal@4478 | 44 |
pascal@4478 | 45 # Example config file (grub.cfg). |
pascal@4478 | 46 cp stuff/example-grub.cfg $fs/boot/grub |
pascal@13842 | 47 } |
pascal@13842 | 48 |
pascal@13842 | 49 post_install() |
pascal@13842 | 50 { |
pascal@13841 | 51 cat <<EOT |
pascal@13841 | 52 # To install grub to your sda MBR |
pascal@13841 | 53 grub-install /dev/sda |
pascal@13841 | 54 |
pascal@13841 | 55 # To generate a configuration file |
pascal@13841 | 56 grub-mkconfig -o /boot/grub/grub.cfg |
pascal@13841 | 57 |
pascal@13841 | 58 # You can learn from /boot/grub/example-grub.cfg too. |
pascal@13841 | 59 EOT |
pascal@4478 | 60 } |
pascal@4478 | 61 |