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