wok-current annotate gpxe/receipt @ rev 15330

gnome-doc-utils-dev: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 28 11:01:47 2013 +0000 (2013-09-28)
parents 034b827547bc
children c1e059ce9a05
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@15001 8 LICENSE="GPL2"
pascal@955 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@955 10 WEB_SITE="http://www.etherboot.org/"
pascal@1459 11 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
pankso@9695 12
pascal@2640 13 BUILD_DEPENDS="perl"
pascal@955 14
pascal@955 15 # Rules to configure and make the package.
pascal@955 16 compile_rules()
pascal@955 17 {
pascal@955 18 cd $src/src
pascal@4203 19 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
pascal@1511 20 [ -f done.$i ] && continue
pascal@1121 21 echo "Apply $i..."
pankso@9695 22 patch -p2 < $stuff/$i || return 1
pascal@1511 23 touch done.$i
pascal@955 24 done
pascal@5737 25 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
pascal@5737 26 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
pascal@14782 27 make EXTRA_CFLAGS="-fno-strict-aliasing -Wno-error=unused-but-set-variable" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | grep -v housekeeping: | grep -v blib.list
pascal@955 28 }
pascal@955 29
pascal@955 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@955 31 genpkg_rules()
pascal@955 32 {
pascal@956 33 mkdir -p $fs/boot
pascal@956 34 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
pascal@2338 35 # install 255 bytes of forced url at offset 519
pascal@2338 36 echo -n "\
pascal@2338 37 http://mirror.slitaz.org/pxe/pxelinux.0,\
pascal@4720 38 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
pascal@2338 39 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
pascal@2338 40 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
pascal@955 41 }