wok annotate gpxe/receipt @ rev 4596

Add eboard
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 13 17:01:21 2009 +0100 (2009-12-13)
parents 7f1f7efb4ddb
children d6b1e6646591
rev   line source
pascal@955 1 # SliTaz package receipt.
pascal@955 2
pascal@955 3 PACKAGE="gpxe"
pascal@955 4 VERSION="0.9.3"
pascal@955 5 CATEGORY="system-tools"
pascal@955 6 SHORT_DESC="Ethernet bootloader."
pascal@955 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@955 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@955 9 WEB_SITE="http://www.etherboot.org/"
pascal@1459 10 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
pascal@2640 11 BUILD_DEPENDS="perl"
pascal@955 12
pascal@955 13 # Rules to configure and make the package.
pascal@955 14 compile_rules()
pascal@955 15 {
pascal@955 16 cd $src/src
pascal@4203 17 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
pascal@1511 18 [ -f done.$i ] && continue
pascal@1121 19 echo "Apply $i..."
pascal@955 20 patch -p2 < ../../stuff/$i || return 1
pascal@1511 21 touch done.$i
pascal@955 22 done
pascal@4203 23 make EXTRA_CFLAGS=-fno-strict-aliasing bin/gpxe.lkrn bin/undionly.kpxe
pascal@955 24 }
pascal@955 25
pascal@955 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@955 27 genpkg_rules()
pascal@955 28 {
pascal@956 29 mkdir -p $fs/boot
pascal@956 30 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
pascal@2338 31 # install 255 bytes of forced url at offset 519
pascal@2338 32 echo -n "\
pascal@2338 33 http://mirror.slitaz.org/pxe/pxelinux.0,\
pascal@2640 34 http://www.linuxembarque.com/slitaz/mirror/pxe/pxelinux.0,\
pascal@2338 35 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
pascal@2338 36 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
pascal@962 37 # Package all gpxe pkgs
pascal@962 38 for i in $(cd $WOK; ls -d gpxe-*)
pascal@962 39 do
pascal@962 40 tazwok genpkg $i
pascal@962 41 done
pascal@955 42 }