wok-next view gpxe/receipt @ rev 6386
Up: pcre, pcre-dev to 8.10.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Sep 22 14:53:48 2010 +0000 (2010-09-22) |
parents | d6b1e6646591 |
children | 53e1828da719 |
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"
11 BUILD_DEPENDS="perl"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src/src
17 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
18 [ -f done.$i ] && continue
19 echo "Apply $i..."
20 patch -p2 < ../../stuff/$i || return 1
21 touch done.$i
22 done
23 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
24 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
25 make EXTRA_CFLAGS=-fno-strict-aliasing bin/gpxe.lkrn bin/undionly.kpxe
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/boot
32 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
33 # install 255 bytes of forced url at offset 519
34 echo -n "\
35 http://mirror.slitaz.org/pxe/pxelinux.0,\
36 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
37 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
38 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
39 # Package all gpxe pkgs
40 for i in $(cd $WOK; ls -d gpxe-*)
41 do
42 tazwok genpkg $i
43 done
44 }