wok-6.x view gpxe/receipt @ rev 17170
fusecloop: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 23 12:07:01 2014 +0200 (2014-09-23) |
parents | c1e059ce9a05 |
children | beda06c66d60 |
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 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
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/boot
34 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
35 # install 255 bytes of forced url at offset 519
36 echo -n "\
37 http://mirror.slitaz.org/pxe/pxelinux.0,\
38 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
39 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
40 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
41 }