wok-stable annotate btmgr/receipt @ rev 1137
Fix post_install for subdir install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 24 12:27:06 2008 +0000 (2008-07-24) |
parents | |
children | c7714dc13119 |
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@516 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/download.html" |
pascal@516 | 10 WGET_URL="http://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL" |
pascal@516 | 11 |
pascal@516 | 12 # Rules to configure and make the package. |
pascal@516 | 13 compile_rules() |
pascal@516 | 14 { |
pascal@516 | 15 echo "I'm too lazy to hack and build it !" |
pascal@516 | 16 # stuff/btmgr has been built this way: |
pascal@516 | 17 # 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static |
pascal@516 | 18 # 2- # chmod +x sbminst-static |
pascal@516 | 19 # 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80 |
pascal@516 | 20 # 4- # ./sbminst-static -t us -d /dev/fd0 |
pascal@516 | 21 # 5- # dd if=/dev/fd0 of=stuff/btmgr |
pascal@516 | 22 # 6- remove tailing zeros stuff/btmgr |
pascal@516 | 23 } |
pascal@516 | 24 |
pascal@516 | 25 |
pascal@516 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@516 | 27 genpkg_rules() |
pascal@516 | 28 { |
pascal@516 | 29 mkdir -p $fs/usr/share/boot |
pascal@516 | 30 cp stuff/btmgr $fs/usr/share/boot/ |
pascal@516 | 31 } |
pascal@516 | 32 |
pascal@516 | 33 # Pre and post install commands for Tazpkg. |
pascal@516 | 34 post_install() |
pascal@516 | 35 { |
pascal@516 | 36 echo "----" |
pascal@516 | 37 echo "You can create boot floppy with:" |
pascal@516 | 38 echo "# cp /usr/share/boot/btmgr /dev/fd0" |
pascal@516 | 39 echo "----" |
pascal@516 | 40 } |