wok-6.x view grub2/receipt @ rev 24264
updated perl-tk (804.034 -> 804.036)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:23:39 2022 +0100 (2022-01-02) |
parents | 1049482a1a19 |
children | 17091bc7c301 |
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 CONFIG_FILES="/etc/default/grub /etc/grub.d/40_custom"
21 SUGGESTED="os-prober"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|fprintf(...) |&(void)|' \
27 grub-core/script/yylex.l
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make $MAKEFLAGS &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/boot/grub
41 mkdir -p $fs/etc/default
42 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/share $fs/usr
47 cp -a $install/usr/lib $fs/usr
48 cp -a $install/etc $fs
50 cp -a stuff/etc-default-grub $fs/etc/default/grub
52 # Example configuration file (grub.cfg).
53 cp stuff/example-grub.cfg $fs/boot/grub
54 }
56 post_install()
57 {
58 cat <<EOT
59 # To install GRUB to MBR on device sda
60 grub-install /dev/sda
62 # To modify GRUB defaults, edit
63 /etc/default/grub
65 # To generate a configuration file
66 grub-mkconfig -o /boot/grub/grub.cfg
68 # You can learn from /boot/grub/example-grub.cfg too.
69 EOT
70 }