wok-6.x view gpxe/receipt @ rev 13135
e3: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 08 16:23:26 2012 +0200 (2012-07-08) |
parents | 53e1828da719 |
children | a436a235f098 |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.etherboot.org/"
10 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
12 BUILD_DEPENDS="perl"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/src
18 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
19 [ -f done.$i ] && continue
20 echo "Apply $i..."
21 patch -p2 < $stuff/$i || return 1
22 touch done.$i
23 done
24 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
25 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
26 make EXTRA_CFLAGS=-fno-strict-aliasing bin/gpxe.lkrn bin/undionly.kpxe
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/boot
33 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
34 # install 255 bytes of forced url at offset 519
35 echo -n "\
36 http://mirror.slitaz.org/pxe/pxelinux.0,\
37 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
38 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
39 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
40 }