wok-next annotate ipxe/receipt @ rev 19601
Update/recook bunch of packages (some with known cook fails)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 27 15:35:03 2017 +0200 (2017-01-27) |
parents | 997d9f1a70ea |
children | ab0405bc4658 |
rev | line source |
---|---|
pascal@13422 | 1 # SliTaz package receipt. |
pascal@13422 | 2 |
pascal@13422 | 3 PACKAGE="ipxe" |
al@19601 | 4 VERSION="41f786c" |
pascal@13422 | 5 CATEGORY="system-tools" |
pascal@13422 | 6 SHORT_DESC="Open source network boot firmware." |
pascal@13422 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
al@19601 | 8 LICENSE="GPL2 UBDL" |
pascal@13422 | 9 WEB_SITE="http://ipxe.org/" |
al@19601 | 10 |
al@19601 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19601 | 12 WGET_URL="$GITHUB/ipxe/ipxe/tarball/$VERSION" |
pascal@13422 | 13 |
pascal@13422 | 14 DEPENDS="" |
al@19601 | 15 BUILD_DEPENDS="perl liblzma-dev" |
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@18836 | 21 sed -i 's/-llzma/& -lpthread/' Makefile.* |
pascal@18836 | 22 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h |
pascal@18901 | 23 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h |
pascal@18836 | 24 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \ |
pascal@18836 | 25 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \ |
pascal@18836 | 26 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h |
pascal@15368 | 27 cp $stuff/lkrnprefix.S arch/i386/prefix |
al@19601 | 28 |
al@19601 | 29 make all |
al@19601 | 30 separator |
al@19601 | 31 |
pascal@19333 | 32 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \ |
pascal@19333 | 33 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \ |
pascal@19333 | 34 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd |
pascal@13422 | 35 } |
pascal@13422 | 36 |
pascal@13422 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13422 | 38 genpkg_rules() |
pascal@13422 | 39 { |
pascal@13422 | 40 mkdir $fs/boot |
pascal@13422 | 41 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe |
pascal@17475 | 42 OFS=$((0x156)) |
pascal@15368 | 43 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \ |
pascal@15368 | 44 seek=$OFS count=$((0x1F0-$OFS)) |
pascal@15368 | 45 $SHORT_DESC |
pascal@13422 | 46 EOT |
pascal@13422 | 47 } |