wok-next view gpxe/receipt @ rev 1493

Up freeradius (2.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 05 13:02:19 2008 +0000 (2008-10-05)
parents c135cd14d789
children 3d99ecce2d4b
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; do
17 echo "Apply $i..."
18 patch -p2 < ../../stuff/$i || return 1
19 done
20 make bin/gpxe.lkrn bin/undionly.kpxe
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/boot
27 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
28 # install 127 bytes of forced url at offset 519
29 echo -n "http://boot.slitaz.org/pxe/pxelinux.0" | cat - /dev/zero | \
30 dd bs=1 seek=519 count=127 conv=notrunc of=$fs/boot/gpxe
31 # Package all gpxe pkgs
32 for i in $(cd $WOK; ls -d gpxe-*)
33 do
34 tazwok genpkg $i
35 done
36 }