wok view gpxe/receipt @ rev 2346

Add slitaz-eeepc (tazeee, boot script, doc and more...)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 03 22:58:43 2009 +0100 (2009-03-03)
parents 3d99ecce2d4b
children 7f1f7efb4ddb
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 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src/src
16 for i in prefix.u default_boot.u cmdline.u url_list.u; do
17 [ -f done.$i ] && continue
18 echo "Apply $i..."
19 patch -p2 < ../../stuff/$i || return 1
20 touch done.$i
21 done
22 make bin/gpxe.lkrn bin/undionly.kpxe
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/boot
29 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
30 # install 255 bytes of forced url at offset 519
31 echo -n "\
32 http://boot.slitaz.org/pxe/pxelinux.0,\
33 http://mirror.slitaz.org/pxe/pxelinux.0,\
34 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
35 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
36 # Package all gpxe pkgs
37 for i in $(cd $WOK; ls -d gpxe-*)
38 do
39 tazwok genpkg $i
40 done
41 }