wok-current annotate grub2/receipt @ rev 24028

grub2: added /etc/default/grub
author Hans-G?nter Theisgen
date Thu Mar 25 08:19:09 2021 +0100 (2021-03-25)
parents 996067d113c6
children 1049482a1a19
rev   line source
pascal@4478 1 # SliTaz package receipt.
pascal@4478 2
pascal@4478 3 PACKAGE="grub2"
Hans-G?nter@22404 4 VERSION="2.04"
pascal@4478 5 CATEGORY="base-system"
pascal@4478 6 SHORT_DESC="GRUB2 boot loader."
pascal@4478 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22404 9 WEB_SITE="https://www.gnu.org/software/grub/"
Hans-G?nter@22404 10
Hans-G?nter@22404 11 SOURCE="grub"
pascal@13114 12 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@14999 13 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
pascal@14999 14
Hans-G?nter@22404 15 DEPENDS="freetype grep libdevmapper libusb libusb-compat ncurses zlib"
Hans-G?nter@22404 16 BUILD_DEPENDS="bison flex freetype-dev fuse-dev libdevmapper-dev
Hans-G?nter@22404 17 libusb-compat-dev libusb-dev ncurses-dev xz-dev zlib-dev"
pascal@4478 18
pascal@4478 19 # Rules to configure and make the package.
pascal@4478 20 compile_rules()
pascal@4478 21 {
Hans-G?nter@22404 22 sed -i 's|fprintf(...) |&(void)|' \
Hans-G?nter@22404 23 grub-core/script/yylex.l
Hans-G?nter@22404 24 ./configure \
Hans-G?nter@22404 25 --prefix=/usr \
Hans-G?nter@22404 26 --sysconfdir=/etc \
Hans-G?nter@22404 27 --mandir=/usr/share/man \
Hans-G?nter@22404 28 $CONFIGURE_ARGS &&
pascal@15265 29 make $MAKEFLAGS &&
pascal@13114 30 make DESTDIR=$DESTDIR install
pascal@4478 31 }
pascal@4478 32
pascal@4478 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 34 genpkg_rules()
pascal@4478 35 {
Hans-G?nter@22404 36 mkdir -p $fs/boot/grub
Hans-G?nter@24028 37 mkdir -p $fs/etc/default
Hans-G?nter@22404 38 mkdir -p $fs/usr
Hans-G?nter@22404 39
Hans-G?nter@22404 40 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22404 41 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22404 42 cp -a $install/usr/share $fs/usr
Hans-G?nter@22404 43 cp -a $install/usr/lib $fs/usr
Hans-G?nter@22404 44 cp -a $install/etc $fs
Hans-G?nter@24028 45
Hans-G?nter@24028 46 cp -a stuff/etc-default-grub $fs/etc/default/grub
pascal@4478 47
Hans-G?nter@22404 48 # Example configuration file (grub.cfg).
Hans-G?nter@22404 49 cp stuff/example-grub.cfg $fs/boot/grub
pascal@13842 50 }
pascal@13842 51
pascal@13842 52 post_install()
pascal@13842 53 {
pascal@13841 54 cat <<EOT
Hans-G?nter@24028 55 # To install GRUB to MBR on device sda
pascal@13841 56 grub-install /dev/sda
pascal@13841 57
Hans-G?nter@24028 58 # To modify GRUB defaults, edit
Hans-G?nter@24028 59 /etc/default/grub
Hans-G?nter@24028 60
pascal@13841 61 # To generate a configuration file
pascal@13841 62 grub-mkconfig -o /boot/grub/grub.cfg
pascal@13841 63
pascal@13841 64 # You can learn from /boot/grub/example-grub.cfg too.
pascal@13841 65 EOT
pascal@4478 66 }