wok annotate ipxe/receipt @ rev 15368

Up ipxe (1.0.0-20130925)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 14 13:38:36 2013 +0000 (2013-10-14)
parents a436a235f098
children 3cf0f7376fcf
rev   line source
pascal@13422 1 # SliTaz package receipt.
pascal@13422 2
pascal@13422 3 PACKAGE="ipxe"
pascal@15368 4 VERSION="1.0.0-20130925"
pascal@15368 5 GIT_TAG="7405685df2bea9a457970d8b5a63ede08fcda6f7"
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@14781 9 LICENSE="GPL2"
pascal@13422 10 WEB_SITE="http://ipxe.org/"
pascal@13422 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13422 12 WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2"
pascal@13422 13
pascal@13422 14 DEPENDS=""
pascal@13422 15 BUILD_DEPENDS="perl wget"
pascal@13422 16
pascal@13422 17 # Rules to configure and make the package.
pascal@13422 18 compile_rules()
pascal@13422 19 {
pascal@13422 20 cd $src/src
pascal@15368 21 cp $stuff/lkrnprefix.S arch/i386/prefix
pascal@13422 22 make bin/undionly.kpxe bin/ipxe.lkrn
pascal@13422 23 }
pascal@13422 24
pascal@13422 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13422 26 genpkg_rules()
pascal@13422 27 {
pascal@13422 28 mkdir $fs/boot
pascal@13422 29 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
pascal@15368 30 OFS=$((0x28B))
pascal@15368 31 dd if=$stuff/ipxe.cmd bs=1 of=$fs/boot/ipxe conv=notrunc \
pascal@15368 32 seek=$OFS count=$((0xA00-$OFS))
pascal@15368 33 OFS=$((0x151))
pascal@15368 34 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
pascal@15368 35 seek=$OFS count=$((0x1F0-$OFS))
pascal@15368 36 $SHORT_DESC
pascal@13422 37 EOT
pascal@13422 38 }