wok view ipxe/receipt @ rev 20114

Up xchm (1.23), apulse (0.1.10)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 12 11:31:13 2017 +0200 (2017-10-12)
parents f5fed8df2464
children d74b8b5a78d0
line source
1 # SliTaz package receipt.
3 PACKAGE="ipxe"
4 VERSION="1.0.0-20170417"
5 GIT_TAG="2d79b20f2a3eba199012de3bd11f8aef0a5b9dbf"
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 syslinux"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
21 sed -i 's|SIZEOF_LOW_4GB / SIZEOF_2MB_PAGE|1 << (SIZEOF_LOW_4GB_LOG2 - SIZEOF_2MB_PAGE_LOG2)|' arch/x86/transitions/librm.S
22 sed -i 's/-llzma/& -lpthread/' Makefile.*
23 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
24 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
25 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
26 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
27 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
28 cp $stuff/lkrnprefix.S arch/i386/prefix
29 pxelinux="$(ls $WOK/syslinux/source/*/core/pxelinux.0)"
30 make bin/undionly.kkkpxe EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
31 mv bin/undionly.kkkpxe bin/ipxelinux.0
32 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
33 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
34 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/boot $install/usr/share
41 cp -a $src/src/doc $install/usr/share
42 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
43 OFS=$((0x156))
44 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
45 seek=$OFS count=$((0x1F0-$OFS))
46 $SHORT_DESC
47 EOT
48 }