wok rev 13422

Add ipxe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 03 15:56:21 2012 +0200 (2012-10-03)
parents 8c593515546f
children e9744466e35f
files ipxe/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipxe/receipt	Wed Oct 03 15:56:21 2012 +0200
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ipxe"
     1.7 +VERSION="1.0.0-20121001"
     1.8 +GIT_TAG="d23db2848813a9d872e1d71272e7f41df7d0d01c"
     1.9 +CATEGORY="system-tools"
    1.10 +SHORT_DESC="Open source network boot firmware."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +WEB_SITE="http://ipxe.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2"
    1.15 +
    1.16 +DEPENDS=""
    1.17 +BUILD_DEPENDS="perl wget"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src/src
    1.23 +	make bin/undionly.kpxe bin/ipxe.lkrn
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir $fs/boot
    1.30 +	cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
    1.31 +	cat > $fs/boot/ipxe.cmd <<EOT
    1.32 +#!ipxe
    1.33 +
    1.34 +prompt --key 0x02 --timeout 3000 Press Ctrl-B for the iPXE command line... && goto shell
    1.35 +dhcp
    1.36 +chain http://mirror.slitaz.org/pxe/ipxe.php ||
    1.37 +chain http://mirror.switch.ch/ftp/mirror/pxe/ipxe.php ||
    1.38 +chain http://download.tuxfamily.org/slitaz/pxe/ipxe.php
    1.39 +:shell
    1.40 +shell
    1.41 +EOT
    1.42 +}