wok annotate gpxe/receipt @ rev 14190
Up: emacs (24.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Mar 12 23:02:05 2013 +0100 (2013-03-12) |
parents | 53e1828da719 |
children | a436a235f098 |
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" |
pankso@9695 | 11 |
pascal@2640 | 12 BUILD_DEPENDS="perl" |
pascal@955 | 13 |
pascal@955 | 14 # Rules to configure and make the package. |
pascal@955 | 15 compile_rules() |
pascal@955 | 16 { |
pascal@955 | 17 cd $src/src |
pascal@4203 | 18 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do |
pascal@1511 | 19 [ -f done.$i ] && continue |
pascal@1121 | 20 echo "Apply $i..." |
pankso@9695 | 21 patch -p2 < $stuff/$i || return 1 |
pascal@1511 | 22 touch done.$i |
pascal@955 | 23 done |
pascal@5737 | 24 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c |
pascal@5737 | 25 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c |
pascal@4203 | 26 make EXTRA_CFLAGS=-fno-strict-aliasing bin/gpxe.lkrn bin/undionly.kpxe |
pascal@955 | 27 } |
pascal@955 | 28 |
pascal@955 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@955 | 30 genpkg_rules() |
pascal@955 | 31 { |
pascal@956 | 32 mkdir -p $fs/boot |
pascal@956 | 33 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe |
pascal@2338 | 34 # install 255 bytes of forced url at offset 519 |
pascal@2338 | 35 echo -n "\ |
pascal@2338 | 36 http://mirror.slitaz.org/pxe/pxelinux.0,\ |
pascal@4720 | 37 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\ |
pascal@2338 | 38 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \ |
pascal@2338 | 39 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe |
pascal@955 | 40 } |