wok rev 21773

Add grub2-efi-x64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 08 17:07:31 2019 +0200 (12 days ago)
parents f7a13af08fc7
children 4390c6824763
files grub2-efi-x64/receipt grub2-efi-x64/stuff/grub.cfg tazpanel-extra/receipt tazpanel/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/grub2-efi-x64/receipt	Mon Jul 08 17:07:31 2019 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="grub2-efi-x64"
     1.7 +SOURCE="grub"
     1.8 +VERSION="2.02"
     1.9 +CATEGORY="base-system"
    1.10 +SHORT_DESC="GRUB2 boot loader."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="GPL3"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.14 +WEB_SITE="http://www.gnu.org/software/grub/"
    1.15 +WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
    1.16 +
    1.17 +DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
    1.18 +BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
    1.19 +libusb-compat-dev libusb-dev libdevmapper-dev uclibc-cross-compiler-x86_64"
    1.20 +
    1.21 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +compile_rules()
    1.25 +{
    1.26 +	sed -i 's|sys/types.h>|&\n#include <sys/sysmacros.h>|' \
    1.27 +		util/getroot.c grub-core/kern/emu/hostdisk.c
    1.28 +
    1.29 +	# CVE-2015-8370
    1.30 +	sed -i "s/'.b'/& \\&\\& cur_len/" grub-core/lib/crypto.c \
    1.31 +		grub-core/normal/auth.c
    1.32 +
    1.33 +	# Fixes for flex 2.5.37
    1.34 +	export CFLAGS="-Wno-error=sign-compare -Wno-error=unused-value"
    1.35 +	sed -i '/#undef gets/{N;s/.*/#ifdef gets\n&\n#endif/}' \
    1.36 +		grub-core/gnulib/stdio*h
    1.37 +	sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
    1.38 +
    1.39 +	export EFI_ARCH=x86_64
    1.40 +	sed -i 's/is_symbol_local /type == 2 || /' util/grub-module-verifier*.c*
    1.41 +	sed -i 's/.*unsupported relocation.*/continue;/' util/grub-module-verifier*.c*
    1.42 +	sed -i 's|.*add fixup entry for R_X86_64_32|// &|' util/grub-mkimage*.c*
    1.43 +	./configure BUILD_CC=gcc CFLAGS="${CFLAGS/-march=i486/-g0}" \
    1.44 +		TARGET_CC=uclibc-x86_64-gcc TARGET_OBJCOPY=uclibc-x86_64-objcopy \
    1.45 +		TARGET_NM=uclibc-x86_64-nm TARGET_STRIP=uclibc-x86_64-strip \
    1.46 +		TARGET_RANLIB='uclibc-x86_64-ranlib' \
    1.47 +		--prefix=/usr --sysconfdir=/etc \
    1.48 +		--with-platform=efi --target=${EFI_ARCH} --program-prefix="" \
    1.49 +		--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.50 +	make $MAKEFLAGS &&
    1.51 +	cd grub-core &&
    1.52 +	../grub-mkimage -d . -o ../bootx64.efi -O x86_64-efi -p /boot/grub \
    1.53 +		-c $stuff/grub.cfg \
    1.54 +		lsefisystab lssal lsefimmap lsacpi ls \
    1.55 +		ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
    1.56 +		iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
    1.57 +		xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
    1.58 +		loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
    1.59 +		scsi loopback normal configfile gzio all_video efi_gop efi_uga \
    1.60 +		gfxterm gettext echo boot chain
    1.61 +}
    1.62 +
    1.63 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.64 +genpkg_rules()
    1.65 +{
    1.66 +	mkdir -p $fs/boot/efi/boot
    1.67 +	cp $src/bootx64.efi $fs/boot/efi/boot
    1.68 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/grub2-efi-x64/stuff/grub.cfg	Mon Jul 08 17:07:31 2019 +0200
     2.3 @@ -0,0 +1,3 @@
     2.4 +search -s -f /efi/grub/grub.cfg && configfile /efi/grub/grub.cfg
     2.5 +search -s -f /efi/boot/grub.cfg && configfile /efi/boot/grub.cfg
     2.6 +search -s -f /efi/grub.cfg && configfile /efi/grub.cfg
     3.1 --- a/tazpanel-extra/receipt	Sat Jul 06 16:10:54 2019 +0200
     3.2 +++ b/tazpanel-extra/receipt	Mon Jul 08 17:07:31 2019 +0200
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="tazpanel-extra"
     3.7 -VERSION="627"
     3.8 +VERSION="630"
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="SliTaz administration and configuration panel extra modules."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
     4.1 --- a/tazpanel/receipt	Sat Jul 06 16:10:54 2019 +0200
     4.2 +++ b/tazpanel/receipt	Mon Jul 08 17:07:31 2019 +0200
     4.3 @@ -1,7 +1,7 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="tazpanel"
     4.7 -VERSION="627"
     4.8 +VERSION="630"
     4.9  CATEGORY="system-tools"
    4.10  SHORT_DESC="SliTaz administration and configuration panel."
    4.11  MAINTAINER="pankso@slitaz.org"