# 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" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://$PACKAGE.sourceforge.net/about.html" WGET_URL="http://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL" TAGS="boot loader floppy CD" # 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 "You can create boot floppy with:" echo "# cp /usr/share/boot/btmgr /dev/fd0" echo "----" }