wok-stable view grub2/receipt @ rev 12460

fix symlinks
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 28 09:09:24 2017 +0200 (2017-04-28)
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 }