wok-current view ipxe/receipt @ rev 18877
Up slitaz-base-files(298), slitaz-boot-scripts(422)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Feb 08 10:29:19 2016 +0200 (2016-02-08) |
parents | 3cf0f7376fcf |
children | 903ecb6d06ad |
line source
1 # SliTaz package receipt.
3 PACKAGE="ipxe"
4 VERSION="1.0.0-20160119"
5 GIT_TAG="3c26ffafceef176286c108fe2b01ccebd83062a0"
6 CATEGORY="system-tools"
7 SHORT_DESC="Open source network boot firmware."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://ipxe.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2"
14 DEPENDS=""
15 BUILD_DEPENDS="perl wget liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
21 sed -i 's/-llzma/& -lpthread/' Makefile.*
22 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
23 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
24 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
25 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
26 cp $stuff/lkrnprefix.S arch/i386/prefix
27 make bin/undionly.kpxe bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir $fs/boot
34 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
35 OFS=$((0x156))
36 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
37 seek=$OFS count=$((0x1F0-$OFS))
38 $SHORT_DESC
39 EOT
40 }