wok-next annotate grub2-efi/receipt @ rev 19720
Up trickle (13/1/2015)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 17:21:02 2017 +0200 (2017-05-24) |
parents | 6ee5e2fb9617 |
children |
rev | line source |
---|---|
pascal@18162 | 1 # SliTaz package receipt. |
pascal@18162 | 2 |
pascal@18162 | 3 PACKAGE="grub2-efi" |
pascal@18162 | 4 SOURCE="grub" |
pascal@18162 | 5 VERSION="2.00" |
pascal@18162 | 6 CATEGORY="base-system" |
pascal@18162 | 7 SHORT_DESC="GRUB2 boot loader." |
pascal@18162 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18162 | 9 LICENSE="GPL3" |
pascal@18162 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@18162 | 11 WEB_SITE="http://www.gnu.org/software/grub/" |
pascal@18162 | 12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL" |
pascal@18162 | 13 |
pascal@18162 | 14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper" |
pascal@18162 | 15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \ |
pascal@18162 | 16 libusb-compat-dev libusb-dev libdevmapper-dev" |
pascal@18162 | 17 |
pascal@18162 | 18 # Rules to configure and make the package. |
pascal@18162 | 19 compile_rules() |
pascal@18162 | 20 { |
pascal@18711 | 21 # CVE-2015-8370 |
pascal@18711 | 22 sed -i "s/'.b'/& \\&\\& cur_len/" grub-core/lib/crypto.c grub-core/normal/auth.c |
pascal@18711 | 23 |
pascal@18162 | 24 # Fixes for flex 2.5.37 |
pascal@18162 | 25 export CFLAGS="-Wno-error=sign-compare" |
pascal@18162 | 26 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l |
pascal@18162 | 27 |
pascal@18162 | 28 export EFI_ARCH=i386 |
pascal@18162 | 29 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@18162 | 30 --with-platform=efi --target=${EFI_ARCH} --program-prefix="" \ |
pascal@18162 | 31 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@18162 | 32 make $MAKEFLAGS |
pascal@18162 | 33 cd grub-core |
pascal@18162 | 34 ../grub-mkimage -d . -o ../bootia32.efi -O i386-efi -p /boot/grub \ |
pascal@18162 | 35 ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \ |
pascal@18162 | 36 iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \ |
pascal@18162 | 37 xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \ |
pascal@18162 | 38 loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \ |
pascal@18162 | 39 scsi loopback normal configfile gzio all_video efi_gop efi_uga \ |
pascal@18162 | 40 gfxterm gettext echo boot chain |
pascal@18162 | 41 } |
pascal@18162 | 42 |
pascal@18162 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18162 | 44 genpkg_rules() |
pascal@18162 | 45 { |
pascal@18162 | 46 mkdir -p $fs/boot/efi/boot |
pascal@18162 | 47 cp $src/bootia32.efi $fs/boot/efi/boot |
pascal@18162 | 48 } |