wok view ipxe/receipt @ rev 19366

freeradius: add init script
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 03 21:33:44 2016 +0200 (2016-08-03)
parents b87cb7a0f890
children 302c1b557d06
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 }