wok annotate ipxe/receipt @ rev 13422
Add ipxe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 03 15:56:21 2012 +0200 (2012-10-03) |
parents | |
children | eea5b78b16de |
rev | line source |
---|---|
pascal@13422 | 1 # SliTaz package receipt. |
pascal@13422 | 2 |
pascal@13422 | 3 PACKAGE="ipxe" |
pascal@13422 | 4 VERSION="1.0.0-20121001" |
pascal@13422 | 5 GIT_TAG="d23db2848813a9d872e1d71272e7f41df7d0d01c" |
pascal@13422 | 6 CATEGORY="system-tools" |
pascal@13422 | 7 SHORT_DESC="Open source network boot firmware." |
pascal@13422 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13422 | 9 WEB_SITE="http://ipxe.org/" |
pascal@13422 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13422 | 11 WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2" |
pascal@13422 | 12 |
pascal@13422 | 13 DEPENDS="" |
pascal@13422 | 14 BUILD_DEPENDS="perl wget" |
pascal@13422 | 15 |
pascal@13422 | 16 # Rules to configure and make the package. |
pascal@13422 | 17 compile_rules() |
pascal@13422 | 18 { |
pascal@13422 | 19 cd $src/src |
pascal@13422 | 20 make bin/undionly.kpxe bin/ipxe.lkrn |
pascal@13422 | 21 } |
pascal@13422 | 22 |
pascal@13422 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13422 | 24 genpkg_rules() |
pascal@13422 | 25 { |
pascal@13422 | 26 mkdir $fs/boot |
pascal@13422 | 27 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe |
pascal@13422 | 28 cat > $fs/boot/ipxe.cmd <<EOT |
pascal@13422 | 29 #!ipxe |
pascal@13422 | 30 |
pascal@13422 | 31 prompt --key 0x02 --timeout 3000 Press Ctrl-B for the iPXE command line... && goto shell |
pascal@13422 | 32 dhcp |
pascal@13422 | 33 chain http://mirror.slitaz.org/pxe/ipxe.php || |
pascal@13422 | 34 chain http://mirror.switch.ch/ftp/mirror/pxe/ipxe.php || |
pascal@13422 | 35 chain http://download.tuxfamily.org/slitaz/pxe/ipxe.php |
pascal@13422 | 36 :shell |
pascal@13422 | 37 shell |
pascal@13422 | 38 EOT |
pascal@13422 | 39 } |