SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "grub"

# SliTaz package receipt.

PACKAGE="grub"
VERSION="0.97"
CATEGORY="base-system"
SHORT_DESC="GRUB boot loader."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/grub/"
WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
CONFIG_FILES="/boot/grub"

BUILD_DEPENDS="gcc3"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    for i in $stuff/*.diff ; do
        [ -f $(basename $i) ] && continue
        patch -p1 < $i
        touch $(basename $i)
    done
    sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
        util/grub-install.in
    ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
    --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/boot/grub $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/sbin $fs/usr
    cp -a $_pkg/usr/lib $fs/usr
    
    # Permissions
    chmod 755 $fs/usr/sbin/grub-*
    chmod 655 $fs/usr/lib/grub/i386-pc/*
    
    # Strip.
    # Example config file (menu.lst).
    cp stuff/example-menu.lst $fs/boot/grub
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)