wok-current view grub2/receipt @ rev 24029

grub2: suggested os-prober
author Hans-G?nter Theisgen
date Thu Mar 25 08:56:08 2021 +0100 (2021-03-25)
parents 70ff687a5c7f
children 3260e959c015
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2"
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 xz-dev zlib-dev"
19 SUGGESTED="os-prober"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|fprintf(...) |&(void)|' \
25 grub-core/script/yylex.l
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make $MAKEFLAGS &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/boot/grub
39 mkdir -p $fs/etc/default
40 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/usr/share $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/etc $fs
48 cp -a stuff/etc-default-grub $fs/etc/default/grub
50 # Example configuration file (grub.cfg).
51 cp stuff/example-grub.cfg $fs/boot/grub
52 }
54 post_install()
55 {
56 cat <<EOT
57 # To install GRUB to MBR on device sda
58 grub-install /dev/sda
60 # To modify GRUB defaults, edit
61 /etc/default/grub
63 # To generate a configuration file
64 grub-mkconfig -o /boot/grub/grub.cfg
66 # You can learn from /boot/grub/example-grub.cfg too.
67 EOT
68 }