wok-stable annotate btmgr/receipt @ rev 5446
broadcom-wl: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 05 12:48:19 2010 +0200 (2010-05-05) |
parents | c7714dc13119 |
children | a1644dbcf632 |
rev | line source |
---|---|
pascal@516 | 1 # SliTaz package receipt. |
pascal@516 | 2 |
pascal@516 | 3 PACKAGE="btmgr" |
pascal@516 | 4 VERSION="3.7-1" |
pascal@516 | 5 CATEGORY="system-tools" |
pascal@516 | 6 SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)." |
pascal@516 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@516 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1342 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/about.html" |
pascal@516 | 10 WGET_URL="http://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL" |
jozee@4932 | 11 TAGS="boot loader floppy CD" |
pascal@516 | 12 |
pascal@516 | 13 # Rules to configure and make the package. |
pascal@516 | 14 compile_rules() |
pascal@516 | 15 { |
pascal@516 | 16 echo "I'm too lazy to hack and build it !" |
pascal@516 | 17 # stuff/btmgr has been built this way: |
pascal@516 | 18 # 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static |
pascal@516 | 19 # 2- # chmod +x sbminst-static |
pascal@516 | 20 # 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80 |
pascal@516 | 21 # 4- # ./sbminst-static -t us -d /dev/fd0 |
pascal@516 | 22 # 5- # dd if=/dev/fd0 of=stuff/btmgr |
pascal@516 | 23 # 6- remove tailing zeros stuff/btmgr |
pascal@516 | 24 } |
pascal@516 | 25 |
pascal@516 | 26 |
pascal@516 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@516 | 28 genpkg_rules() |
pascal@516 | 29 { |
pascal@516 | 30 mkdir -p $fs/usr/share/boot |
pascal@516 | 31 cp stuff/btmgr $fs/usr/share/boot/ |
pascal@516 | 32 } |
pascal@516 | 33 |
pascal@516 | 34 # Pre and post install commands for Tazpkg. |
pascal@516 | 35 post_install() |
pascal@516 | 36 { |
pascal@516 | 37 echo "----" |
pascal@516 | 38 echo "You can create boot floppy with:" |
pascal@516 | 39 echo "# cp /usr/share/boot/btmgr /dev/fd0" |
pascal@516 | 40 echo "----" |
pascal@516 | 41 } |