wok annotate gpxe/receipt @ rev 24537
updated fakeroot (1.24 -> 1.27)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 13:56:54 2022 +0100 (2022-02-23) |
parents | 0686e05d4ad3 |
children | 22471cbea549 |
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@24491 | 15 # What is the latest version available today? |
pascal@24491 | 16 current_version() |
pascal@24491 | 17 { |
pascal@24491 | 18 wget -O - http://etherboot.org/wiki/ 2>/dev/null | \ |
pascal@24491 | 19 sed '/released/!d;s|.*gPXE-||;s| rel.*||;q' |
pascal@24491 | 20 } |
pascal@24491 | 21 |
pascal@955 | 22 # Rules to configure and make the package. |
pascal@955 | 23 compile_rules() |
pascal@955 | 24 { |
pascal@955 | 25 cd $src/src |
pascal@20212 | 26 sed -i 's|uname -m|echo i486|' Makefile |
pascal@4203 | 27 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do |
pascal@1511 | 28 [ -f done.$i ] && continue |
pascal@1121 | 29 echo "Apply $i..." |
pankso@9695 | 30 patch -p2 < $stuff/$i || return 1 |
pascal@1511 | 31 touch done.$i |
pascal@955 | 32 done |
pascal@5737 | 33 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c |
pascal@5737 | 34 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c |
pascal@15613 | 35 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 | 36 } |
pascal@955 | 37 |
pascal@955 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@955 | 39 genpkg_rules() |
pascal@955 | 40 { |
pascal@956 | 41 mkdir -p $fs/boot |
pascal@956 | 42 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe |
pascal@2338 | 43 # install 255 bytes of forced url at offset 519 |
pascal@2338 | 44 echo -n "\ |
pascal@2338 | 45 http://mirror.slitaz.org/pxe/pxelinux.0,\ |
pascal@4720 | 46 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\ |
pascal@2338 | 47 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \ |
pascal@2338 | 48 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe |
pascal@955 | 49 } |
pascal@20210 | 50 |
pascal@20210 | 51 # Pre and post install commands for Tazpkg. |
pascal@20210 | 52 post_install() |
pascal@20210 | 53 { |
pascal@20210 | 54 [ -s $1/boot/isolinux/isolinux.cfg ] && |
pascal@20210 | 55 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg && |
pascal@20210 | 56 sed -i 's|i18n.cfg|&\n\ |
pascal@20210 | 57 LABEL web zeb\ |
pascal@20210 | 58 MENU LABEL Web Boot\ |
pascal@20210 | 59 KERNEL /boot/gpxe|' $1/boot/isolinux/isolinux.cfg |
pascal@20219 | 60 true |
pascal@20210 | 61 } |