wok-next annotate etherboot/receipt @ rev 1442
linux lzma hardinfo etherboot mISDN busybox: apply path once
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 02 16:39:02 2008 +0000 (2008-10-02) |
parents | 4a87a0aa0476 |
children | 3d99ecce2d4b |
rev | line source |
---|---|
pascal@515 | 1 # SliTaz package receipt. |
pascal@515 | 2 |
pascal@515 | 3 PACKAGE="etherboot" |
pascal@515 | 4 VERSION="5.4.3" |
pascal@515 | 5 CATEGORY="system-tools" |
pascal@515 | 6 SHORT_DESC="Ethernet bootloader for PXE and NBI images." |
pascal@515 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@515 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@515 | 9 WEB_SITE="http://www.etherboot.org/" |
pascal@515 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@515 | 11 |
pascal@515 | 12 # Rules to configure and make the package. |
pascal@515 | 13 compile_rules() |
pascal@515 | 14 { |
pascal@515 | 15 cd $src/src |
pascal@1442 | 16 while read file; do |
pascal@1442 | 17 [ -f done.$file ] && continue |
pascal@1442 | 18 patch -p2 < ../../stuff/$file |
pascal@1442 | 19 touch done.$file |
pascal@1442 | 20 done <<EOT |
pascal@1442 | 21 etherboot-net.u |
pascal@1442 | 22 etherboot-prefix.u |
pascal@1442 | 23 EOT |
pascal@541 | 24 make bin/etherboot-net.bzImage |
pascal@515 | 25 } |
pascal@515 | 26 |
pascal@515 | 27 |
pascal@515 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@515 | 29 genpkg_rules() |
pascal@515 | 30 { |
pascal@515 | 31 mkdir -p $fs/usr/share/boot |
pascal@541 | 32 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot |
pascal@515 | 33 } |
pascal@515 | 34 |
pascal@515 | 35 # Pre and post install commands for Tazpkg. |
pascal@515 | 36 post_install() |
pascal@515 | 37 { |
pascal@515 | 38 echo "----" |
pascal@515 | 39 echo "You can create pxe/nbi boot floppy with:" |
pascal@515 | 40 echo "# cp /usr/share/boot/etherboot /dev/fd0" |
pascal@515 | 41 echo "----" |
pascal@515 | 42 } |