wok-4.x view grub2/receipt @ rev 12453

grub2: CVE-2015-8370
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 19 17:11:12 2015 +0100 (2015-12-19)
parents c9f0a527dafa
children
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2"
4 SOURCE="grub"
5 VERSION="1.98"
6 CATEGORY="base-system"
7 SHORT_DESC="GRUB2 boot loader."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 DEPENDS="zlib freetype ncurses libusb-compat grep libusb"
11 BUILD_DEPENDS="bison zlib-dev freetype-dev ncurses-dev libusb-compat-dev libusb-dev"
12 WEB_SITE="http://www.gnu.org/software/grub/"
13 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # CVE-2015-8370
20 sed -i "s/'.b'/& \\&\\& cur_len/" lib/crypto.c normal/auth.c
22 chmod +x install-sh
23 ./configure --prefix=/usr --sysconfdir=/etc \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/boot/grub $fs/usr
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 cp -a $_pkg/usr/lib $fs/usr
36 cp -a $_pkg/etc $fs
38 # Example config file (grub.cfg).
39 cp stuff/example-grub.cfg $fs/boot/grub
40 }