SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lilo"

# SliTaz package receipt.

PACKAGE="lilo"
VERSION="24.2"
CATEGORY="system-tools"
SHORT_DESC="LInux boot LOader."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.joonet.de/lilo/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}ftp/sources/$TARBALL"

BUILD_DEPENDS="dev86 libdevmapper"
DEPENDS="libdevmapper"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    # Patches from slackware for mem > 4G and nvme
    patch -p1 < $stuff/lilo.ignore.usable.memory.above.4G.diff
    patch -p1 < $stuff/lilo.nvme.support.diff
    make alles &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/examples/lilo
    cp -a $install/sbin $fs
    cp $stuff/lilo.conf $fs/usr/share/examples/lilo
}

post_install()
{
        cat <<EOT

# Copy example configuration file to /etc:
cp /usr/share/examples/lilo/lilo.conf /etc/lilo.conf

# To modify default configuration, edit
/etc/lilo.conf

# To install lilo to MBR on device sda enter:
lilo
EOT
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)