wok-next view gpxe/receipt @ rev 20322

Up TeXmacs (1.0.7.18), linux-dev (4.9.30)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 11 18:54:50 2017 +0100 (2017-11-11)
parents 12d5d6943718
children 731f74708293
line source
1 # SliTaz package receipt.
3 PACKAGE="gpxe"
4 VERSION="0.9.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ethernet bootloader."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.etherboot.org/"
11 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
13 BUILD_DEPENDS="perl"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src/src
19 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
20 [ -f done.$i ] && continue
21 echo "Apply $i..."
22 patch -p2 < $stuff/$i || return 1
23 touch done.$i
24 done
25 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
26 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
27 sed -i 's/? s : ___strtok//' core/stringextra.c
28 sed -i '/timer2_running/d' include/timer.h
29 make EXTRA_CFLAGS="-fno-strict-aliasing -Wno-error=unused-but-set-variable" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | grep -v housekeeping: | grep -v blib.list
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot
36 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
37 # install 255 bytes of forced url at offset 519
38 echo -n "\
39 http://mirror.slitaz.org/pxe/pxelinux.0,\
40 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
41 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
42 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
43 }