wok-current view grub2-efi-x64/receipt @ rev 23059

zoneminder: use openssl
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 07 17:19:32 2020 +0100 (2020-03-07)
parents 996067d113c6
children 68cf96abc146
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2-efi-x64"
4 VERSION="2.04"
5 CATEGORY="base-system"
6 SHORT_DESC="GRUB2 boot loader."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/grub/"
11 SOURCE="grub"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
15 DEPENDS="freetype grep libdevmapper libusb libusb-compat ncurses zlib"
16 BUILD_DEPENDS="bison flex freetype-dev fuse-dev libdevmapper-dev
17 libusb-compat-dev libusb-dev ncurses-dev
18 uclibc-cross-compiler-x86_64 xz-dev zlib-dev"
20 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|sys/types.h>|&\n#include <sys/sysmacros.h>|' \
26 util/getroot.c grub-core/kern/emu/hostdisk.c
28 # CVE-2015-8370
29 sed -i "s/'.b'/& \\&\\& cur_len/" grub-core/lib/crypto.c \
30 grub-core/normal/auth.c
32 # Fixes for flex 2.5.37
33 export CFLAGS="-Wno-error=sign-compare -Wno-error=unused-value"
34 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' \
35 grub-core/script/yylex.l
37 export EFI_ARCH=x86_64
38 sed -i 's/is_symbol_local /type == 2 || /' \
39 util/grub-module-verifier*.c*
40 sed -i 's/.*unsupported relocation.*/continue;/' \
41 util/grub-module-verifier*.c*
42 sed -i 's|.*add fixup entry for R_X86_64_32|// &|' \
43 util/grub-mkimage*.c*
45 ./configure \
46 BUILD_CC=gcc \
47 CFLAGS="${CFLAGS/-march=i486/-g0}" \
48 TARGET_CC=uclibc-x86_64-gcc \
49 TARGET_OBJCOPY=uclibc-x86_64-objcopy \
50 TARGET_NM=uclibc-x86_64-nm \
51 TARGET_STRIP=uclibc-x86_64-strip \
52 TARGET_RANLIB='uclibc-x86_64-ranlib' \
53 --prefix=/usr \
54 --sysconfdir=/etc \
55 --with-platform=efi \
56 --target=${EFI_ARCH} \
57 --program-prefix="" \
58 --mandir=/usr/share/man $CONFIGURE_ARGS &&
60 sed -i 's| -Werror||;s|-Wl,--copy-dt-needed-entries||' \
61 Makefile grub-core/Makefile &&
62 make $MAKEFLAGS &&
64 cd grub-core &&
65 ../grub-mkimage -d . -o ../bootx64.efi -O x86_64-efi -p /boot/grub \
66 -c $stuff/grub.cfg \
67 lsefisystab lssal lsefimmap lsacpi ls \
68 ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
69 iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
70 xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
71 loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
72 scsi loopback normal configfile gzio all_video efi_gop efi_uga \
73 gfxterm gettext echo boot chain
74 }
76 # Rules to gen a SliTaz package suitable for Tazpkg.
77 genpkg_rules()
78 {
79 mkdir -p $fs/boot/efi/boot
80 cp $src/bootx64.efi $fs/boot/efi/boot
81 }