SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "btmgr"

# SliTaz package receipt.

PACKAGE="btmgr"
VERSION="3.7-1"
CATEGORY="system-tools"
SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://$PACKAGE.sourceforge.net/about.html"
WGET_URL="https://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL"
TAGS="boot loader floppy CD"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/btmgr/files/btmgr/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/btmgr/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    echo "I'm too lazy to hack and build it !"
# $stuff/btmgr has been built this way:
# 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
# 2- # chmod +x sbminst-static
# 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
# 4- # ./sbminst-static -t us -d /dev/fd0
# 5- # dd if=/dev/fd0 of=$stuff/btmgr
# 6- remove tailing zeros $stuff/btmgr
}


# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/boot
    cp $stuff/btmgr $fs/usr/share/boot/
}

# Pre and post install commands for Tazpkg.
post_install()
{
    echo
    echo "----"
    echo "You can create boot floppy with:"
    echo "# cp /usr/share/boot/btmgr /dev/fd0"
    echo "----"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)