wok-current view ipxe/receipt @ rev 19904

Up: unrar (5.4.5)
author Alexander Medvedev <devl547@gmail.com>
date Sun Apr 09 19:18:42 2017 +0000 (2017-04-09)
parents 302c1b557d06
children 28e74f124643
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 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
24 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
25 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
26 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
27 cp $stuff/lkrnprefix.S arch/i386/prefix
28 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
29 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
30 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir $fs/boot
37 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
38 OFS=$((0x156))
39 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
40 seek=$OFS count=$((0x1F0-$OFS))
41 $SHORT_DESC
42 EOT
43 }