wok diff ipxe/receipt @ rev 18859

Up 1.0v to 1.0.1v
author Leonardo Laporte <hackdorte@sapo.pt>
date Wed Jan 27 06:07:29 2016 +0000 (2016-01-27)
parents 3cf0f7376fcf
children 903ecb6d06ad
line diff
     1.1 --- a/ipxe/receipt	Sat Dec 27 20:44:28 2014 +0100
     1.2 +++ b/ipxe/receipt	Wed Jan 27 06:07:29 2016 +0000
     1.3 @@ -1,8 +1,8 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="ipxe"
     1.7 -VERSION="1.0.0-20130925"
     1.8 -GIT_TAG="7405685df2bea9a457970d8b5a63ede08fcda6f7"
     1.9 +VERSION="1.0.0-20160119"
    1.10 +GIT_TAG="3c26ffafceef176286c108fe2b01ccebd83062a0"
    1.11  CATEGORY="system-tools"
    1.12  SHORT_DESC="Open source network boot firmware."
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14 @@ -12,14 +12,19 @@
    1.15  WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2"
    1.16  
    1.17  DEPENDS=""
    1.18 -BUILD_DEPENDS="perl wget"
    1.19 +BUILD_DEPENDS="perl wget liblzma-dev"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24  	cd $src/src
    1.25 +	sed -i 's/-llzma/& -lpthread/' Makefile.*
    1.26 +	sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
    1.27 +	sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
    1.28 +	    -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
    1.29 +	    -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
    1.30  	cp $stuff/lkrnprefix.S arch/i386/prefix
    1.31 -	make bin/undionly.kpxe bin/ipxe.lkrn
    1.32 +	make bin/undionly.kpxe bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 @@ -27,9 +32,6 @@
    1.37  {
    1.38  	mkdir $fs/boot
    1.39  	cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
    1.40 -	OFS=$((0x28B))
    1.41 -	dd if=$stuff/ipxe.cmd bs=1 of=$fs/boot/ipxe conv=notrunc \
    1.42 -		seek=$OFS count=$((0xA00-$OFS))
    1.43  	OFS=$((0x156))
    1.44  	unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
    1.45  		seek=$OFS count=$((0x1F0-$OFS))