wok-6.x annotate gpxe/receipt @ rev 1624
acpid: add power savings scripts
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Thu Oct 23 20:07:24 2008 +0000 (2008-10-23) |
parents | 718176ab6e52 |
children | 40049921ce2b |
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@955 | 11 |
pascal@955 | 12 # Rules to configure and make the package. |
pascal@955 | 13 compile_rules() |
pascal@955 | 14 { |
pascal@955 | 15 cd $src/src |
pascal@1121 | 16 for i in prefix.u default_boot.u cmdline.u; do |
pascal@1511 | 17 [ -f done.$i ] && continue |
pascal@1121 | 18 echo "Apply $i..." |
pascal@955 | 19 patch -p2 < ../../stuff/$i || return 1 |
pascal@1511 | 20 touch done.$i |
pascal@955 | 21 done |
pascal@955 | 22 make bin/gpxe.lkrn bin/undionly.kpxe |
pascal@955 | 23 } |
pascal@955 | 24 |
pascal@955 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@955 | 26 genpkg_rules() |
pascal@955 | 27 { |
pascal@956 | 28 mkdir -p $fs/boot |
pascal@956 | 29 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe |
pascal@962 | 30 # install 127 bytes of forced url at offset 519 |
pascal@1006 | 31 echo -n "http://boot.slitaz.org/pxe/pxelinux.0" | cat - /dev/zero | \ |
pascal@962 | 32 dd bs=1 seek=519 count=127 conv=notrunc of=$fs/boot/gpxe |
pascal@962 | 33 # Package all gpxe pkgs |
pascal@962 | 34 for i in $(cd $WOK; ls -d gpxe-*) |
pascal@962 | 35 do |
pascal@962 | 36 tazwok genpkg $i |
pascal@962 | 37 done |
pascal@955 | 38 } |